summaryrefslogtreecommitdiffstats
path: root/src/progs/ingenuity/ControlGroups.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-04-07 06:35:36 +0000
committerDavid Robillard <d@drobilla.net>2007-04-07 06:35:36 +0000
commit883f2e9f31914912f4c5e19bc9e463fe3663a638 (patch)
treee58ec7c219241468d4875cac08dfd67b61cb2a67 /src/progs/ingenuity/ControlGroups.h
parent6178329ac029b44b7b9b4cfd7185b65aeb3269a9 (diff)
downloadingen-883f2e9f31914912f4c5e19bc9e463fe3663a638.tar.gz
ingen-883f2e9f31914912f4c5e19bc9e463fe3663a638.tar.bz2
ingen-883f2e9f31914912f4c5e19bc9e463fe3663a638.zip
Visual tweaks.
Loading range for LV2 plugins (client side). git-svn-id: http://svn.drobilla.net/lad/ingen@413 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/ingenuity/ControlGroups.h')
-rw-r--r--src/progs/ingenuity/ControlGroups.h23
1 files changed, 5 insertions, 18 deletions
diff --git a/src/progs/ingenuity/ControlGroups.h b/src/progs/ingenuity/ControlGroups.h
index 17a0ac25..1cbf34d7 100644
--- a/src/progs/ingenuity/ControlGroups.h
+++ b/src/progs/ingenuity/ControlGroups.h
@@ -41,10 +41,9 @@ class ControlGroup : public Gtk::VBox
{
public:
ControlGroup(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& glade_xml);
+ virtual ~ControlGroup() { delete _separator; }
void init(ControlPanel* panel, SharedPtr<PortModel> pm, bool separator);
-
- ~ControlGroup() { delete _separator; }
inline const SharedPtr<PortModel> port_model() const { return _port_model; }
@@ -77,14 +76,15 @@ public:
void enable();
void disable();
+
+ void set_min(float val);
+ void set_max(float val);
private:
void set_name(const string& name);
virtual void metadata_update(const string& key, const Atom& value);
- inline void set_value(const float val);
- void set_min(float val);
- void set_max(float val);
+ void set_value(float value);
void min_changed();
void max_changed();
@@ -106,19 +106,6 @@ private:
};
-inline void
-SliderControlGroup::set_value(const float val)
-{
- _enable_signal = false;
- //if (_enabled) {
- if (_slider->get_value() != val)
- _slider->set_value(val);
- //m_value_spinner->set_value(val);
- //}
- _enable_signal = true;
-}
-
-
#if 0
/** A spinbutton for integer controls.