diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-07-02 16:33:20 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-07-02 16:33:20 +0000 |
| commit | 37dc1dd695cd2db6dcda930866bf97c10076ca77 (patch) | |
| tree | 214b3f9d8d6508725894695e80c77fce4ccd27bd /src/live_effects/parameter/point.h | |
| parent | Don't dereference NULL knotholder; fixes instant crash, but using the handles... (diff) | |
| download | inkscape-37dc1dd695cd2db6dcda930866bf97c10076ca77.tar.gz inkscape-37dc1dd695cd2db6dcda930866bf97c10076ca77.zip | |
Enable status bar tips for LPE handles that are automatically created from PointParams
(bzr r6118)
Diffstat (limited to 'src/live_effects/parameter/point.h')
| -rw-r--r-- | src/live_effects/parameter/point.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/live_effects/parameter/point.h b/src/live_effects/parameter/point.h index 3e8dc843a..bbd4d815e 100644 --- a/src/live_effects/parameter/point.h +++ b/src/live_effects/parameter/point.h @@ -30,7 +30,8 @@ public: const Glib::ustring& key, Inkscape::UI::Widget::Registry* wr, Effect* effect, - Geom::Point default_value = Geom::Point(0,0)); + const gchar *handle_tip = NULL, + Geom::Point default_value = Geom::Point(0,0) ); // tip for automatically associated on-canvas handle virtual ~PointParam(); virtual ParamType paramType() { return POINT_PARAM; } @@ -39,6 +40,7 @@ public: bool param_readSVGValue(const gchar * strvalue); gchar * param_getSVGValue() const; + inline const gchar *handleTip() const { return handle_tip ? handle_tip : param_tooltip.c_str(); } void param_setValue(Geom::Point newpoint); void param_set_default(); @@ -69,6 +71,7 @@ private: SPKnotShapeType knot_shape; SPKnotModeType knot_mode; guint32 knot_color; + gchar *handle_tip; }; |
