summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/parameter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/live_effects/parameter/parameter.h')
-rw-r--r--src/live_effects/parameter/parameter.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/live_effects/parameter/parameter.h b/src/live_effects/parameter/parameter.h
index 23faffc30..58f4635aa 100644
--- a/src/live_effects/parameter/parameter.h
+++ b/src/live_effects/parameter/parameter.h
@@ -37,6 +37,17 @@ namespace LivePathEffect {
class Effect;
+enum ParamType {
+ GENERAL_PARAM,
+ SCALAR_PARAM,
+ BOOL_PARAM,
+ PATH_PARAM,
+ POINT_PARAM,
+ RANDOM_PARAM,
+ ENUM_PARAM,
+ INVALID_PARAM
+};
+
class Parameter {
public:
Parameter( const Glib::ustring& label,
@@ -51,6 +62,9 @@ public:
virtual void param_set_default() = 0;
+ void printTypeName();
+ virtual ParamType paramType() { return GENERAL_PARAM; }
+
// This creates a new widget (newed with Gtk::manage(new ...);)
virtual Gtk::Widget * param_newWidget(Gtk::Tooltips * tooltips) = 0;
@@ -90,6 +104,8 @@ public:
gdouble default_value = 1.0);
virtual ~ScalarParam();
+ virtual ParamType paramType() { return SCALAR_PARAM; }
+
virtual bool param_readSVGValue(const gchar * strvalue);
virtual gchar * param_writeSVGValue() const;