summaryrefslogtreecommitdiffstats
path: root/src/mesh-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/mesh-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/mesh-context.h')
-rw-r--r--src/mesh-context.h22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/mesh-context.h b/src/mesh-context.h
index 531587654..a8c35e4d8 100644
--- a/src/mesh-context.h
+++ b/src/mesh-context.h
@@ -21,13 +21,17 @@
#include <sigc++/sigc++.h>
#include "event-context.h"
-#define SP_MESH_CONTEXT(obj) (dynamic_cast<SPMeshContext*>((SPEventContext*)obj))
-#define SP_IS_MESH_CONTEXT(obj) (dynamic_cast<const SPMeshContext*>((const SPEventContext*)obj) != NULL)
+#define SP_MESH_CONTEXT(obj) (dynamic_cast<Inkscape::UI::Tools::MeshTool*>((Inkscape::UI::Tools::ToolBase*)obj))
+#define SP_IS_MESH_CONTEXT(obj) (dynamic_cast<const Inkscape::UI::Tools::MeshTool*>((const Inkscape::UI::Tools::ToolBase*)obj) != NULL)
-class SPMeshContext : public SPEventContext {
+namespace Inkscape {
+namespace UI {
+namespace Tools {
+
+class MeshTool : public ToolBase {
public:
- SPMeshContext();
- virtual ~SPMeshContext();
+ MeshTool();
+ virtual ~MeshTool();
Geom::Point origin;
@@ -51,8 +55,12 @@ private:
void selection_changed(Inkscape::Selection* sel);
};
-void sp_mesh_context_select_next(SPEventContext *event_context);
-void sp_mesh_context_select_prev(SPEventContext *event_context);
+void sp_mesh_context_select_next(ToolBase *event_context);
+void sp_mesh_context_select_prev(ToolBase *event_context);
+
+}
+}
+}
#endif // SEEN_SP_MESH_CONTEXT_H