X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Flive_effects%2Fparameter%2Fpoint.h;h=e200921ab88f9bfa1b78ec3bf8a791461741aefb;hb=04fca1803e564baabd66e7dd1db308de565487be;hp=c1d6681a255df10e12e72272897165f0e0c07fe4;hpb=4ad7f2486b812babdc497155bd228759ac2beccc;p=inkscape.git diff --git a/src/live_effects/parameter/point.h b/src/live_effects/parameter/point.h index c1d6681a2..e200921ab 100644 --- a/src/live_effects/parameter/point.h +++ b/src/live_effects/parameter/point.h @@ -1,65 +1,70 @@ -#ifndef INKSCAPE_LIVEPATHEFFECT_PARAMETER_POINT_H -#define INKSCAPE_LIVEPATHEFFECT_PARAMETER_POINT_H - -/* - * Inkscape::LivePathEffectParameters - * -* Copyright (C) Johan Engelen 2007 - * - * Released under GNU GPL, read the file 'COPYING' for more information - */ - -#include -#include <2geom/point.h> - -#include "ui/widget/registry.h" -#include "ui/widget/registered-widget.h" -#include - -#include "live_effects/parameter/parameter.h" - -struct SPKnot; - -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)); - ~PointParam(); - - Gtk::Widget * param_getWidget(); - - bool param_readSVGValue(const gchar * strvalue); - gchar * param_writeSVGValue() const; - - void param_setValue(Geom::Point newpoint); - void param_set_default(); - -private: - PointParam(const PointParam&); - PointParam& operator=(const PointParam&); - - Gtk::Widget * _widget; - Gtk::Tooltips * _tooltips; - Inkscape::UI::Widget::RegisteredPoint * pointwdg; - void on_button_click(); - - SPKnot *knot; - - Geom::Point defvalue; -}; - - -} //namespace LivePathEffect - -} //namespace Inkscape - -#endif +#ifndef INKSCAPE_LIVEPATHEFFECT_PARAMETER_POINT_H +#define INKSCAPE_LIVEPATHEFFECT_PARAMETER_POINT_H + +/* + * Inkscape::LivePathEffectParameters + * +* Copyright (C) Johan Engelen 2007 + * + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +#include +#include <2geom/point.h> + +#include + +#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