guidelinedialog.cpp revision 703bff6ff66a4eacb659a2edc2d4394290e459b4
#define __GUIDELINE_CPP__
/*
* simple guideline dialog
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* Andrius R. <knutux@gmail.com>
*
* Copyright (C) 1999-2006 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "display/guideline.h"
#include "helper/unit-menu.h"
#include "desktop.h"
#include "document.h"
#include "sp-guide.h"
#include "sp-namedview.h"
#include "desktop-handles.h"
#include "event-context.h"
#include "widgets/desktop-widget.h"
#include "sp-metrics.h"
#include "dialogs/dialog-events.h"
#include "message-context.h"
#include "guidelinedialog.h"
namespace Inkscape {
namespace UI {
namespace Dialogs {
{
}
//g_free(_u);
}
}
delete dialog;
}
{
if (_mode) {
// TRANSLATORS: This string appears when double-clicking on a guide.
// This is the distance by which the guide is to be moved.
_mode = false;
} else {
// TRANSLATORS: This string appears when double-clicking on a guide.
// This is the target location where the guide is to be moved.
_mode = true;
}
}
void GuidelinePropertiesDialog::_onApply()
{
? points
}
void GuidelinePropertiesDialog::_onOK()
{
_onApply();
}
void GuidelinePropertiesDialog::_onDelete()
{
}
{
switch (response) {
case Gtk::RESPONSE_OK:
_onOK();
break;
case -12:
_onDelete();
break;
case Gtk::RESPONSE_CLOSE:
break;
case Gtk::RESPONSE_DELETE_EVENT:
break;
/* case GTK_RESPONSE_APPLY:
_onApply();
break;
*/
default:
}
}
void GuidelinePropertiesDialog::_setup() {
set_title(_("Guideline"));
_b1.set_homogeneous(false);
_b2.set_homogeneous(false);
//labels
_b3.set_homogeneous(false);
_b4.set_homogeneous(false);
// mode button
// unitmenu
/* fixme: We should allow percents here too, as percents of the canvas size */
// spinbutton
gobj());
// dialog
// initialize dialog
{
}
_e.grab_focus();
set_modal(true);
property_destroy_with_parent() = true;
}
}
}
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :