diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2013-11-08 01:57:36 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2013-11-08 01:57:36 +0000 |
| commit | 3b2966fe4bce6752e47c9180828a628d027d2715 (patch) | |
| tree | e403f77747f8cebd523a48b3a7f7b4a3164254a6 /src/rect-context.h | |
| parent | Update to trunk (diff) | |
| parent | First step of moving tools into appropriate namespaces. (diff) | |
| download | inkscape-3b2966fe4bce6752e47c9180828a628d027d2715.tar.gz inkscape-3b2966fe4bce6752e47c9180828a628d027d2715.zip | |
Update to trunk
(bzr r11950.1.193)
Diffstat (limited to 'src/rect-context.h')
| -rw-r--r-- | src/rect-context.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/rect-context.h b/src/rect-context.h index a85968b1c..cf1682620 100644 --- a/src/rect-context.h +++ b/src/rect-context.h @@ -21,13 +21,17 @@ #include "sp-rect.h" -#define SP_RECT_CONTEXT(obj) (dynamic_cast<SPRectContext*>((SPEventContext*)obj)) -#define SP_IS_RECT_CONTEXT(obj) (dynamic_cast<const SPRectContext*>((const SPEventContext*)obj) != NULL) +#define SP_RECT_CONTEXT(obj) (dynamic_cast<Inkscape::UI::Tools::RectTool*>((Inkscape::UI::Tools::ToolBase*)obj)) +#define SP_IS_RECT_CONTEXT(obj) (dynamic_cast<const Inkscape::UI::Tools::RectTool*>((const Inkscape::UI::Tools::ToolBase*)obj) != NULL) -class SPRectContext : public SPEventContext { +namespace Inkscape { +namespace UI { +namespace Tools { + +class RectTool : public ToolBase { public: - SPRectContext(); - virtual ~SPRectContext(); + RectTool(); + virtual ~RectTool(); static const std::string prefsPath; @@ -54,4 +58,8 @@ private: void selection_changed(Inkscape::Selection* selection); }; +} +} +} + #endif |
