summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a07ffdc)
raw | patch | inline | side by side (parent: a07ffdc)
author | dvlierop2 <dvlierop2@users.sourceforge.net> | |
Thu, 12 Apr 2007 20:12:51 +0000 (20:12 +0000) | ||
committer | dvlierop2 <dvlierop2@users.sourceforge.net> | |
Thu, 12 Apr 2007 20:12:51 +0000 (20:12 +0000) |
diff --git a/src/attributes-test.h b/src/attributes-test.h
index 05d0e0a51ac6507df4d8275c0c21575dfdc0bd4d..1030f9e46755ca94599b8ed2418ff862d54674de 100644 (file)
--- a/src/attributes-test.h
+++ b/src/attributes-test.h
{"inkscape:groupmode", true},
{"sodipodi:version", true},
{"inkscape:version", true},
- {"inkscape:object-bbox", true},
- {"inkscape:object-points", true},
+/* {"inkscape:object-bbox", true},
+ {"inkscape:object-points", true},*/
{"inkscape:object-paths", true},
{"inkscape:object-nodes", true},
{"inkscape:pageopacity", true},
{"inkscape:window-height", true},
{"inkscape:window-x", true},
{"inkscape:window-y", true},
- {"inkscape:grid-bbox", true},
+/* {"inkscape:grid-bbox", true},
{"inkscape:guide-bbox", true},
{"inkscape:grid-points", true},
- {"inkscape:guide-points", true},
+ {"inkscape:guide-points", true},*/
{"inkscape:current-layer", true},
{"inkscape:connector-type", true},
{"inkscape:connection-start", true},
diff --git a/src/attributes.cpp b/src/attributes.cpp
index a453b726ac26680a046d784ddec7899cc300d004..e7465a0377a1724270309848c7f3fcb3042a216c 100644 (file)
--- a/src/attributes.cpp
+++ b/src/attributes.cpp
{SP_ATTR_INKSCAPE_WINDOW_HEIGHT, "inkscape:window-height"},
{SP_ATTR_INKSCAPE_WINDOW_X, "inkscape:window-x"},
{SP_ATTR_INKSCAPE_WINDOW_Y, "inkscape:window-y"},
- {SP_ATTR_INKSCAPE_GRID_BBOX, "inkscape:grid-bbox"},
+/* {SP_ATTR_INKSCAPE_GRID_BBOX, "inkscape:grid-bbox"},
{SP_ATTR_INKSCAPE_GUIDE_BBOX, "inkscape:guide-bbox"},
{SP_ATTR_INKSCAPE_OBJECT_BBOX, "inkscape:object-bbox"},
{SP_ATTR_INKSCAPE_GRID_POINTS, "inkscape:grid-points"},
{SP_ATTR_INKSCAPE_GUIDE_POINTS, "inkscape:guide-points"},
- {SP_ATTR_INKSCAPE_OBJECT_POINTS, "inkscape:object-points"},
+ {SP_ATTR_INKSCAPE_OBJECT_POINTS, "inkscape:object-points"},*/
{SP_ATTR_INKSCAPE_OBJECT_PATHS, "inkscape:object-paths"},
{SP_ATTR_INKSCAPE_OBJECT_NODES, "inkscape:object-nodes"},
{SP_ATTR_INKSCAPE_CURRENT_LAYER, "inkscape:current-layer"},
diff --git a/src/attributes.h b/src/attributes.h
index 224bd379e0e80a0ca857f80c95e4c2ec8d5779a4..bff5d2aefbb85926f2d3c4215745f49f3bb505ef 100644 (file)
--- a/src/attributes.h
+++ b/src/attributes.h
SP_ATTR_INKSCAPE_WINDOW_HEIGHT,
SP_ATTR_INKSCAPE_WINDOW_X,
SP_ATTR_INKSCAPE_WINDOW_Y,
- SP_ATTR_INKSCAPE_GRID_BBOX,
+ /*SP_ATTR_INKSCAPE_GRID_BBOX,
SP_ATTR_INKSCAPE_GUIDE_BBOX,
SP_ATTR_INKSCAPE_OBJECT_BBOX,
SP_ATTR_INKSCAPE_GRID_POINTS,
SP_ATTR_INKSCAPE_GUIDE_POINTS,
- SP_ATTR_INKSCAPE_OBJECT_POINTS,
+ SP_ATTR_INKSCAPE_OBJECT_POINTS,*/
SP_ATTR_INKSCAPE_OBJECT_PATHS,
SP_ATTR_INKSCAPE_OBJECT_NODES,
SP_ATTR_INKSCAPE_CURRENT_LAYER,
diff --git a/src/snapper.cpp b/src/snapper.cpp
index 3d5b33c167320b81161775ffa18b5d0495c839ee..105ec46316ed9d4f5604bf477498de1feb4c1cef 100644 (file)
--- a/src/snapper.cpp
+++ b/src/snapper.cpp
g_assert(_named_view != NULL);
g_assert(SP_IS_NAMEDVIEW(_named_view));
- setSnapTo(BBOX_POINT, true);
+ setSnapTo(BBOX_POINT | SNAP_POINT, true); //Snap any point. In v0.45 and earlier, this was controlled in the preferences tab
}
/**
diff --git a/src/sp-namedview.cpp b/src/sp-namedview.cpp
index 26c53c8e0d6b02cd5dd9dd9bfb75570d799539ee..e5cfa79241a63f5689de2a71abf5cc3fd04fac87 100644 (file)
--- a/src/sp-namedview.cpp
+++ b/src/sp-namedview.cpp
@@ -167,12 +167,12 @@ static void sp_namedview_build(SPObject *object, SPDocument *document, Inkscape:
sp_object_read_attr(object, "inkscape:window-height");
sp_object_read_attr(object, "inkscape:window-x");
sp_object_read_attr(object, "inkscape:window-y");
- sp_object_read_attr(object, "inkscape:grid-bbox");
+/* sp_object_read_attr(object, "inkscape:grid-bbox");
sp_object_read_attr(object, "inkscape:guide-bbox");
sp_object_read_attr(object, "inkscape:object-bbox");
sp_object_read_attr(object, "inkscape:grid-points");
sp_object_read_attr(object, "inkscape:guide-points");
- sp_object_read_attr(object, "inkscape:object-points");
+ sp_object_read_attr(object, "inkscape:object-points");*/
sp_object_read_attr(object, "inkscape:object-paths");
sp_object_read_attr(object, "inkscape:object-nodes");
sp_object_read_attr(object, "inkscape:current-layer");
@@ -435,7 +435,7 @@ static void sp_namedview_set(SPObject *object, unsigned int key, const gchar *va
nv->window_y = value ? atoi(value) : -1; // -1 means not set
object->requestModified(SP_OBJECT_MODIFIED_FLAG);
break;
- case SP_ATTR_INKSCAPE_GRID_BBOX:
+/* case SP_ATTR_INKSCAPE_GRID_BBOX:
nv->snap_manager.grid.setSnapTo(Inkscape::Snapper::BBOX_POINT, value ? sp_str_to_bool(value) : TRUE);
object->requestModified(SP_OBJECT_MODIFIED_FLAG);
break;
@@ -459,6 +459,7 @@ static void sp_namedview_set(SPObject *object, unsigned int key, const gchar *va
nv->snap_manager.object.setSnapTo(Inkscape::Snapper::SNAP_POINT, (value) ? sp_str_to_bool(value) : FALSE);
object->requestModified(SP_OBJECT_MODIFIED_FLAG);
break;
+*/
case SP_ATTR_INKSCAPE_OBJECT_PATHS:
nv->snap_manager.object.setSnapToPaths(value ? sp_str_to_bool(value) : TRUE);
object->requestModified(SP_OBJECT_MODIFIED_FLAG);
index fff815d8c88d1baf2f1f79d7bf4dbe62eced6aa3..2041adbf2d2d77a385d2d8630c0dc8f9926d4970 100644 (file)
{
_page_snap.show();
- _rcbsnbo.init (_("_Snap bounding boxes to objects"),
+/* _rcbsnbo.init (_("_Snap bounding boxes to objects"),
_("Snap the edges of the object bounding boxes to other objects"),
"inkscape:object-bbox", _wr);
_rcbsnnob.init (_("Snap nodes _to objects"),
_("Snap the nodes of objects to other objects"),
- "inkscape:object-points", _wr);
+ "inkscape:object-points", _wr);*/
_rcbsnop.init (_("Snap to object _paths"),
_("Snap to other object paths"),
"inkscape:object-paths", _wr);
_("Snapping distance, in screen pixels, for snapping to objects"),
_("If set, objects snap to the nearest object, regardless of distance"),
"objecttolerance", _wr);
- _rcbsnbb.init (_("Snap _bounding boxes to grid"),
+/* _rcbsnbb.init (_("Snap _bounding boxes to grid"),
_("Snap the edges of the object bounding boxes"),
"inkscape:grid-bbox", _wr);
_rcbsnnod.init (_("Snap nodes to _grid"),
_("Snap path nodes, text baselines, ellipse centers, etc."),
- "inkscape:grid-points", _wr);
+ "inkscape:grid-points", _wr);*/
_rsu_sn.init (_("Snap sens_itivity:"), _("Always snap"),
_("Snapping distance, in screen pixels, for snapping to grid"),
_("If set, objects snap to the nearest grid line, regardless of distance"),
"gridtolerance", _wr);
- _rcb_snpgui.init (_("Snap bounding boxes to g_uides"),
+/* _rcb_snpgui.init (_("Snap bounding boxes to g_uides"),
_("Snap the edges of the object bounding boxes"),
"inkscape:guide-bbox", _wr);
_rcb_snbgui.init (_("Snap p_oints to guides"),
_("Snap path nodes, text baselines, ellipse centers, etc."),
- "inkscape:guide-points", _wr);
+ "inkscape:guide-points", _wr);*/
_rsu_gusn.init (_("Snap sensiti_vity:"), _("Always snap"),
_("Snapping distance, in screen pixels, for snapping to guides"),
_("If set, objects snap to the nearest guide, regardless of distance"),
const Gtk::Widget* array[] =
{
label_o, 0,
- 0, _rcbsnbo._button,
- 0, _rcbsnnob._button,
+// 0, _rcbsnbo._button,
+// 0, _rcbsnnob._button,
0, _rcbsnop._button,
0, _rcbsnon._button,
0, _rsu_sno._vbox,
0, 0,
label_gr, 0,
- 0, _rcbsnbb._button,
- 0, _rcbsnnod._button,
+// 0, _rcbsnbb._button,
+// 0, _rcbsnnod._button,
0, _rsu_sn._vbox,
0, 0,
label_gu, 0,
- 0, _rcb_snpgui._button,
- 0, _rcb_snbgui._button,
+// 0, _rcb_snpgui._button,
+// 0, _rcb_snbgui._button,
0, _rsu_gusn._vbox,
};
_rcp_hgui.setRgba32 (nv->guidehicolor);
//-----------------------------------------------------------snap
- _rcbsnbo.setActive (nv->snap_manager.object.getSnapTo(Inkscape::Snapper::BBOX_POINT));
- _rcbsnnob.setActive (nv->snap_manager.object.getSnapTo(Inkscape::Snapper::SNAP_POINT));
+ //_rcbsnbo.setActive (nv->snap_manager.object.getSnapTo(Inkscape::Snapper::BBOX_POINT));
+ //_rcbsnnob.setActive (nv->snap_manager.object.getSnapTo(Inkscape::Snapper::SNAP_POINT));
_rcbsnop.setActive (nv->snap_manager.object.getSnapToPaths());
_rcbsnop.setActive (nv->snap_manager.object.getSnapToNodes());
_rsu_sno.setValue (nv->objecttolerance);
- _rcbsnbb.setActive (nv->snap_manager.grid.getSnapTo(Inkscape::Snapper::BBOX_POINT));
- _rcbsnnod.setActive (nv->snap_manager.grid.getSnapTo(Inkscape::Snapper::SNAP_POINT));
+ //_rcbsnbb.setActive (nv->snap_manager.grid.getSnapTo(Inkscape::Snapper::BBOX_POINT));
+ //_rcbsnnod.setActive (nv->snap_manager.grid.getSnapTo(Inkscape::Snapper::SNAP_POINT));
_rsu_sn.setValue (nv->gridtolerance);
- _rcb_snpgui.setActive (nv->snap_manager.guide.getSnapTo(Inkscape::Snapper::BBOX_POINT));
- _rcb_snbgui.setActive (nv->snap_manager.guide.getSnapTo(Inkscape::Snapper::SNAP_POINT));
+ //_rcb_snpgui.setActive (nv->snap_manager.guide.getSnapTo(Inkscape::Snapper::BBOX_POINT));
+ //_rcb_snbgui.setActive (nv->snap_manager.guide.getSnapTo(Inkscape::Snapper::SNAP_POINT));
_rsu_gusn.setValue (nv->guidetolerance);
//-----------------------------------------------------------grids page
index b9928914c1ed0e43bb25c0d64e5556f93d12b789..439ad570111a1853301fb5b78102a470d5985bcc 100644 (file)
RegisteredUnitMenu _rum_deflt;
PageSizer _page_sizer;
//---------------------------------------------------------------
- RegisteredCheckButton _rcbgrid, _rcbsnbb, _rcbsnnod;
+ RegisteredCheckButton _rcbgrid; //_rcbsnbb, _rcbsnnod
RegisteredUnitMenu _rumg, _rums;
RegisteredScalarUnit _rsu_ox, _rsu_oy, _rsu_sx, _rsu_sy;
RegisteredColorPicker _rcp_gcol, _rcp_gmcol;
RegisteredSuffixedInteger _rsi;
//---------------------------------------------------------------
- RegisteredCheckButton _rcb_sgui, _rcb_snpgui, _rcb_snbgui;
+ RegisteredCheckButton _rcb_sgui; //_rcb_snpgui, _rcb_snbgui
RegisteredUnitMenu _rum_gusn;
ToleranceSlider _rsu_sn, _rsu_gusn;
RegisteredColorPicker _rcp_gui, _rcp_hgui;
//---------------------------------------------------------------
- RegisteredCheckButton _rcbsnbo, _rcbsnnob, _rcbsnop, _rcbsnon;
+ RegisteredCheckButton _rcbsnop, _rcbsnon; //_rcbsnbo, _rcbsnnob
RegisteredUnitMenu _rumso;
ToleranceSlider _rsu_sno;
RegisteredRadioButtonPair _rrb_pix;