diff options
| author | Markus Engel <markus.engel@tum.de> | 2013-11-07 20:44:00 +0000 |
|---|---|---|
| committer | Markus Engel <markus.engel@tum.de> | 2013-11-07 20:44:00 +0000 |
| commit | 55b451bf382e0c3d5ed8728e42fbb535acfa8a33 (patch) | |
| tree | 094d9faca06cfffc89a872732db4ac3ef60508d9 /src/select-context.h | |
| parent | Fix for Bug #1247985 (Incorrect implementation of plural forms). (diff) | |
| download | inkscape-55b451bf382e0c3d5ed8728e42fbb535acfa8a33.tar.gz inkscape-55b451bf382e0c3d5ed8728e42fbb535acfa8a33.zip | |
First step of moving tools into appropriate namespaces.
(bzr r12782)
Diffstat (limited to 'src/select-context.h')
| -rw-r--r-- | src/select-context.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/select-context.h b/src/select-context.h index bcea8537a..ed4c02648 100644 --- a/src/select-context.h +++ b/src/select-context.h @@ -15,8 +15,8 @@ #include "event-context.h" #include <gtk/gtk.h> -#define SP_SELECT_CONTEXT(obj) (dynamic_cast<SPSelectContext*>((SPEventContext*)obj)) -#define SP_IS_SELECT_CONTEXT(obj) (dynamic_cast<const SPSelectContext*>((const SPEventContext*)obj) != NULL) +#define SP_SELECT_CONTEXT(obj) (dynamic_cast<Inkscape::UI::Tools::SelectTool*>((Inkscape::UI::Tools::ToolBase*)obj)) +#define SP_IS_SELECT_CONTEXT(obj) (dynamic_cast<const Inkscape::UI::Tools::SelectTool*>((const Inkscape::UI::Tools::ToolBase*)obj) != NULL) struct SPCanvasItem; @@ -26,10 +26,14 @@ namespace Inkscape { class SelectionDescriber; } -class SPSelectContext : public SPEventContext { +namespace Inkscape { +namespace UI { +namespace Tools { + +class SelectTool : public ToolBase { public: - SPSelectContext(); - virtual ~SPSelectContext(); + SelectTool(); + virtual ~SelectTool(); guint dragging : 1; guint moved : 1; @@ -62,4 +66,8 @@ private: void sp_select_context_cycle_through_items(Inkscape::Selection *selection, GdkEventScroll *scroll_event, bool shift_pressed); }; +} +} +} + #endif |
