diff options
author | Carl Hetherington <carl@carlh.net> | 2010-09-05 20:41:48 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-09-05 20:41:48 +0000 |
commit | 841147d9a7e48356d68f8e7c05f60ab1b537f6fc (patch) | |
tree | a56f420d330a131daaa3d0367159fd90c71b5aee /gtk2_ardour/processor_box.h | |
parent | 852ec4c77b76bf8acafdb533face9bb14a8d75a0 (diff) |
Desensitize edit menu item in the processor box menu if there is nothing selected which can be edited.
git-svn-id: svn://localhost/ardour2/branches/3.0@7742 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/processor_box.h')
-rw-r--r-- | gtk2_ardour/processor_box.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/processor_box.h b/gtk2_ardour/processor_box.h index 80b0cd818a..d5382d37b2 100644 --- a/gtk2_ardour/processor_box.h +++ b/gtk2_ardour/processor_box.h @@ -277,6 +277,7 @@ class ProcessorBox : public Gtk::HBox, public PluginInterestedObject, public ARD static Glib::RefPtr<Gtk::Action> cut_action; static Glib::RefPtr<Gtk::Action> paste_action; static Glib::RefPtr<Gtk::Action> rename_action; + static Glib::RefPtr<Gtk::Action> edit_action; void paste_processor_state (const XMLNodeList&, boost::shared_ptr<ARDOUR::Processor>); void activate_processor (boost::shared_ptr<ARDOUR::Processor>); @@ -316,6 +317,9 @@ class ProcessorBox : public Gtk::HBox, public PluginInterestedObject, public ARD std::list<ProcessorWindowProxy*> _processor_window_proxies; void set_processor_ui (boost::shared_ptr<ARDOUR::Processor>, Gtk::Window *); void maybe_add_processor_to_ui_list (boost::weak_ptr<ARDOUR::Processor>); + + bool one_processor_can_be_edited (); + bool processor_can_be_edited (boost::shared_ptr<ARDOUR::Processor>); }; #endif /* __ardour_gtk_processor_box__ */ |