diff options
author | David Robillard <d@drobilla.net> | 2006-12-11 22:32:31 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-12-11 22:32:31 +0000 |
commit | 9e2a757e026abf79d0cdcf12a18796fa89973356 (patch) | |
tree | b739d65e9d15415b5fbfd1e9969e2efd7b498c25 /src/progs/ingenuity/PatchCanvas.cpp | |
parent | c9fdc9d94f3d6081e36e98f5ae6cc03f361e8057 (diff) | |
download | ingen-9e2a757e026abf79d0cdcf12a18796fa89973356.tar.gz ingen-9e2a757e026abf79d0cdcf12a18796fa89973356.tar.bz2 ingen-9e2a757e026abf79d0cdcf12a18796fa89973356.zip |
Serialization of patch ports.
git-svn-id: http://svn.drobilla.net/lad/ingen@216 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/ingenuity/PatchCanvas.cpp')
-rw-r--r-- | src/progs/ingenuity/PatchCanvas.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/progs/ingenuity/PatchCanvas.cpp b/src/progs/ingenuity/PatchCanvas.cpp index 84ec274c..fe65a05f 100644 --- a/src/progs/ingenuity/PatchCanvas.cpp +++ b/src/progs/ingenuity/PatchCanvas.cpp @@ -60,22 +60,22 @@ PatchCanvas::PatchCanvas(SharedPtr<PatchModel> patch, int width, int height) // Add port menu items m_menu_add_audio_input->signal_activate().connect( sigc::bind(sigc::mem_fun(this, &PatchCanvas::menu_add_port), - "audio_input", "AUDIO", false)); + "audio_input", "ingen:audio", false)); m_menu_add_audio_output->signal_activate().connect( sigc::bind(sigc::mem_fun(this, &PatchCanvas::menu_add_port), - "audio_output", "AUDIO", true)); + "audio_output", "ingen:audio", true)); m_menu_add_control_input->signal_activate().connect( sigc::bind(sigc::mem_fun(this, &PatchCanvas::menu_add_port), - "control_input", "CONTROL", false)); + "control_input", "ingen:control", false)); m_menu_add_control_output->signal_activate().connect( sigc::bind(sigc::mem_fun(this, &PatchCanvas::menu_add_port), - "control_output", "CONTROL", true)); + "control_output", "ingen:control", true)); m_menu_add_midi_input->signal_activate().connect( sigc::bind(sigc::mem_fun(this, &PatchCanvas::menu_add_port), - "midi_input", "MIDI", false)); + "midi_input", "ingen:midi", false)); m_menu_add_midi_output->signal_activate().connect( sigc::bind(sigc::mem_fun(this, &PatchCanvas::menu_add_port), - "midi_output", "MIDI", true)); + "midi_output", "ingen:midi", true)); // Connect to model signals to track state m_patch->new_node_sig.connect(sigc::mem_fun(this, &PatchCanvas::add_node)); @@ -224,8 +224,7 @@ PatchCanvas::connect(boost::shared_ptr<LibFlowCanvas::Port> src_port, boost::sha return; // Midi binding/learn shortcut - if (src->model()->type() == PortModel::MIDI && - dst->model()->type() == PortModel::CONTROL) + if (src->model()->is_midi() && dst->model()->is_control()) { cerr << "FIXME: MIDI binding" << endl; #if 0 |