mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-26 08:05:45 +01:00
Add user interface for scrubbing and Experimental.h switches
EXPERIMENTAL_SCRUBBING_BASIC enables middle-click-drag to scrub, or to seek when shift is down. EXPERIMENTAL_SCRUBBING_SMOOTH_SCROLL adds middle-double-click-drag to scrub or (with SHIFT down) to seek while keeping the playhead at the midline of the track display. EXPERIMENTAL_SCRUBBING_SCROLL_WHEEL allows control wheel to vary the speed limit, while scrubbing (not seeking). All three are enabled in this commit. Also notice the changes to status bar messages and the Mouse Preferences dialog. Scrubbing works only in Select and Multi tools.
This commit is contained in:
@@ -105,6 +105,14 @@ void MousePrefs::CreateList()
|
||||
AddItem(_("Shift-Left-Click"), _("Select"), _("Extend Selection Range"));
|
||||
AddItem(_("Left-Double-Click"), _("Select"), _("Select Clip or Entire Track"));
|
||||
AddItem(_("Ctrl-Left-Click"), _("Select"), _("Set Selection Point and Play"));
|
||||
#ifdef EXPERIMENTAL_SCRUBBING_BASIC
|
||||
AddItem(_("Middle-Drag"), _("Select"), _("Scrub"));
|
||||
AddItem(_("Shift-Middle-Drag"), _("Select"), _("Seek"));
|
||||
#endif
|
||||
#ifdef EXPERIMENTAL_SCRUBBING_SMOOTH_SCROLL
|
||||
AddItem(_("Middle-Double-Click-Drag"), _("Select"), _("Smooth Scrolling Scrub"));
|
||||
AddItem(_("Wheel-Rotate"), _("Select"), _("Change maximum scrub speed"));
|
||||
#endif
|
||||
|
||||
#ifdef EXPERIMENTAL_SPECTRAL_EDITING
|
||||
// JKC: Prompt is disabled for now. It's a toggle rather than a drag modifier.
|
||||
@@ -136,6 +144,14 @@ void MousePrefs::CreateList()
|
||||
|
||||
AddItem(_("Left-Click"), _("Multi"), _("Set Selection Point"), _("same as select tool"));
|
||||
AddItem(_("Left-Drag"), _("Multi"), _("Set Selection Range"), _("same as select tool"));
|
||||
#ifdef EXPERIMENTAL_SCRUBBING_BASIC
|
||||
AddItem(_("Middle-Drag"), _("Select"), _("Scrub"), _("same as select tool"));
|
||||
AddItem(_("Shift-Middle-Drag"), _("Select"), _("Seek"), _("same as select tool"));
|
||||
#endif
|
||||
#ifdef EXPERIMENTAL_SCRUBBING_SMOOTH_SCROLL
|
||||
AddItem(_("Middle-Double-Click-Drag"), _("Select"), _("Smooth Scrolling Scrub"), _("same as select tool"));
|
||||
AddItem(_("Wheel-Rotate"), _("Select"), _("Change maximum scrub speed"), _("same as select tool"));
|
||||
#endif
|
||||
AddItem(_("Right-Click"), _("Multi"), _("Zoom out one step"), _("same as zoom tool"));
|
||||
AddItem(_("Right-Drag"), _("Multi"), _("Zoom in on a Range"), _("same as zoom tool"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user