summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/tool-base.h
diff options
context:
space:
mode:
authorJabiertxof <jabier.arraiza@marker.es>2019-07-29 10:59:48 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2019-07-31 05:03:14 +0000
commit8d1de0f5f05ba7bcea237afe787948b00e9e1ef9 (patch)
tree8b6dcb64d57807153247e234a6322609b2831cce /src/ui/tools/tool-base.h
parentFinal fix of issue https://gitlab.com/inkscape/inbox/issues/707 Object disapp... (diff)
downloadinkscape-8d1de0f5f05ba7bcea237afe787948b00e9e1ef9.tar.gz
inkscape-8d1de0f5f05ba7bcea237afe787948b00e9e1ef9.zip
Improvements to event tool handler
Diffstat (limited to 'src/ui/tools/tool-base.h')
-rw-r--r--src/ui/tools/tool-base.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/ui/tools/tool-base.h b/src/ui/tools/tool-base.h
index eff184c74..fe1f5afee 100644
--- a/src/ui/tools/tool-base.h
+++ b/src/ui/tools/tool-base.h
@@ -193,8 +193,9 @@ public:
// Is called by our pref_observer if a preference has been changed.
virtual void set(const Inkscape::Preferences::Entry& val);
-
+ virtual bool root_handler_impl(GdkEvent* event);
virtual bool root_handler(GdkEvent* event);
+ virtual bool item_handler_impl(SPItem* item, GdkEvent* event);
virtual bool item_handler(SPItem* item, GdkEvent* event);
virtual const std::string& getPrefsPath() = 0;
@@ -229,13 +230,13 @@ public:
protected:
/// An xpm containing the shape of the tool's cursor.
gchar const *const *cursor_shape;
-
+ bool _button1on;
+ bool _button2on;
+ bool _button3on;
bool sp_event_context_knot_mouseover() const;
private:
- bool _keyboardMove(GdkEventKey const &event, Geom::Point const &dir);
- bool _leftbutton_pressed;
-
+ bool _keyboardMove(GdkEventKey const &event, Geom::Point const &dir);
void sp_event_context_set_cursor(GdkCursorType cursor_type);
};