diff options
author | David Robillard <d@drobilla.net> | 2007-09-22 19:43:11 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-09-22 19:43:11 +0000 |
commit | 4bd53e016b8bb912e48d77e756720516d876d5c2 (patch) | |
tree | f8d9790c5b4d7d615431c8f0fade26ae8e3ca414 /src/libs/gui/NodeMenu.cpp | |
parent | d348e467cd87bda8a75337b16fb00ea37c627bcf (diff) | |
download | ingen-4bd53e016b8bb912e48d77e756720516d876d5c2.tar.gz ingen-4bd53e016b8bb912e48d77e756720516d876d5c2.tar.bz2 ingen-4bd53e016b8bb912e48d77e756720516d876d5c2.zip |
LV2 UI extension updates.
LV2 GUI support in ingen.
git-svn-id: http://svn.drobilla.net/lad/ingen@763 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/gui/NodeMenu.cpp')
-rw-r--r-- | src/libs/gui/NodeMenu.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libs/gui/NodeMenu.cpp b/src/libs/gui/NodeMenu.cpp index 54966e7e..9c2d978e 100644 --- a/src/libs/gui/NodeMenu.cpp +++ b/src/libs/gui/NodeMenu.cpp @@ -37,10 +37,13 @@ NodeMenu::NodeMenu(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml Gtk::Menu* node_menu = NULL; xml->get_widget("node_menu", node_menu); xml->get_widget("node_controls_menuitem", _controls_menuitem); + xml->get_widget("node_gui_menuitem", _gui_menuitem); node_menu->remove(*_controls_menuitem); + node_menu->remove(*_gui_menuitem); items().push_front(Gtk::Menu_Helpers::SeparatorElem()); insert(*_controls_menuitem, 0); + insert(*_gui_menuitem, 0); } @@ -52,12 +55,24 @@ NodeMenu::init(SharedPtr<NodeModel> node) _controls_menuitem->signal_activate().connect(sigc::bind( sigc::mem_fun(App::instance().window_factory(), &WindowFactory::present_controls), node)); + + if (node->plugin()->ui()) + _gui_menuitem->signal_activate().connect(sigc::mem_fun(this, &NodeMenu::show_gui)); + //else + // _gui_menuitem->hide(); _enable_signal = true; } void +NodeMenu::show_gui() +{ + cerr << "SHOW GUI" << endl; +} + + +void NodeMenu::on_menu_clone() { cerr << "[NodeMenu] FIXME: clone broken\n"; |