summaryrefslogtreecommitdiffstats
path: root/src/progs/ingenuity/DSSIController.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-09-13 06:11:25 +0000
committerDavid Robillard <d@drobilla.net>2006-09-13 06:11:25 +0000
commite5675ebfeb93175e16762d0a078bd51d15d05f63 (patch)
tree189249ed9014e4c482cfaed0d6af28ced68570ca /src/progs/ingenuity/DSSIController.cpp
parent23b7568ab7a87a79c186b8ddf3d3db4f1f934b06 (diff)
downloadingen-e5675ebfeb93175e16762d0a078bd51d15d05f63.tar.gz
ingen-e5675ebfeb93175e16762d0a078bd51d15d05f63.tar.bz2
ingen-e5675ebfeb93175e16762d0a078bd51d15d05f63.zip
Heavy-duty redesign of client library and GUI (now fully signal driven with clean Model/View separation).
Smarter, centralized window creation/management (should make window unification easy (panes?)). Typed metadata system, no more fugly string conversion of floats. Supports OSC fundamental types string, int, float, blob for now (though blob isn't working over the wire yet). git-svn-id: http://svn.drobilla.net/lad/ingen@131 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/ingenuity/DSSIController.cpp')
-rw-r--r--src/progs/ingenuity/DSSIController.cpp33
1 files changed, 11 insertions, 22 deletions
diff --git a/src/progs/ingenuity/DSSIController.cpp b/src/progs/ingenuity/DSSIController.cpp
index 6bc75c70..4d5bb2f7 100644
--- a/src/progs/ingenuity/DSSIController.cpp
+++ b/src/progs/ingenuity/DSSIController.cpp
@@ -29,9 +29,9 @@ namespace Ingenuity {
DSSIController::DSSIController(CountedPtr<NodeModel> model)
-: NodeController(model),
- m_banks_dirty(true)
+: m_banks_dirty(true)
{
+#if 0
assert(model->plugin()->type() == PluginModel::DSSI);
Gtk::Menu::MenuList& items = m_menu.items();
items[0].property_sensitive() = true; // "Show Control Window" item
@@ -43,21 +43,24 @@ DSSIController::DSSIController(CountedPtr<NodeModel> model)
items.push_front(Gtk::Menu_Helpers::MenuElem("Show Plugin GUI",
sigc::mem_fun(this, &DSSIController::show_gui)));
+#endif
}
void
DSSIController::program_add(int bank, int program, const string& name)
{
- node_model()->add_program(bank, program, name);
- m_banks_dirty = true;
+ cerr << "FIXME: DSSI add program\n";
+ //node_model()->add_program(bank, program, name);
+ //m_banks_dirty = true;
}
void
DSSIController::program_remove(int bank, int program)
{
- node_model()->remove_program(bank, program);
- m_banks_dirty = true;
+ cerr << "FIXME: DSSI add program\n";
+ //node_model()->remove_program(bank, program);
+ //m_banks_dirty = true;
}
/** Trivial wrapper of attempt_to_show_gui for libsigc
@@ -120,22 +123,6 @@ DSSIController::send_program_change(int bank, int program)
}
-void
-DSSIController::create_module(OmFlowCanvas* canvas)
-{
- //cerr << "Creating DSSI module " << m_model->path() << endl;
-
- assert(canvas != NULL);
- assert(m_module == NULL);
-
- m_module = new DSSIModule(canvas, this);
- create_all_ports();
-
- m_module->move_to(node_model()->x(), node_model()->y());
-}
-
-
-
/** Attempt to show the DSSI GUI for this plugin.
*
* Returns whether or not GUI was successfully loaded/shown.
@@ -274,9 +261,11 @@ DSSIController::attempt_to_show_gui()
void
DSSIController::show_menu(GdkEventButton* event)
{
+#if 0
if (m_banks_dirty)
update_program_menu();
NodeController::show_menu(event);
+#endif
}