Code

fix typo notepath => nodepath
[inkscape.git] / src / live_effects / parameter / point.h
1 #ifndef INKSCAPE_LIVEPATHEFFECT_PARAMETER_POINT_H
2 #define INKSCAPE_LIVEPATHEFFECT_PARAMETER_POINT_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 "ui/widget/registry.h"
16 #include "ui/widget/registered-widget.h"
17 #include <gtkmm/tooltips.h>
19 #include "live_effects/parameter/parameter.h"
21 struct SPKnot;
23 namespace Inkscape {
25 namespace LivePathEffect {
28 class PointParam : public Geom::Point, public Parameter {
29 public:
30     PointParam( const Glib::ustring& label,
31                 const Glib::ustring& tip,
32                 const Glib::ustring& key,
33                 Inkscape::UI::Widget::Registry* wr,
34                 Effect* effect,
35                 Geom::Point default_value = Geom::Point(0,0));
36     virtual ~PointParam();
38     Gtk::Widget * param_getWidget();
40     bool param_readSVGValue(const gchar * strvalue);
41     gchar * param_writeSVGValue() const;
43     void param_setValue(Geom::Point newpoint);
44     void param_set_default();
46     virtual void param_transform_multiply(Geom::Matrix const& /*postmul*/, bool /*set*/) {};
48 private:
49     PointParam(const PointParam&);
50     PointParam& operator=(const PointParam&);
52     Gtk::Widget * _widget;
53     Gtk::Tooltips * _tooltips;
54     Inkscape::UI::Widget::RegisteredPoint * pointwdg;
55     void on_button_click();
57     SPKnot *knot;
59     Geom::Point defvalue;
60 };
63 } //namespace LivePathEffect
65 } //namespace Inkscape
67 #endif