mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
Add option to disable autoscroll of editor (#4721).
git-svn-id: svn://localhost/ardour2/branches/3.0@12744 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
0c714fe3de
commit
2e71cb2e26
3 changed files with 13 additions and 0 deletions
|
|
@ -501,6 +501,10 @@ Editor::autoscroll_fudge_threshold () const
|
||||||
void
|
void
|
||||||
Editor::maybe_autoscroll (bool allow_horiz, bool allow_vert, bool moving_left, bool moving_up)
|
Editor::maybe_autoscroll (bool allow_horiz, bool allow_vert, bool moving_left, bool moving_up)
|
||||||
{
|
{
|
||||||
|
if (!Config->get_autoscroll_editor ()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
bool startit = false;
|
bool startit = false;
|
||||||
|
|
||||||
/* Work out the distance between the right hand edge of the trackview and the edge of
|
/* Work out the distance between the right hand edge of the trackview and the edge of
|
||||||
|
|
|
||||||
|
|
@ -1150,6 +1150,14 @@ RCOptionEditor::RCOptionEditor ()
|
||||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_name_new_markers)
|
sigc::mem_fun (*_rc_config, &RCConfiguration::set_name_new_markers)
|
||||||
));
|
));
|
||||||
|
|
||||||
|
add_option (_("Editor"),
|
||||||
|
new BoolOption (
|
||||||
|
"autoscroll-editor",
|
||||||
|
_("Auto-scroll editor window when dragging near its edges"),
|
||||||
|
sigc::mem_fun (*_rc_config, &RCConfiguration::get_autoscroll_editor),
|
||||||
|
sigc::mem_fun (*_rc_config, &RCConfiguration::set_autoscroll_editor)
|
||||||
|
));
|
||||||
|
|
||||||
/* AUDIO */
|
/* AUDIO */
|
||||||
|
|
||||||
add_option (_("Audio"), new OptionEditorHeading (_("Buffering")));
|
add_option (_("Audio"), new OptionEditorHeading (_("Buffering")));
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,7 @@ CONFIG_VARIABLE (std::string, keyboard_layout_name, "keyboard-layout-name", "ans
|
||||||
CONFIG_VARIABLE (bool, automation_follows_regions, "automation-follows-regions", true)
|
CONFIG_VARIABLE (bool, automation_follows_regions, "automation-follows-regions", true)
|
||||||
CONFIG_VARIABLE (bool, region_boundaries_from_selected_tracks, "region-boundaries-from-selected-tracks", true)
|
CONFIG_VARIABLE (bool, region_boundaries_from_selected_tracks, "region-boundaries-from-selected-tracks", true)
|
||||||
CONFIG_VARIABLE (bool, region_boundaries_from_onscreen_tracks, "region-boundaries-from-onscreen_tracks", true)
|
CONFIG_VARIABLE (bool, region_boundaries_from_onscreen_tracks, "region-boundaries-from-onscreen_tracks", true)
|
||||||
|
CONFIG_VARIABLE (bool, autoscroll_editor, "autoscroll-editor", true)
|
||||||
|
|
||||||
/* monitoring, mute, solo etc */
|
/* monitoring, mute, solo etc */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue