Code

Implement object-snapping for clones (see bug #1511260)
[inkscape.git] / src / dialogs / guidelinedialog.h
index d68ca4044ce69dc81309f2e4e90f186cc0abe44c..f7baad69d470b3acb722b7fbe32ffb070e3283e9 100644 (file)
 #define INKSCAPE_DIALOG_GUIDELINE_H
 
 #include <gtkmm/dialog.h>
+#include <gtkmm/table.h>
 #include <gtkmm/spinbutton.h>
 #include <gtkmm/label.h>
 #include <gtkmm/stock.h>
 #include <gtkmm/adjustment.h>
+#include "ui/widget/button.h"
 
 namespace Inkscape {
 namespace UI {
@@ -28,7 +30,7 @@ public:
     GuidelinePropertiesDialog(SPGuide *guide, SPDesktop *desktop);
     virtual ~GuidelinePropertiesDialog();
 
-    Glib::ustring     getName() const { return "LayerPropertiesDialog"; }
+    Glib::ustring     getName() const { return "GuidelinePropertiesDialog"; }
 
     static void showDialog(SPGuide *guide, SPDesktop *desktop);
 
@@ -48,18 +50,14 @@ private:
 
     SPDesktop *_desktop;
     SPGuide *_guide;
-    Gtk::HBox   _b1;
-    Gtk::VBox   _b2;
-    Gtk::HBox   _b3;
-    Gtk::HBox   _b4;
-    Gtk::Label  _label;
-    Gtk::Label  _label_id;
-    Gtk::Button _but;
-    Gtk::Label  _m;
+    Gtk::Table  _layout_table;
+    Gtk::Label  _label_descr;
+    Gtk::Label  _label_move;
+    Inkscape::UI::Widget::CheckButton _relative_toggle;
     Gtk::Adjustment _adjustment;
     Gtk::SpinButton _spin_button;
 
-    GtkWidget *_unit_selector;
+    Gtk::Widget *_unit_selector;
     bool _mode;
     gdouble _oldpos;
 };