Code

remove flashing test indicator on pointparam.
[inkscape.git] / src / display / snap-indicator.h
diff --git a/src/display/snap-indicator.h b/src/display/snap-indicator.h
new file mode 100644 (file)
index 0000000..bedeb49
--- /dev/null
@@ -0,0 +1,53 @@
+#ifndef INKSCAPE_DISPLAY_SNAP_INDICATOR_H\r
+#define INKSCAPE_DISPLAY_SNAP_INDICATOR_H\r
+\r
+/** \file\r
+ * Provides a class that shows a temporary indicator on the canvas of where the snap was, and what kind of snap\r
+ *\r
+ * Authors:\r
+ *   Johan Engelen\r
+ *\r
+ * Copyright (C) Johan Engelen 2008 <j.b.c.engelen@utwente.nl>\r
+ *\r
+ * Released under GNU GPL, read the file 'COPYING' for more information\r
+ */\r
+\r
+#include "forward.h"\r
+#include "display/display-forward.h"\r
+#include <2geom/point.h>\r
+\r
+namespace Inkscape {\r
+namespace Display {\r
+\r
+class SnapIndicator  {\r
+public:\r
+    SnapIndicator(SPDesktop *desktop);\r
+    virtual ~SnapIndicator();\r
+\r
+    void set_new_snappoint(Geom::Point p);\r
+    void remove_snappoint();\r
+\r
+protected:\r
+    TemporaryItem * tempitem;\r
+    SPDesktop *desktop;\r
+\r
+private:\r
+    SnapIndicator(const SnapIndicator&);\r
+    SnapIndicator& operator=(const SnapIndicator&);\r
+};\r
+\r
+} //namespace Display\r
+} //namespace Inkscape\r
+\r
+#endif\r
+\r
+/*\r
+  Local Variables:\r
+  mode:c++\r
+  c-file-style:"stroustrup"\r
+  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))\r
+  indent-tabs-mode:nil\r
+  fill-column:99\r
+  End:\r
+*/\r
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :\r