summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/pencil-tool.h
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2014-03-02 00:31:12 +0000
committerMarkus Engel <markus.engel@tum.de>2014-03-02 00:31:12 +0000
commit3aa344e9a40d97db7cd5a89671896bab70da33a4 (patch)
tree1ea673a167ac9d121b64689c084383791bddf65a /src/ui/tools/pencil-tool.h
parentFix for crash when cycle-selecting. (diff)
downloadinkscape-3aa344e9a40d97db7cd5a89671896bab70da33a4.tar.gz
inkscape-3aa344e9a40d97db7cd5a89671896bab70da33a4.zip
Added some consts. Turned functions to member functions.
(bzr r13089)
Diffstat (limited to 'src/ui/tools/pencil-tool.h')
-rw-r--r--src/ui/tools/pencil-tool.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/ui/tools/pencil-tool.h b/src/ui/tools/pencil-tool.h
index 6ced9eb56..efc1f60e0 100644
--- a/src/ui/tools/pencil-tool.h
+++ b/src/ui/tools/pencil-tool.h
@@ -48,6 +48,24 @@ public:
protected:
virtual void setup();
virtual bool root_handler(GdkEvent* event);
+
+private:
+ gint _handleButtonPress(GdkEventButton const &bevent);
+ gint _handleMotionNotify(GdkEventMotion const &mevent);
+ gint _handleButtonRelease(GdkEventButton const &revent);
+ gint _handleKeyPress(guint const keyval, guint const state);
+ gint _handleKeyRelease(guint const keyval, guint const state);
+
+ void _setStartpoint(Geom::Point const &p);
+ void _setEndpoint(Geom::Point const &p);
+ void _finishEndpoint();
+ void _addFreehandPoint(Geom::Point const &p, guint state);
+ void _fitAndSplit();
+ void _interpolate();
+ void _sketchInterpolate();
+
+ void _cancel();
+ void _endpointSnap(Geom::Point &p, guint const state);
};
}