summaryrefslogtreecommitdiffstats
path: root/src/connector-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/connector-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/connector-context.h')
-rw-r--r--src/connector-context.h21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/connector-context.h b/src/connector-context.h
index 1c4bfc34d..b568b44fc 100644
--- a/src/connector-context.h
+++ b/src/connector-context.h
@@ -20,8 +20,8 @@
#include "libavoid/connector.h"
#include <glibmm/i18n.h>
-#define SP_CONNECTOR_CONTEXT(obj) (dynamic_cast<SPConnectorContext*>((SPEventContext*)obj))
-//#define SP_IS_CONNECTOR_CONTEXT(obj) (dynamic_cast<const SPConnectorContext*>((const SPEventContext*)obj) != NULL)
+#define SP_CONNECTOR_CONTEXT(obj) (dynamic_cast<Inkscape::UI::Tools::ConnectorTool*>((Inkscape::UI::Tools::ToolBase*)obj))
+//#define SP_IS_CONNECTOR_CONTEXT(obj) (dynamic_cast<const ConnectorTool*>((const ToolBase*)obj) != NULL)
struct SPKnot;
class SPCurve;
@@ -42,10 +42,14 @@ enum {
typedef std::map<SPKnot *, int> SPKnotList;
-class SPConnectorContext : public SPEventContext {
+namespace Inkscape {
+namespace UI {
+namespace Tools {
+
+class ConnectorTool : public ToolBase {
public:
- SPConnectorContext();
- virtual ~SPConnectorContext();
+ ConnectorTool();
+ virtual ~ConnectorTool();
Inkscape::Selection *selection;
Geom::Point p[5];
@@ -109,10 +113,13 @@ private:
};
void cc_selection_set_avoid(bool const set_ignore);
-void cc_create_connection_point(SPConnectorContext* cc);
-void cc_remove_connection_point(SPConnectorContext* cc);
+void cc_create_connection_point(ConnectorTool* cc);
+void cc_remove_connection_point(ConnectorTool* cc);
bool cc_item_is_connector(SPItem *item);
+}
+}
+}
#endif /* !SEEN_CONNECTOR_CONTEXT_H */