diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2007-12-12 20:34:36 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2007-12-12 20:34:36 +0000 |
| commit | f0d199b587b0a3958067a32f990f7c67587e8593 (patch) | |
| tree | b54c371ea4ec115bd781a8df5edf13fa7dba287f /src/snap.h | |
| parent | Fixed the filter effects dialog always displaying all the filter settings by ... (diff) | |
| download | inkscape-f0d199b587b0a3958067a32f990f7c67587e8593.tar.gz inkscape-f0d199b587b0a3958067a32f990f7c67587e8593.zip | |
Add global snapping toggle
(bzr r4221)
Diffstat (limited to 'src/snap.h')
| -rw-r--r-- | src/snap.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/snap.h b/src/snap.h index 9547064a9..1f2b85974 100644 --- a/src/snap.h +++ b/src/snap.h @@ -140,6 +140,14 @@ public: bool getIncludeItemCenter() const { return _include_item_center; } + + void setSnapEnabledGlobally(bool enabled) { + _snap_enabled_globally = enabled; + } + + bool getSnapEnabledGlobally() const { + return _snap_enabled_globally; + } protected: SPNamedView const *_named_view; @@ -156,6 +164,7 @@ private: bool _include_item_center; //If true, snapping nodes will also snap the item's center bool _intersectionGG; bool _intersectionLS; + bool _snap_enabled_globally; //Toggles ALL snapping std::pair<NR::Point, bool> _snapTransformed(Inkscape::Snapper::PointType type, std::vector<NR::Point> const &points, |
