summaryrefslogtreecommitdiffstats
path: root/src/dropper-context.h
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-11-07 20:44:00 +0000
committerMarkus Engel <markus.engel@tum.de>2013-11-07 20:44:00 +0000
commit55b451bf382e0c3d5ed8728e42fbb535acfa8a33 (patch)
tree094d9faca06cfffc89a872732db4ac3ef60508d9 /src/dropper-context.h
parentFix for Bug #1247985 (Incorrect implementation of plural forms). (diff)
downloadinkscape-55b451bf382e0c3d5ed8728e42fbb535acfa8a33.tar.gz
inkscape-55b451bf382e0c3d5ed8728e42fbb535acfa8a33.zip
First step of moving tools into appropriate namespaces.
(bzr r12782)
Diffstat (limited to 'src/dropper-context.h')
-rw-r--r--src/dropper-context.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/dropper-context.h b/src/dropper-context.h
index 6e1015644..a56720693 100644
--- a/src/dropper-context.h
+++ b/src/dropper-context.h
@@ -14,18 +14,22 @@
#include "event-context.h"
-#define SP_DROPPER_CONTEXT(obj) (dynamic_cast<SPDropperContext*>((SPEventContext*)obj))
-#define SP_IS_DROPPER_CONTEXT(obj) (dynamic_cast<const SPDropperContext*>((const SPEventContext*)obj) != NULL)
+#define SP_DROPPER_CONTEXT(obj) (dynamic_cast<Inkscape::UI::Tools::DropperTool*>((Inkscape::UI::Tools::ToolBase*)obj))
+#define SP_IS_DROPPER_CONTEXT(obj) (dynamic_cast<const Inkscape::UI::Tools::DropperTool*>((const Inkscape::UI::Tools::ToolBase*)obj) != NULL)
enum {
SP_DROPPER_PICK_VISIBLE,
SP_DROPPER_PICK_ACTUAL
};
-class SPDropperContext : public SPEventContext {
+namespace Inkscape {
+namespace UI {
+namespace Tools {
+
+class DropperTool : public ToolBase {
public:
- SPDropperContext();
- virtual ~SPDropperContext();
+ DropperTool();
+ virtual ~DropperTool();
static const std::string prefsPath;
@@ -51,6 +55,10 @@ private:
Geom::Point centre;
};
+}
+}
+}
+
#endif
/*