summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f26f640)
raw | patch | inline | side by side (parent: f26f640)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 13 Apr 2008 21:13:08 +0000 (21:13 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 13 Apr 2008 21:13:08 +0000 (21:13 +0000) |
src/live_effects/parameter/parameter.cpp | patch | blob | history |
index 5cbb7b1d5eb563787e54cfd7c01808287a0e42bb..527f2fdd925ccf37bbc707d4c0454b44a0d7a61a 100644 (file)
Parameter::Parameter( const Glib::ustring& label, const Glib::ustring& tip,
const Glib::ustring& key, Inkscape::UI::Widget::Registry* wr,
Effect* effect )
- : oncanvas_editable(false)
+ : param_key(key),
+ param_wr(wr),
+ param_label(label),
+ oncanvas_editable(false),
+ param_tooltip(tip),
+ param_effect(effect)
{
- param_label = label;
- param_tooltip = tip;
- param_key = key;
- param_wr = wr;
- param_effect = effect;
}
ScalarParam::ScalarParam( const Glib::ustring& label, const Glib::ustring& tip,
const Glib::ustring& key, Inkscape::UI::Widget::Registry* wr,
Effect* effect, gdouble default_value)
- : Parameter(label, tip, key, wr, effect)
+ : Parameter(label, tip, key, wr, effect),
+ value(default_value),
+ min(-NR_HUGE),
+ max(NR_HUGE),
+ integer(false),
+ defvalue(default_value),
+ digits(2),
+ inc_step(0.1),
+ inc_page(1)
{
- defvalue = default_value;
- value = defvalue;
- min = -NR_HUGE;
- max = NR_HUGE;
- integer = false;
- inc_step = 0.1;
- inc_page = 1;
- digits = 2;
}
ScalarParam::~ScalarParam()