summaryrefslogtreecommitdiffstats
path: root/src/libs/gui/NodeMenu.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-09-21 04:01:33 +0000
committerDavid Robillard <d@drobilla.net>2007-09-21 04:01:33 +0000
commita1e97211b02cc1cd9509617cd3452d731ad7b512 (patch)
tree09fc6e10ce01b6975fc69f3f14bf031919264d80 /src/libs/gui/NodeMenu.hpp
parent2fd281a285e4b0bc31e0a0dc6f970359440612c8 (diff)
downloadingen-a1e97211b02cc1cd9509617cd3452d731ad7b512.tar.gz
ingen-a1e97211b02cc1cd9509617cd3452d731ad7b512.tar.bz2
ingen-a1e97211b02cc1cd9509617cd3452d731ad7b512.zip
Reimplement menu system to be picturey, glade loaded, heirarchial, code reusey, etc.
Patch port polyphony toggling. git-svn-id: http://svn.drobilla.net/lad/ingen@745 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/gui/NodeMenu.hpp')
-rw-r--r--src/libs/gui/NodeMenu.hpp24
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;
};