summaryrefslogtreecommitdiffstats
path: root/src/progs/ingenuity/ControlPanel.cpp
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/ControlPanel.cpp
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/ControlPanel.cpp')
-rw-r--r--src/progs/ingenuity/ControlPanel.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/progs/ingenuity/ControlPanel.cpp b/src/progs/ingenuity/ControlPanel.cpp
index 6cbef330..fa28f0b2 100644
--- a/src/progs/ingenuity/ControlPanel.cpp
+++ b/src/progs/ingenuity/ControlPanel.cpp
@@ -97,23 +97,26 @@ ControlPanel::add_port(SharedPtr<PortModel> pm)
// Add port
if (pm->is_control() && pm->is_input()) {
- bool separator = (_controls.size() > 0);
SliderControlGroup* cg = NULL;
if (pm->is_integer())
cerr << "FIXME: integer\n";
- //cg = new IntegerControlGroup(this, pm, separator);
+ //cg = new IntegerControlGroup(this, pm);
else if (pm->is_toggle())
cerr << "FIXME: toggle\n";
- //cg = new ToggleControlGroup(this, pm, separator);
+ //cg = new ToggleControlGroup(this, pm);
else {
Glib::RefPtr<Gnome::Glade::Xml> xml = GladeFactory::new_glade_reference("control_strip");
xml->get_widget_derived("control_strip", cg);
- cg->init(this, pm, separator);
+ cg->init(this, pm);
}
+ if (_controls.size() > 0)
+ _control_box->pack_start(*Gtk::manage(new Gtk::HSeparator()), false, false, 4);
+
_controls.push_back(cg);
_control_box->pack_start(*cg, false, false, 0);
+ cg->enable();
/*if (pm->connected())
cg->disable();
else
@@ -156,9 +159,6 @@ ControlPanel::remove_port(const Path& path)
break;
}
}
-
- if (was_first && _controls.size() > 0)
- (*_controls.begin())->remove_separator();
}