summaryrefslogtreecommitdiffstats
path: root/src/libs/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-01-23 03:51:26 +0000
committerDavid Robillard <d@drobilla.net>2008-01-23 03:51:26 +0000
commit7b19bdc06b244844653eec56ec4f4589d71698b7 (patch)
tree033e99367cfe45998ebd0a7b330a0b1786c55db2 /src/libs/gui
parentd6b87aa26ef482a8952437f7472b81a2240f01fd (diff)
downloadingen-7b19bdc06b244844653eec56ec4f4589d71698b7.tar.gz
ingen-7b19bdc06b244844653eec56ec4f4589d71698b7.tar.bz2
ingen-7b19bdc06b244844653eec56ec4f4589d71698b7.zip
More LV2 extension work.
Implement URI map extension in Ingen. git-svn-id: http://svn.drobilla.net/lad/ingen@1097 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/gui')
-rw-r--r--src/libs/gui/PatchCanvas.cpp8
-rw-r--r--src/libs/gui/PatchCanvas.hpp2
-rw-r--r--src/libs/gui/ingen_gui.glade18
3 files changed, 28 insertions, 0 deletions
diff --git a/src/libs/gui/PatchCanvas.cpp b/src/libs/gui/PatchCanvas.cpp
index ecd97318..9764cdc0 100644
--- a/src/libs/gui/PatchCanvas.cpp
+++ b/src/libs/gui/PatchCanvas.cpp
@@ -68,6 +68,8 @@ PatchCanvas::PatchCanvas(SharedPtr<PatchModel> patch, int width, int height)
xml->get_widget("canvas_menu_add_midi_output", _menu_add_midi_output);
xml->get_widget("canvas_menu_add_osc_input", _menu_add_osc_input);
xml->get_widget("canvas_menu_add_osc_output", _menu_add_osc_output);
+ xml->get_widget("canvas_menu_add_event_input", _menu_add_event_input);
+ xml->get_widget("canvas_menu_add_event_output", _menu_add_event_output);
xml->get_widget("canvas_menu_load_plugin", _menu_load_plugin);
xml->get_widget("canvas_menu_load_patch", _menu_load_patch);
xml->get_widget("canvas_menu_new_patch", _menu_new_patch);
@@ -97,6 +99,12 @@ PatchCanvas::PatchCanvas(SharedPtr<PatchModel> patch, int width, int height)
_menu_add_osc_output->signal_activate().connect(
sigc::bind(sigc::mem_fun(this, &PatchCanvas::menu_add_port),
"osc_output", "ingen:OSCPort", true));
+ _menu_add_event_input->signal_activate().connect(
+ sigc::bind(sigc::mem_fun(this, &PatchCanvas::menu_add_port),
+ "event_input", "ingen:EventPort", false));
+ _menu_add_midi_output->signal_activate().connect(
+ sigc::bind(sigc::mem_fun(this, &PatchCanvas::menu_add_port),
+ "event_output", "ingen:EventPort", true));
// Add control menu items
/*_menu_add_number_control->signal_activate().connect(
diff --git a/src/libs/gui/PatchCanvas.hpp b/src/libs/gui/PatchCanvas.hpp
index 1df3773f..98a1635d 100644
--- a/src/libs/gui/PatchCanvas.hpp
+++ b/src/libs/gui/PatchCanvas.hpp
@@ -127,6 +127,8 @@ private:
Gtk::MenuItem* _menu_add_audio_output;
Gtk::MenuItem* _menu_add_control_input;
Gtk::MenuItem* _menu_add_control_output;
+ Gtk::MenuItem* _menu_add_event_input;
+ Gtk::MenuItem* _menu_add_event_output;
Gtk::MenuItem* _menu_add_midi_input;
Gtk::MenuItem* _menu_add_midi_output;
Gtk::MenuItem* _menu_add_osc_input;
diff --git a/src/libs/gui/ingen_gui.glade b/src/libs/gui/ingen_gui.glade
index d604ee76..e4f11624 100644
--- a/src/libs/gui/ingen_gui.glade
+++ b/src/libs/gui/ingen_gui.glade
@@ -2568,6 +2568,15 @@ Contributors:
</widget>
</child>
<child>
+ <widget class="GtkMenuItem" id="canvas_menu_add_event_input">
+ <property name="visible">True</property>
+ <property name="tooltip" translatable="yes">Add a generic event input to this patch</property>
+ <property name="label" translatable="yes">Event</property>
+ <property name="use_underline">True</property>
+ <signal name="activate" handler="on_canvas_menu_add_event_input_activate"/>
+ </widget>
+ </child>
+ <child>
<widget class="GtkMenuItem" id="canvas_menu_add_osc_input">
<property name="visible">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
@@ -2622,6 +2631,15 @@ Contributors:
</widget>
</child>
<child>
+ <widget class="GtkMenuItem" id="canvas_menu_add_event_output">
+ <property name="visible">True</property>
+ <property name="tooltip" translatable="yes">Add a generic event output to this patch</property>
+ <property name="label" translatable="yes">Event</property>
+ <property name="use_underline">True</property>
+ <signal name="activate" handler="on_canvas_menu_add_event_output_activate"/>
+ </widget>
+ </child>
+ <child>
<widget class="GtkMenuItem" id="canvas_menu_add_osc_output">
<property name="visible">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>