diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2017-02-14 16:09:32 +0100 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2017-02-15 20:07:49 +0100 |
commit | 0a41daa932a0f742c7dc7a14c02ae93baa12903a (patch) | |
tree | 75d6585d78fcc5b2d47f0ec90f25289ac9174265 /gtk2_ardour/editor.h | |
parent | 2cc94f88801fa98e7b06d782903ab48446d08287 (diff) |
classify all region actions based on how they get a list of regions to operate on; use this in Editor::sensitize_the_right_region_actions()
There are still problems because actions like trim_front()
that use the edit point get the edit point with different
results than the code that sensitizes actions
Diffstat (limited to 'gtk2_ardour/editor.h')
-rw-r--r-- | gtk2_ardour/editor.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk2_ardour/editor.h b/gtk2_ardour/editor.h index 4b48b9a7f7..fbf050bd87 100644 --- a/gtk2_ardour/editor.h +++ b/gtk2_ardour/editor.h @@ -2262,7 +2262,10 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD QuantizeDialog* quantize_dialog; MainMenuDisabler* _main_menu_disabler; - /* private helper functions to help with registering axis */ + /* private helper functions to help with registering region actions */ + + Glib::RefPtr<Gtk::Action> register_region_action (Glib::RefPtr<Gtk::ActionGroup> group, Editing::RegionActionTarget, char const * name, char const * label, sigc::slot<void> slot); + void register_toggle_region_action (Glib::RefPtr<Gtk::ActionGroup> group, Editing::RegionActionTarget, char const * name, char const * label, sigc::slot<void> slot); Glib::RefPtr<Gtk::Action> reg_sens (Glib::RefPtr<Gtk::ActionGroup> group, char const * name, char const * label, sigc::slot<void> slot); void toggle_reg_sens (Glib::RefPtr<Gtk::ActionGroup> group, char const * name, char const * label, sigc::slot<void> slot); |