summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-08-01 23:40:55 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-02-22 15:31:23 -0500
commita13a8da8ac977b247b7c8d8b4f2cfcddfc8996e7 (patch)
tree1634663d824b2249a83d01881924fb3ff5bca2cd /gtk2_ardour/editor.h
parentd0fc12bd22107bf6f14a2c249ed340d40e596f58 (diff)
switch all action registration/binding code over to new API.
This removes the ability to change bindings via menus. Still to come: saving modified bindings, and reworking the key editor
Diffstat (limited to 'gtk2_ardour/editor.h')
-rw-r--r--gtk2_ardour/editor.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk2_ardour/editor.h b/gtk2_ardour/editor.h
index b9521218af..6240663e3b 100644
--- a/gtk2_ardour/editor.h
+++ b/gtk2_ardour/editor.h
@@ -550,6 +550,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
void color_handler ();
bool constructed;
+ Gtkmm2ext::ActionMap myactions;
Gtkmm2ext::Bindings key_bindings;
// to keep track of the playhead position for control_scroll
@@ -1174,7 +1175,6 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
void register_region_actions ();
void load_bindings ();
- Gtkmm2ext::ActionMap editor_action_map;
/* CUT/COPY/PASTE */
@@ -2233,6 +2233,12 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
QuantizeDialog* quantize_dialog;
MainMenuDisabler* _main_menu_disabler;
+ /* private helper functions to help with registering axis */
+
+ 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);
+ void radio_reg_sens (Glib::RefPtr<Gtk::ActionGroup> action_group, Gtk::RadioAction::Group& radio_group, char const * name, char const * label, sigc::slot<void> slot);
+
friend class Drag;
friend class RegionDrag;
friend class RegionMoveDrag;