Code

Change title of tab in document properties dialog ("Snap details" -> "Snap points")
authordvlierop2 <dvlierop2@users.sourceforge.net>
Tue, 4 Dec 2007 19:35:06 +0000 (19:35 +0000)
committerdvlierop2 <dvlierop2@users.sourceforge.net>
Tue, 4 Dec 2007 19:35:06 +0000 (19:35 +0000)
src/ui/dialog/document-properties.cpp
src/ui/dialog/document-properties.h

index a3e9d6eea745542ae1bf1a309c04633eda23ce8a..aa608703ad01bc58ed8bffb39d2194cf6c79afbc 100644 (file)
@@ -108,7 +108,7 @@ DocumentProperties::DocumentProperties()
     _notebook.append_page(_page_guides,    _("Guides"));
     _notebook.append_page(_grids_vbox,     _("Grids"));
     _notebook.append_page(_page_snap,      _("Snap"));
-    _notebook.append_page(_page_snap_dtls, _("Snap details"));
+    _notebook.append_page(_page_snap_dtls, _("Snap points"));
 
     build_page();
     build_guides();
@@ -249,6 +249,11 @@ DocumentProperties::build_guides()
     _rcp_hgui.init (_("_Highlight color:"), _("Highlighted guideline color"),
                     _("Color of a guideline when it is under mouse"),
                     "guidehicolor", "guidehiopacity", _wr);
+                    
+    _rcbsng.init (_("_Snap guides while dragging"),
+                  _("While dragging a guide, snap to object nodes or bounding box corners ('Nodes' or 'Bounding box corners' must be enabled in the 'Snap' tab)"),
+                  "inkscape:snap-guide", _wr);
+                    
     Gtk::Label *label_gui = manage (new Gtk::Label);
     label_gui->set_markup (_("<b>Guides</b>"));
 
@@ -258,6 +263,7 @@ DocumentProperties::build_guides()
         0,               _rcb_sgui._button,
         _rcp_gui._label, _rcp_gui._cp,
         _rcp_hgui._label, _rcp_hgui._cp,
+        0,                  _rcbsng._button,        
     };
 
     attach_all(_page_guides.table(), widget_array, G_N_ELEMENTS(widget_array));
@@ -367,11 +373,7 @@ DocumentProperties::build_snap_dtls()
        _rcbsils.init (_("_Line segments"),
                 _("Snap to intersections of line segments ('snap to paths' must be enabled, see the previous tab)"),
                 "inkscape:snap-intersection-line-segments", _wr);
-
-    _rcbsng.init (_("_Snap guides while dragging"),
-                _("While dragging a guide, snap to object nodes or bounding box corners ('snap to nodes' or 'snap to bounding box corners', both on the previous tab, must be enabled)"),
-                "inkscape:snap-guide", _wr);
-
+    
     //Applies to both nodes and guides, but not to bboxes, that's why its located here
     _rcbic.init (_("_Include the object's rotation center"),
                 _("Also snap the rotation center of an object when snapping nodes or guides"),
@@ -391,7 +393,6 @@ DocumentProperties::build_snap_dtls()
         0,                  _rcbsils._button,
         0,                  0,
         label_m,            0,
-        0,                  _rcbsng._button,
         0,                  _rcbic._button,
     };
 
index 3b7e4bb070f2b49b30352c68a09c6afa359d2ed4..e80978ccc8c73e336afb2a5ebaaf6d107b089355 100644 (file)
@@ -70,7 +70,7 @@ protected:
     RegisteredCheckButton _rcbgrid;
     RegisteredUnitMenu    _rums;
     //---------------------------------------------------------------
-    RegisteredCheckButton _rcb_sgui;
+    RegisteredCheckButton _rcb_sgui, _rcbsng;
     RegisteredUnitMenu    _rum_gusn;
     RegisteredColorPicker _rcp_gui, _rcp_hgui;
     //---------------------------------------------------------------
@@ -80,7 +80,7 @@ protected:
     ToleranceSlider       _rsu_sno, _rsu_sn, _rsu_gusn;
     RegisteredRadioButtonPair _rrb_pix;
     //---------------------------------------------------------------
-    RegisteredCheckButton _rcbic, _rcbsng;
+    RegisteredCheckButton _rcbic;
     RegisteredCheckButton _rcbsigg, _rcbsils;
     //---------------------------------------------------------------
     Gtk::Notebook   _grids_notebook;