66eb3c9877fa78053e9e8e37c736fff0cdddde87
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 PowerStrokePointArrayParamKnotHolderEntity;
27 class PowerStrokePointArrayParam : public ArrayParam<Geom::Point> {
28 public:
29 PowerStrokePointArrayParam( const Glib::ustring& label,
30 const Glib::ustring& tip,
31 const Glib::ustring& key,
32 Inkscape::UI::Widget::Registry* wr,
33 Effect* effect,
34 const gchar *handle_tip = NULL); // tip for automatically associated on-canvas handle
35 virtual ~PowerStrokePointArrayParam();
37 virtual Gtk::Widget * param_newWidget(Gtk::Tooltips * tooltips);
39 virtual void param_transform_multiply(Geom::Matrix const& /*postmul*/, bool /*set*/);
41 void set_oncanvas_looks(SPKnotShapeType shape, SPKnotModeType mode, guint32 color);
43 virtual bool providesKnotHolderEntities() { return true; }
44 virtual void addKnotHolderEntities(KnotHolder *knotholder, SPDesktop *desktop, SPItem *item);
46 friend class PowerStrokePointArrayParamKnotHolderEntity;
48 private:
49 PowerStrokePointArrayParam(const PowerStrokePointArrayParam&);
50 PowerStrokePointArrayParam& operator=(const PowerStrokePointArrayParam&);
52 SPKnotShapeType knot_shape;
53 SPKnotModeType knot_mode;
54 guint32 knot_color;
55 gchar *handle_tip;
56 };
59 } //namespace LivePathEffect
61 } //namespace Inkscape
63 #endif