mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
MCP: F1-7 jump to a given view; F8 closes any currently open dialog; in zoom mode, up/down alter vertical track height of all tracks; option-up/down alters selected track heights
git-svn-id: svn://localhost/ardour2/branches/3.0@11858 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
0431309f89
commit
bef3ea1adc
11 changed files with 309 additions and 190 deletions
|
|
@ -714,6 +714,13 @@ Editor::Editor ()
|
|||
ControlProtocol::ScrollTimeline.connect (*this, invalidator (*this), ui_bind (&Editor::control_scroll, this, _1), gui_context());
|
||||
ControlProtocol::SelectByRID.connect (*this, invalidator (*this), ui_bind (&Editor::control_select, this, _1), gui_context());
|
||||
ControlProtocol::UnselectTrack.connect (*this, invalidator (*this), ui_bind (&Editor::control_unselect, this), gui_context());
|
||||
ControlProtocol::GotoView.connect (*this, invalidator (*this), ui_bind (&Editor::control_view, this, _1), gui_context());
|
||||
ControlProtocol::CloseDialog.connect (*this, invalidator (*this), Keyboard::close_current_dialog, gui_context());
|
||||
ControlProtocol::VerticalZoomInAll.connect (*this, invalidator (*this), ui_bind (&Editor::control_vertical_zoom_in_all, this), gui_context());
|
||||
ControlProtocol::VerticalZoomOutAll.connect (*this, invalidator (*this), ui_bind (&Editor::control_vertical_zoom_out_all, this), gui_context());
|
||||
ControlProtocol::VerticalZoomInSelected.connect (*this, invalidator (*this), ui_bind (&Editor::control_vertical_zoom_in_selected, this), gui_context());
|
||||
ControlProtocol::VerticalZoomOutSelected.connect (*this, invalidator (*this), ui_bind (&Editor::control_vertical_zoom_out_selected, this), gui_context());
|
||||
|
||||
BasicUI::AccessAction.connect (*this, invalidator (*this), ui_bind (&Editor::access_action, this, _1, _2), gui_context());
|
||||
|
||||
/* problematic: has to return a value and thus cannot be x-thread */
|
||||
|
|
@ -922,6 +929,36 @@ Editor::zoom_adjustment_changed ()
|
|||
temporal_zoom (fpu);
|
||||
}
|
||||
|
||||
void
|
||||
Editor::control_vertical_zoom_in_all ()
|
||||
{
|
||||
tav_zoom_smooth (false, true);
|
||||
}
|
||||
|
||||
void
|
||||
Editor::control_vertical_zoom_out_all ()
|
||||
{
|
||||
tav_zoom_smooth (true, true);
|
||||
}
|
||||
|
||||
void
|
||||
Editor::control_vertical_zoom_in_selected ()
|
||||
{
|
||||
tav_zoom_smooth (false, false);
|
||||
}
|
||||
|
||||
void
|
||||
Editor::control_vertical_zoom_out_selected ()
|
||||
{
|
||||
tav_zoom_smooth (true, false);
|
||||
}
|
||||
|
||||
void
|
||||
Editor::control_view (uint32_t view)
|
||||
{
|
||||
goto_visual_state (view);
|
||||
}
|
||||
|
||||
void
|
||||
Editor::control_unselect ()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue