diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2009-01-28 21:19:16 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2009-01-28 21:19:16 +0000 |
| commit | 12f5c40db64ee3500c72bc94688c802b1cedac79 (patch) | |
| tree | 69c2f3d3fca29a258162f0f85a36f670f07df145 /src/snap-preferences.h | |
| parent | show waiting cursor while ExecutionEnv is working (diff) | |
| download | inkscape-12f5c40db64ee3500c72bc94688c802b1cedac79.tar.gz inkscape-12f5c40db64ee3500c72bc94688c802b1cedac79.zip | |
Add buttons for snapping to grids and/or guides
(bzr r7200)
Diffstat (limited to '')
| -rw-r--r-- | src/snap-preferences.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/snap-preferences.h b/src/snap-preferences.h index 97ef3cec2..258b1f5ed 100644 --- a/src/snap-preferences.h +++ b/src/snap-preferences.h @@ -51,6 +51,12 @@ public: bool getSnapBBoxEdgeMidpoints() const {return _bbox_edge_midpoints;} bool getSnapBBoxMidpoints() const {return _bbox_midpoints;} + void setSnapToGrids(bool enabled) {_snap_to_grids = enabled;} + bool getSnapToGrids() const {return _snap_to_grids;} + + void setSnapToGuides(bool enabled) {_snap_to_guides = enabled;} + bool getSnapToGuides() const {return _snap_to_guides;} + void setIncludeItemCenter(bool enabled) {_include_item_center = enabled;} bool getIncludeItemCenter() const {return _include_item_center;} @@ -85,6 +91,8 @@ private: bool _object_midpoints; // the midpoint of shapes (e.g. a circle, rect, polygon) or of any other shape (at [h/2, w/2]) bool _bbox_edge_midpoints; bool _bbox_midpoints; + bool _snap_to_grids; + bool _snap_to_guides; bool _snap_enabled_globally; // Toggles ALL snapping bool _snap_postponed_globally; // Hold all snapping temporarily when the mouse is moving fast PointType _snap_from; ///< bitmap of point types that we will snap from |
