diff options
author | Robin Gareus <robin@gareus.org> | 2016-02-23 15:42:53 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-02-23 15:42:53 +0100 |
commit | 2532911b18ff8b1c92c053a542fbd1d7eeed31de (patch) | |
tree | b06322b8ff624b41e5be1bc0497178746cba43d7 /gtk2_ardour/editor_actions.cc | |
parent | 341758674b1c6b6e38bfe9e59e04062a70adca86 (diff) |
Editor Actions Scripts & Manager
Diffstat (limited to 'gtk2_ardour/editor_actions.cc')
-rw-r--r-- | gtk2_ardour/editor_actions.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_actions.cc b/gtk2_ardour/editor_actions.cc index 663ed9468b..046d9b94e1 100644 --- a/gtk2_ardour/editor_actions.cc +++ b/gtk2_ardour/editor_actions.cc @@ -147,6 +147,7 @@ Editor::register_actions () myactions.register_action (editor_menu_actions, X_("View"), _("View")); myactions.register_action (editor_menu_actions, X_("ZoomFocus"), _("Zoom Focus")); myactions.register_action (editor_menu_actions, X_("ZoomMenu"), _("Zoom")); + myactions.register_action (editor_menu_actions, X_("ActionScripts"), _("Scripted Actions")); register_region_actions (); @@ -246,6 +247,7 @@ Editor::register_actions () reg_sens (editor_actions, a.c_str(), n.c_str(), sigc::bind (sigc::mem_fun (*this, &Editor::goto_nth_marker), i - 1)); } + reg_sens (editor_actions, "jump-forward-to-mark", _("Jump to Next Mark"), sigc::mem_fun(*this, &Editor::jump_forward_to_mark)); reg_sens (editor_actions, "alternate-jump-forward-to-mark", _("Jump to Next Mark"), sigc::mem_fun(*this, &Editor::jump_forward_to_mark)); reg_sens (editor_actions, "jump-backward-to-mark", _("Jump to Previous Mark"), sigc::mem_fun(*this, &Editor::jump_backward_to_mark)); @@ -473,6 +475,13 @@ Editor::register_actions () myactions.register_action (editor_actions, X_("cycle-zoom-focus"), _("Next Zoom Focus"), sigc::mem_fun (*this, &Editor::cycle_zoom_focus)); + act = reg_sens (editor_actions, "manage-action-scripts", _("Manage"), + sigc::mem_fun(*this, &Editor::manage_action_scripts)); + for (int i = 1; i <= 9; ++i) { + string const a = string_compose (X_("script-action-%1"), i); + string const n = string_compose (_("Unset #%1"), i); + reg_sens (editor_actions, a.c_str(), n.c_str(), sigc::bind (sigc::mem_fun (*this, &Editor::trigger_script), i - 1)); + } Glib::RefPtr<ActionGroup> mouse_mode_actions = myactions.create_action_group (X_("MouseMode")); RadioAction::Group mouse_mode_group; |