summaryrefslogtreecommitdiff
path: root/gtk2_ardour/public_editor.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2017-02-14 16:09:32 +0100
committerPaul Davis <paul@linuxaudiosystems.com>2017-02-15 20:07:49 +0100
commit0a41daa932a0f742c7dc7a14c02ae93baa12903a (patch)
tree75d6585d78fcc5b2d47f0ec90f25289ac9174265 /gtk2_ardour/public_editor.h
parent2cc94f88801fa98e7b06d782903ab48446d08287 (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/public_editor.h')
-rw-r--r--gtk2_ardour/public_editor.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk2_ardour/public_editor.h b/gtk2_ardour/public_editor.h
index 38b977171b..d1dc082ad4 100644
--- a/gtk2_ardour/public_editor.h
+++ b/gtk2_ardour/public_editor.h
@@ -353,6 +353,16 @@ class PublicEditor : public Gtkmm2ext::Tabbable {
static sigc::signal<void> DropDownKeys;
+ struct RegionAction {
+ Glib::RefPtr<Gtk::Action> action;
+ Editing::RegionActionTarget target;
+
+ RegionAction (Glib::RefPtr<Gtk::Action> a, Editing::RegionActionTarget tgt)
+ : action (a), target (tgt) {}
+ };
+
+ std::map<std::string,RegionAction> region_action_map;
+
Glib::RefPtr<Gtk::ActionGroup> editor_actions;
Glib::RefPtr<Gtk::ActionGroup> editor_menu_actions;
Glib::RefPtr<Gtk::ActionGroup> _region_actions;