summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3fa3b4b)
raw | patch | inline | side by side (parent: 3fa3b4b)
author | cilix42 <cilix42@users.sourceforge.net> | |
Thu, 31 Jul 2008 15:48:39 +0000 (15:48 +0000) | ||
committer | cilix42 <cilix42@users.sourceforge.net> | |
Thu, 31 Jul 2008 15:48:39 +0000 (15:48 +0000) |
src/live_effects/lpe-ruler.cpp | patch | blob | history | |
src/live_effects/parameter/text.h | patch | blob | history |
index 8b457da58397b5dab7c48700edce9d8987a404ac..f60c7b9fa2bb6ceb846ad42e02cad65abf58fbba 100644 (file)
mark_distance(_("Mark distance"), _("Distance between ruler marks"), "mark_distance", &wr, this, 20),
mark_length(_("Mark length"), _("Length of ruler marks"), "mark_length", &wr, this, 10),
scale(_("Scale factor"), _("Scale factor for ruler distance (only affects on-canvas display of ruler length)"), "scale", &wr, this, 1.0),
- info_text(_("Info text"), _("Parameter for text creation"), "info_text", &wr, this, ""),
+ info_text(this),
unit(_("Unit"), _("Unit"), "unit", &wr, this)
{
registerParameter(dynamic_cast<Parameter *>(&mark_distance));
index fafe9fe32384711f7a3a0f206b825d3e2312206f..be42cffbc8f0719199526679de0013b1a582b1e8 100644 (file)
};
/*
- * This parameter does not display a widget in the LPE dialog; LPEs can use it to display text that
- * should not be settable by the user
+ * This parameter does not display a widget in the LPE dialog; LPEs can use it to display on-canvas
+ * text that should not be settable by the user. Note that since no widget is provided, the
+ * parameter must be initialized differently than usual (only with a pointer to the parent effect;
+ * no label, no tooltip, etc.).
*/
class TextParamInternal : public TextParam {
public:
- TextParamInternal(const Glib::ustring& label,
- const Glib::ustring& tip,
- const Glib::ustring& key,
- Inkscape::UI::Widget::Registry* wr,
- Effect* effect,
- const Glib::ustring default_value = "") :
- TextParam(label, tip, key, wr, effect, default_value) {}
- //virtual ~TextParamInternal() {}
+ TextParamInternal(Effect* effect) :
+ TextParam("", "", "", NULL, effect) {}
virtual Gtk::Widget * param_newWidget(Gtk::Tooltips * tooltips) { return NULL; }
};