Code

The declaration of doEffect_path() in lpe-skeleton.h should match the one in live_eff...
[inkscape.git] / src / live_effects / parameter / point.h
index c1d6681a255df10e12e72272897165f0e0c07fe4..e200921ab88f9bfa1b78ec3bf8a791461741aefb 100644 (file)
@@ -1,65 +1,70 @@
-#ifndef INKSCAPE_LIVEPATHEFFECT_PARAMETER_POINT_H\r
-#define INKSCAPE_LIVEPATHEFFECT_PARAMETER_POINT_H\r
-\r
-/*\r
- * Inkscape::LivePathEffectParameters\r
- *\r
-* Copyright (C) Johan Engelen 2007 <j.b.c.engelen@utwente.nl>\r
- *\r
- * Released under GNU GPL, read the file 'COPYING' for more information\r
- */\r
-\r
-#include <glib/gtypes.h>\r
-#include <2geom/point.h>\r
-\r
-#include "ui/widget/registry.h"\r
-#include "ui/widget/registered-widget.h"\r
-#include <gtkmm/tooltips.h>\r
-\r
-#include "live_effects/parameter/parameter.h"\r
-\r
-struct SPKnot;\r
-\r
-namespace Inkscape {\r
-\r
-namespace LivePathEffect {\r
-\r
-\r
-class PointParam : public Geom::Point, public Parameter {\r
-public:\r
-    PointParam( const Glib::ustring& label,\r
-                const Glib::ustring& tip,\r
-                const Glib::ustring& key,\r
-                Inkscape::UI::Widget::Registry* wr,\r
-                Effect* effect,\r
-                Geom::Point default_value = Geom::Point(0,0));\r
-    ~PointParam();\r
-\r
-    Gtk::Widget * param_getWidget();\r
-\r
-    bool param_readSVGValue(const gchar * strvalue);\r
-    gchar * param_writeSVGValue() const;\r
-\r
-    void param_setValue(Geom::Point newpoint);\r
-    void param_set_default();\r
-\r
-private:\r
-    PointParam(const PointParam&);\r
-    PointParam& operator=(const PointParam&);\r
-\r
-    Gtk::Widget * _widget;\r
-    Gtk::Tooltips * _tooltips;\r
-    Inkscape::UI::Widget::RegisteredPoint * pointwdg;\r
-    void on_button_click();\r
-\r
-    SPKnot *knot;\r
-\r
-    Geom::Point defvalue;\r
-};\r
-\r
-\r
-} //namespace LivePathEffect\r
-\r
-} //namespace Inkscape\r
-\r
-#endif\r
+#ifndef INKSCAPE_LIVEPATHEFFECT_PARAMETER_POINT_H
+#define INKSCAPE_LIVEPATHEFFECT_PARAMETER_POINT_H
+
+/*
+ * Inkscape::LivePathEffectParameters
+ *
+* Copyright (C) Johan Engelen 2007 <j.b.c.engelen@utwente.nl>
+ *
+ * Released under GNU GPL, read the file 'COPYING' for more information
+ */
+
+#include <glib/gtypes.h>
+#include <2geom/point.h>
+
+#include <gtkmm/tooltips.h>
+
+#include "live_effects/parameter/parameter.h"
+
+#include "knot-enums.h"
+
+namespace Inkscape {
+
+namespace LivePathEffect {
+
+
+class PointParam : public Geom::Point, public Parameter {
+public:
+    PointParam( const Glib::ustring& label,
+                const Glib::ustring& tip,
+                const Glib::ustring& key,
+                Inkscape::UI::Widget::Registry* wr,
+                Effect* effect,
+                Geom::Point default_value = Geom::Point(0,0));
+    virtual ~PointParam();
+
+    virtual Gtk::Widget * param_newWidget(Gtk::Tooltips * tooltips);
+
+    bool param_readSVGValue(const gchar * strvalue);
+    gchar * param_writeSVGValue() const;
+
+    void param_setValue(Geom::Point newpoint);
+    void param_set_default();
+
+    void param_set_and_write_new_value(Geom::Point newpoint);
+
+    virtual void param_editOncanvas(SPItem * item, SPDesktop * dt);
+
+    virtual void param_transform_multiply(Geom::Matrix const& /*postmul*/, bool /*set*/);
+
+    void set_oncanvas_looks(SPKnotShapeType shape, SPKnotModeType mode, guint32 color);
+
+private:
+    PointParam(const PointParam&);
+    PointParam& operator=(const PointParam&);
+
+    void on_button_click();
+
+    Geom::Point defvalue;
+
+    SPKnotShapeType knot_shape;
+    SPKnotModeType knot_mode;
+    guint32 knot_color;
+};
+
+
+} //namespace LivePathEffect
+
+} //namespace Inkscape
+
+#endif