diff --git a/src/rubberband.h b/src/rubberband.h
index 36e9c4d8ec6e89e62c23525ae53769160cf3d4bd..b6ef1984eec6a32fb5efe9d8a1211fb02d3e51aa 100644 (file)
--- a/src/rubberband.h
+++ b/src/rubberband.h
#include "libnr/nr-forward.h"
#include "libnr/nr-point.h"
#include "libnr/nr-maybe.h"
+#include <vector>
/* fixme: do multidocument safe */
class CtrlRect;
+class SPCanvasItem;
+class SPCurve;
+
+enum {
+ RUBBERBAND_MODE_RECT,
+ RUBBERBAND_MODE_TOUCHPATH
+};
namespace Inkscape
{
void stop();
bool is_started();
+ inline int getMode() {return _mode;}
+ inline std::vector<NR::Point> getPoints() {return _points;}
+
+ void setMode(int mode);
+
static Rubberband* get();
private:
SPDesktop *_desktop;
NR::Point _start;
NR::Point _end;
- CtrlRect *_canvas;
+
+ std::vector<NR::Point> _points;
+
+ CtrlRect *_rect;
+ SPCanvasItem *_touchpath;
+ SPCurve *_touchpath_curve;
+
+ void delete_canvas_items();
+
bool _started;
+ int _mode;
};
}