diff options
Diffstat (limited to 'src/zoom-context.h')
| -rw-r--r-- | src/zoom-context.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/zoom-context.h b/src/zoom-context.h index 3e98915af..83fc69a88 100644 --- a/src/zoom-context.h +++ b/src/zoom-context.h @@ -15,13 +15,17 @@ #include "event-context.h" -#define SP_ZOOM_CONTEXT(obj) (dynamic_cast<SPZoomContext*>((SPEventContext*)obj)) -#define SP_IS_ZOOM_CONTEXT(obj) (dynamic_cast<const SPZoomContext*>((const SPEventContext*)obj) != NULL) +#define SP_ZOOM_CONTEXT(obj) (dynamic_cast<Inkscape::UI::Tools::ZoomTool*>((Inkscape::UI::Tools::ToolBase*)obj)) +#define SP_IS_ZOOM_CONTEXT(obj) (dynamic_cast<const Inkscape::UI::Tools::ZoomTool*>((const Inkscape::UI::Tools::ToolBase*)obj) != NULL) -class SPZoomContext : public SPEventContext { +namespace Inkscape { +namespace UI { +namespace Tools { + +class ZoomTool : public ToolBase { public: - SPZoomContext(); - virtual ~SPZoomContext(); + ZoomTool(); + virtual ~ZoomTool(); static const std::string prefsPath; @@ -36,4 +40,8 @@ private: bool escaped; }; +} +} +} + #endif |
