move 10 more actions from Editor/* to Common/*
This commit is contained in:
parent
c8892f411a
commit
80ee2f2c4d
|
@ -49,6 +49,7 @@
|
|||
#include "monitor_section.h"
|
||||
#include "engine_dialog.h"
|
||||
#include "editor.h"
|
||||
#include "editing.h"
|
||||
#include "actions.h"
|
||||
#include "meterbridge.h"
|
||||
#include "luawindow.h"
|
||||
|
@ -323,6 +324,27 @@ ARDOUR_UI::install_actions ()
|
|||
act = global_actions.register_action (common_actions, "playhead-backward-to-grid", _("Playhead to Previous Grid"), sigc::mem_fun(editor, &PublicEditor::playhead_backward_to_grid));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
|
||||
act = global_actions.register_action (common_actions, "start-range-from-playhead", _("Start Range from Playhead"), sigc::bind (sigc::mem_fun(editor, &PublicEditor::keyboard_selection_begin), Editing::EDIT_IGNORE_MOUSE ));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = global_actions.register_action (common_actions, "finish-range-from-playhead", _("Finish Range from Playhead"), sigc::bind (sigc::mem_fun(editor, &PublicEditor::keyboard_selection_finish), false, Editing::EDIT_IGNORE_MOUSE ));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = global_actions.register_action (common_actions, "start-range", _("Start Range"), sigc::bind (sigc::mem_fun(editor, &PublicEditor::keyboard_selection_begin), Editing::EDIT_IGNORE_NONE));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = global_actions.register_action (common_actions, "finish-range", _("Finish Range"), sigc::bind (sigc::mem_fun(editor, &PublicEditor::keyboard_selection_finish), false, Editing::EDIT_IGNORE_NONE));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = global_actions.register_action (common_actions, "start-punch-range", _("Start Punch Range"), sigc::mem_fun(editor, &PublicEditor::set_punch_start_from_edit_point));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = global_actions.register_action (common_actions, "finish-punch-range", _("Finish Punch Range"), sigc::mem_fun(editor, &PublicEditor::set_punch_end_from_edit_point));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = global_actions.register_action (common_actions, "start-loop-range", _("Start Loop Range"), sigc::mem_fun(editor, &PublicEditor::set_loop_start_from_edit_point));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = global_actions.register_action (common_actions, "finish-loop-range", _("Finish Loop Range"), sigc::mem_fun(editor, &PublicEditor::set_loop_end_from_edit_point));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = global_actions.register_action (common_actions, "alt-start-range", _("Start Range"), sigc::bind (sigc::mem_fun(editor, &PublicEditor::keyboard_selection_begin), Editing::EDIT_IGNORE_NONE));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = global_actions.register_action (common_actions, "alt-finish-range", _("Finish Range"), sigc::bind (sigc::mem_fun(editor, &PublicEditor::keyboard_selection_finish), false, Editing::EDIT_IGNORE_NONE));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
|
||||
/* These "change" actions are not intended to be used inside menus, but
|
||||
are for the tab/window control buttons, which have somewhat odd
|
||||
semantics.
|
||||
|
|
|
@ -367,21 +367,6 @@ Editor::register_actions ()
|
|||
|
||||
reg_sens (editor_actions, "crop", _("Crop"), sigc::mem_fun(*this, &Editor::crop_region_to_selection));
|
||||
|
||||
reg_sens (editor_actions, "start-range-from-playhead", _("Start Range from Playhead"), sigc::bind (sigc::mem_fun(*this, &Editor::keyboard_selection_begin), EDIT_IGNORE_MOUSE ));
|
||||
reg_sens (editor_actions, "finish-range-from-playhead", _("Finish Range from Playhead"), sigc::bind (sigc::mem_fun(*this, &Editor::keyboard_selection_finish), false, EDIT_IGNORE_MOUSE ));
|
||||
|
||||
reg_sens (editor_actions, "start-range", _("Start Range"), sigc::bind (sigc::mem_fun(*this, &Editor::keyboard_selection_begin), EDIT_IGNORE_NONE));
|
||||
reg_sens (editor_actions, "finish-range", _("Finish Range"), sigc::bind (sigc::mem_fun(*this, &Editor::keyboard_selection_finish), false, EDIT_IGNORE_NONE));
|
||||
|
||||
reg_sens (editor_actions, "start-punch-range", _("Start Punch Range"), sigc::mem_fun(*this, &Editor::set_punch_start_from_edit_point));
|
||||
reg_sens (editor_actions, "finish-punch-range", _("Finish Punch Range"), sigc::mem_fun(*this, &Editor::set_punch_end_from_edit_point));
|
||||
|
||||
reg_sens (editor_actions, "start-loop-range", _("Start Loop Range"), sigc::mem_fun(*this, &Editor::set_loop_start_from_edit_point));
|
||||
reg_sens (editor_actions, "finish-loop-range", _("Finish Loop Range"), sigc::mem_fun(*this, &Editor::set_loop_end_from_edit_point));
|
||||
|
||||
reg_sens (editor_actions, "alt-start-range", _("Start Range"), sigc::bind (sigc::mem_fun(*this, &Editor::keyboard_selection_begin), EDIT_IGNORE_NONE));
|
||||
reg_sens (editor_actions, "alt-finish-range", _("Finish Range"), sigc::bind (sigc::mem_fun(*this, &Editor::keyboard_selection_finish), false, EDIT_IGNORE_NONE));
|
||||
|
||||
// reg_sens (editor_actions, "finish-add-range", _("Finish Add Range"), sigc::bind (sigc::mem_fun(*this, &Editor::keyboard_selection_finish), true));
|
||||
|
||||
reg_sens (
|
||||
|
|
|
@ -236,6 +236,14 @@ class PublicEditor : public Gtkmm2ext::Tabbable {
|
|||
virtual void playhead_forward_to_grid () = 0;
|
||||
virtual void playhead_backward_to_grid () = 0;
|
||||
|
||||
virtual void keyboard_selection_begin ( Editing::EditIgnoreOption = Editing::EDIT_IGNORE_NONE) = 0;
|
||||
virtual void keyboard_selection_finish (bool add, Editing::EditIgnoreOption = Editing::EDIT_IGNORE_NONE) = 0;
|
||||
|
||||
virtual void set_punch_start_from_edit_point () = 0;
|
||||
virtual void set_punch_end_from_edit_point () = 0;
|
||||
virtual void set_loop_start_from_edit_point () = 0;
|
||||
virtual void set_loop_end_from_edit_point () = 0;
|
||||
|
||||
virtual Editing::MouseMode effective_mouse_mode () const = 0;
|
||||
|
||||
/** Import existing media */
|
||||
|
|
Loading…
Reference in New Issue