summaryrefslogtreecommitdiffstats
path: root/src/progs/ingenuity/ControlGroups.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-04-29 16:55:55 +0000
committerDavid Robillard <d@drobilla.net>2007-04-29 16:55:55 +0000
commit71b5ad39baceacb5d7aa75050fd8c76bfb16fb76 (patch)
treec6900384706df8e1a899db6110d627ff050fe2b6 /src/progs/ingenuity/ControlGroups.h
parentf25115ca85bc95e1147b582a1137dbb44b86fc83 (diff)
downloadingen-71b5ad39baceacb5d7aa75050fd8c76bfb16fb76.tar.gz
ingen-71b5ad39baceacb5d7aa75050fd8c76bfb16fb76.tar.bz2
ingen-71b5ad39baceacb5d7aa75050fd8c76bfb16fb76.zip
Cleaner control panel layout, with value spinner/entry.
git-svn-id: http://svn.drobilla.net/lad/ingen@485 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/ingenuity/ControlGroups.h')
-rw-r--r--src/progs/ingenuity/ControlGroups.h22
1 files changed, 7 insertions, 15 deletions
diff --git a/src/progs/ingenuity/ControlGroups.h b/src/progs/ingenuity/ControlGroups.h
index a05cceee..020b7bf7 100644
--- a/src/progs/ingenuity/ControlGroups.h
+++ b/src/progs/ingenuity/ControlGroups.h
@@ -42,16 +42,12 @@ class ControlGroup : public Gtk::VBox
{
public:
ControlGroup(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& glade_xml);
- virtual ~ControlGroup() { delete _separator; }
+ virtual ~ControlGroup() { }
- void init(ControlPanel* panel, SharedPtr<PortModel> pm, bool separator);
+ void init(ControlPanel* panel, SharedPtr<PortModel> pm);
inline const SharedPtr<PortModel> port_model() const { return _port_model; }
- void remove_separator() {
- assert(_has_separator); remove(*_separator); delete _separator;
- }
-
protected:
friend class PortPropertiesWindow;
@@ -60,8 +56,6 @@ protected:
ControlPanel* _control_panel;
SharedPtr<PortModel> _port_model;
- bool _has_separator;
- Gtk::VSeparator* _separator;
bool _enable_signal;
};
@@ -74,7 +68,7 @@ class SliderControlGroup : public ControlGroup
{
public:
SliderControlGroup(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& glade_xml);
- void init(ControlPanel* panel, SharedPtr<PortModel> pm, bool separator);
+ void init(ControlPanel* panel, SharedPtr<PortModel> pm);
void enable();
void disable();
@@ -96,15 +90,13 @@ private:
void menu_properties();
- //void slider_grabbed(bool b);
-
bool slider_pressed(GdkEvent* ev);
bool _enabled;
Gtk::Label* _name_label;
- //Gtk::SpinButton* _value_spinner;
- Gtk::VScale* _slider;
+ Gtk::SpinButton* _value_spinner;
+ Gtk::HScale* _slider;
Gtk::Menu* _menu;
Gtk::MenuItem* _menu_properties;
@@ -120,7 +112,7 @@ private:
class IntegerControlGroup : public ControlGroup
{
public:
- IntegerControlGroup(ControlPanel* panel, SharedPtr<PortModel> pm, bool separator);
+ IntegerControlGroup(ControlPanel* panel, SharedPtr<PortModel> pm);
void enable();
void disable();
@@ -145,7 +137,7 @@ private:
class ToggleControlGroup : public ControlGroup
{
public:
- ToggleControlGroup(ControlPanel* panel, SharedPtr<PortModel> pm, bool separator);
+ ToggleControlGroup(ControlPanel* panel, SharedPtr<PortModel> pm);
void enable();
void disable();