diff options
Diffstat (limited to 'src/libs/gui/NodeMenu.hpp')
-rw-r--r-- | src/libs/gui/NodeMenu.hpp | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/src/libs/gui/NodeMenu.hpp b/src/libs/gui/NodeMenu.hpp index dd31c4ee..20bc62e7 100644 --- a/src/libs/gui/NodeMenu.hpp +++ b/src/libs/gui/NodeMenu.hpp @@ -23,9 +23,9 @@ #include <raul/Path.hpp> #include <raul/SharedPtr.hpp> #include "client/NodeModel.hpp" -using Ingen::Client::NodeModel; +#include "ObjectMenu.hpp" -using std::string; +using Ingen::Client::NodeModel; namespace Ingen { namespace GUI { @@ -39,14 +39,16 @@ class PatchCanvas; * * \ingroup GUI */ -class NodeMenu : public Gtk::Menu +class NodeMenu : public ObjectMenu { public: - NodeMenu(SharedPtr<NodeModel> node); - - virtual void program_add(int bank, int program, const string& name) {} + NodeMenu(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& xml); + + virtual void program_add(int bank, int program, const std::string& name) {} virtual void program_remove(int bank, int program) {} + void init(SharedPtr<NodeModel> node); + bool has_control_inputs(); protected: @@ -54,18 +56,10 @@ protected: virtual void enable_controls_menuitem(); virtual void disable_controls_menuitem(); - void on_menu_destroy(); - void on_menu_polyphonic(); void on_menu_clone(); void on_menu_learn(); - void on_menu_disconnect_all(); - - void polyphonic_changed(bool p); - bool _enable_signal; - SharedPtr<NodeModel> _node; - Glib::RefPtr<Gtk::MenuItem> _controls_menuitem; - Gtk::CheckMenuItem* _polyphonic_menuitem; + Gtk::MenuItem* _controls_menuitem; }; |