Code

commit missing files
[inkscape.git] / src / live_effects / parameter / powerstrokepointarray.h
1 #ifndef INKSCAPE_LIVEPATHEFFECT_POWERSTROKE_POINT_ARRAY_H
2 #define INKSCAPE_LIVEPATHEFFECT_POWERSTROKE_POINT_ARRAY_H
4 /*
5  * Inkscape::LivePathEffectParameters
6  *
7 * Copyright (C) Johan Engelen 2007 <j.b.c.engelen@utwente.nl>
8  *
9  * Released under GNU GPL, read the file 'COPYING' for more information
10  */
12 #include <glib/gtypes.h>
13 #include <2geom/point.h>
15 #include <gtkmm/tooltips.h>
17 #include "live_effects/parameter/array.h"
19 #include "knot-holder-entity.h"
21 namespace Inkscape {
23 namespace LivePathEffect {
25 class PowerStrokePointArrayParam : public ArrayParam<Geom::Point> {
26 public:
27     PowerStrokePointArrayParam( const Glib::ustring& label,
28                 const Glib::ustring& tip,
29                 const Glib::ustring& key,
30                 Inkscape::UI::Widget::Registry* wr,
31                 Effect* effect,
32                 const gchar *handle_tip = NULL); // tip for automatically associated on-canvas handle
33     virtual ~PowerStrokePointArrayParam();
35     virtual Gtk::Widget * param_newWidget(Gtk::Tooltips * tooltips);
37     virtual void param_transform_multiply(Geom::Matrix const& /*postmul*/, bool /*set*/);
39     void set_oncanvas_looks(SPKnotShapeType shape, SPKnotModeType mode, guint32 color);
41     virtual bool providesKnotHolderEntities() { return true; }
42     virtual void addKnotHolderEntities(KnotHolder *knotholder, SPDesktop *desktop, SPItem *item);
44 private:
45     PowerStrokePointArrayParam(const PowerStrokePointArrayParam&);
46     PowerStrokePointArrayParam& operator=(const PowerStrokePointArrayParam&);
48     SPKnotShapeType knot_shape;
49     SPKnotModeType knot_mode;
50     guint32 knot_color;
51     gchar *handle_tip;
52 };
55 } //namespace LivePathEffect
57 } //namespace Inkscape
59 #endif