index bd3fe906e03b903951db3509d8c5c744cb1d6395..256ab343f4ca7cb14f29812969b9000d0a5f3088 100644 (file)
namespace Gtk {
class Widget;
+ class Tooltips;
}
namespace Inkscape {
virtual void param_set_default() = 0;
- // This returns pointer to the parameter's widget to be put in the live-effects dialog. Must also create the
- // necessary widget if it does not exist yet.
- virtual Gtk::Widget * param_getWidget() = 0;
+ // This creates a new widget (newed with Gtk::manage(new ...);)
+ virtual Gtk::Widget * param_newWidget(Gtk::Tooltips * tooltips) = 0;
+
virtual Glib::ustring * param_getTooltip() { return ¶m_tooltip; };
virtual void param_editOncanvas(SPItem * /*item*/, SPDesktop * /*dt*/) {};
- virtual void param_setup_notepath(Inkscape::NodePath::Path */*np*/) {};
+ virtual void param_setup_nodepath(Inkscape::NodePath::Path */*np*/) {};
virtual void param_transform_multiply(Geom::Matrix const& /*postmul*/, bool /*set*/) {};
Effect* param_effect;
+ void param_write_to_repr(const char * svgd);
+
private:
Parameter(const Parameter&);
Parameter& operator=(const Parameter&);
void param_set_digits(unsigned digits);
void param_set_increments(double step, double page);
- virtual Gtk::Widget * param_getWidget();
+ virtual Gtk::Widget * param_newWidget(Gtk::Tooltips * tooltips);
inline operator gdouble()
{ return value; };
gdouble max;
bool integer;
gdouble defvalue;
- Inkscape::UI::Widget::RegisteredScalar * rsu;
unsigned digits;
double inc_step;
double inc_page;