(Mixbus profile only) tentatively remove the Zoom and Cut tools, to save space in the toolbar and reduce some highly redundant functions
This commit is contained in:
parent
492c933a69
commit
62cab525f0
|
@ -2807,8 +2807,11 @@ Editor::setup_toolbar ()
|
|||
|
||||
mouse_mode_hbox->pack_start (mouse_move_button, false, false);
|
||||
mouse_mode_hbox->pack_start (mouse_select_button, false, false);
|
||||
mouse_mode_hbox->pack_start (mouse_cut_button, false, false);
|
||||
mouse_mode_hbox->pack_start (mouse_zoom_button, false, false);
|
||||
|
||||
if (!ARDOUR::Profile->get_mixbus()) {
|
||||
mouse_mode_hbox->pack_start (mouse_cut_button, false, false);
|
||||
mouse_mode_hbox->pack_start (mouse_zoom_button, false, false);
|
||||
}
|
||||
|
||||
if (!ARDOUR::Profile->get_trx()) {
|
||||
mouse_mode_hbox->pack_start (mouse_gain_button, false, false);
|
||||
|
|
|
@ -470,12 +470,14 @@ Editor::register_actions ()
|
|||
mouse_gain_button.add_elements (ArdourButton::Inset );
|
||||
mouse_gain_button.set_name ("mouse mode button");
|
||||
|
||||
act = ActionManager::register_radio_action (mouse_mode_actions, mouse_mode_group, "set-mouse-mode-zoom", _("Zoom Tool"), sigc::bind (sigc::mem_fun(*this, &Editor::mouse_mode_toggled), Editing::MouseZoom));
|
||||
mouse_zoom_button.set_related_action (act);
|
||||
mouse_zoom_button.set_image (::get_icon("tool_zoom"));
|
||||
mouse_zoom_button.add_elements (ArdourButton::Inset );
|
||||
mouse_zoom_button.set_name ("mouse mode button");
|
||||
|
||||
if(!Profile->get_mixbus()) {
|
||||
act = ActionManager::register_radio_action (mouse_mode_actions, mouse_mode_group, "set-mouse-mode-zoom", _("Zoom Tool"), sigc::bind (sigc::mem_fun(*this, &Editor::mouse_mode_toggled), Editing::MouseZoom));
|
||||
mouse_zoom_button.set_related_action (act);
|
||||
mouse_zoom_button.set_image (::get_icon("tool_zoom"));
|
||||
mouse_zoom_button.add_elements (ArdourButton::Inset );
|
||||
mouse_zoom_button.set_name ("mouse mode button");
|
||||
}
|
||||
|
||||
act = ActionManager::register_radio_action (mouse_mode_actions, mouse_mode_group, "set-mouse-mode-audition", _("Audition Tool"), sigc::bind (sigc::mem_fun(*this, &Editor::mouse_mode_toggled), Editing::MouseAudition));
|
||||
mouse_audition_button.set_related_action (act);
|
||||
mouse_audition_button.set_image (::get_icon("tool_audition"));
|
||||
|
@ -488,12 +490,14 @@ Editor::register_actions ()
|
|||
mouse_timefx_button.add_elements (ArdourButton::Inset );
|
||||
mouse_timefx_button.set_name ("mouse mode button");
|
||||
|
||||
act = ActionManager::register_radio_action (mouse_mode_actions, mouse_mode_group, "set-mouse-mode-cut", _("Cut Tool"), sigc::bind (sigc::mem_fun(*this, &Editor::mouse_mode_toggled), Editing::MouseCut));
|
||||
mouse_cut_button.set_related_action (act);
|
||||
mouse_cut_button.set_image (::get_icon("tool_cut"));
|
||||
mouse_cut_button.add_elements (ArdourButton::Inset );
|
||||
mouse_cut_button.set_name ("mouse mode button");
|
||||
|
||||
if(!Profile->get_mixbus()) {
|
||||
act = ActionManager::register_radio_action (mouse_mode_actions, mouse_mode_group, "set-mouse-mode-cut", _("Cut Tool"), sigc::bind (sigc::mem_fun(*this, &Editor::mouse_mode_toggled), Editing::MouseCut));
|
||||
mouse_cut_button.set_related_action (act);
|
||||
mouse_cut_button.set_image (::get_icon("tool_cut"));
|
||||
mouse_cut_button.add_elements (ArdourButton::Inset );
|
||||
mouse_cut_button.set_name ("mouse mode button");
|
||||
}
|
||||
|
||||
ActionManager::register_action (editor_actions, "step-mouse-mode", _("Step Mouse Mode"), sigc::bind (sigc::mem_fun(*this, &Editor::step_mouse_mode), true));
|
||||
|
||||
act = ActionManager::register_toggle_action (mouse_mode_actions, "toggle-internal-edit", _("Edit MIDI"), sigc::mem_fun(*this, &Editor::toggle_internal_editing));
|
||||
|
|
|
@ -232,6 +232,11 @@ Editor::set_mouse_mode (MouseMode m, bool force)
|
|||
return;
|
||||
}
|
||||
|
||||
if (ARDOUR::Profile->get_mixbus()) {
|
||||
if ( m == MouseZoom) m = MouseObject;
|
||||
if ( m == MouseCut) m = MouseObject;
|
||||
}
|
||||
|
||||
Glib::RefPtr<Action> act;
|
||||
|
||||
switch (m) {
|
||||
|
@ -286,6 +291,11 @@ Editor::mouse_mode_toggled (MouseMode m)
|
|||
Glib::RefPtr<Action> act;
|
||||
Glib::RefPtr<ToggleAction> tact;
|
||||
|
||||
if (ARDOUR::Profile->get_mixbus()) {
|
||||
if ( m == MouseZoom) m = MouseObject;
|
||||
if ( m == MouseCut) m = MouseObject;
|
||||
}
|
||||
|
||||
switch (m) {
|
||||
case MouseRange:
|
||||
act = ActionManager::get_action (X_("MouseMode"), X_("set-mouse-mode-range"));
|
||||
|
|
Loading…
Reference in New Issue
Block a user