summaryrefslogtreecommitdiffstats
path: root/src/snapper.h
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2009-04-25 16:57:08 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2009-04-25 16:57:08 +0000
commit5606958cb81a4abb20aa5379d3c66184da470784 (patch)
tree99cd4ebfa780c2e8b89de86533dad523177ead31 /src/snapper.h
parentFix missing dock icons (bug #364075) (diff)
downloadinkscape-5606958cb81a4abb20aa5379d3c66184da470784.tar.gz
inkscape-5606958cb81a4abb20aa5379d3c66184da470784.zip
Optionaly snap to invisible grid lines too (when zoomed out). See the grids tab in the document properties dialog. This closes bug #172115
(bzr r7773)
Diffstat (limited to 'src/snapper.h')
-rw-r--r--src/snapper.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/snapper.h b/src/snapper.h
index cbd52f052..110b3d36a 100644
--- a/src/snapper.h
+++ b/src/snapper.h
@@ -51,8 +51,11 @@ public:
*/
virtual bool ThisSnapperMightSnap() const {return _snap_enabled;} // will likely be overridden by derived classes
- void setEnabled(bool s); // This is only used for grids, for which snapping can be enabled individually
+ // These four methods are only used for grids, for which snapping can be enabled individually
+ void setEnabled(bool s);
+ void setSnapVisibleOnly(bool s);
bool getEnabled() const {return _snap_enabled;}
+ bool getSnapVisibleOnly() const {return _snap_visible_only;}
virtual void freeSnap(SnappedConstraints &/*sc*/,
SnapPreferences::PointType const &/*t*/,
@@ -111,8 +114,9 @@ public:
protected:
SnapManager *_snapmanager;
+ // This is only used for grids, for which snapping can be enabled individually
bool _snap_enabled; ///< true if this snapper is enabled, otherwise false
- // This is only used for grids, for which snapping can be enabled individually
+ bool _snap_visible_only;
};
}