diff options
author | David Robillard <d@drobilla.net> | 2012-06-12 21:46:22 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-06-12 21:46:22 +0000 |
commit | 071e36b69b5bcc203f70179580c8bed924b7305b (patch) | |
tree | 6af0c15841b20ae8ca5d020a7423d80a7c432fc3 /src/gui/PortMenu.hpp | |
parent | 9923f2bc2a0731c111dbf614223ed81dee3e91f5 (diff) | |
download | ingen-071e36b69b5bcc203f70179580c8bed924b7305b.tar.gz ingen-071e36b69b5bcc203f70179580c8bed924b7305b.tar.bz2 ingen-071e36b69b5bcc203f70179580c8bed924b7305b.zip |
Add "expose" (to parent) operation for ports.
Partially implments #39. Export all the way to root has a few issues, I am
considering this functionality good enough for now.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4496 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/PortMenu.hpp')
-rw-r--r-- | src/gui/PortMenu.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/PortMenu.hpp b/src/gui/PortMenu.hpp index fc89703f..cc33efb0 100644 --- a/src/gui/PortMenu.hpp +++ b/src/gui/PortMenu.hpp @@ -43,20 +43,22 @@ public: void init(App& app, SharedPtr<const Client::PortModel> port, - bool patch_port = false); + bool is_patch_port = false); private: void on_menu_disconnect(); void on_menu_set_min(); void on_menu_set_max(); void on_menu_reset_range(); - - bool _patch_port; + void on_menu_expose(); Gtk::Menu* _port_menu; Gtk::MenuItem* _set_min_menuitem; Gtk::MenuItem* _set_max_menuitem; Gtk::MenuItem* _reset_range_menuitem; + Gtk::MenuItem* _expose_menuitem; + + bool _is_patch_port; }; } // namespace GUI |