summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/parameter.h
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-06-05 08:59:31 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-06-05 08:59:31 +0000
commite1281e9a426010cc4a3b3fdc7ea8a34613952600 (patch)
tree099cab70b0acad830a590cefa649ee17b3c0be4d /src/live_effects/parameter/parameter.h
parentRemove unused and buggy-looking function get_pref_children. (diff)
downloadinkscape-e1281e9a426010cc4a3b3fdc7ea8a34613952600.tar.gz
inkscape-e1281e9a426010cc4a3b3fdc7ea8a34613952600.zip
Add paramType() method to LPE parameter classes
(bzr r5816)
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;