1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-14 07:20:35 +02:00

381 Commits

Author SHA1 Message Date
Paul Licameli
f48694ef47 Move the code that scrolls during scrub out of Scrubbing.cpp 2016-05-03 22:43:19 -04:00
Paul Licameli
b8e3d7bb5e Fix build 2016-05-03 10:30:48 -04:00
Paul Licameli
2704c85fd1 When starting a scrub, limit the x coordinate to track control area...
... This fixes a display bug if you use a shortcut key for the Scrub command
while the mouse is left or right of the wave area.  You should not get the
green line right at the pointer!
2016-05-02 10:10:40 -04:00
Paul Licameli
042d6801df Context menu for scrub head shows checkmarks, and is available during scrub 2016-04-27 20:56:38 -04:00
Paul Licameli
1509ff0621 Conditional compilation flag can disabled the checkmarks in scrub sub menu 2016-04-27 20:36:32 -04:00
Paul Licameli
cc9b880852 Conditional compilation flag can disabled the checkmarks in scrub sub menu 2016-04-27 20:35:32 -04:00
Paul Licameli
68eda0f802 Cursor line in the ruler should always follow that in TrackPanel, as after "j" 2016-04-27 17:48:55 -04:00
Paul Licameli
5086260a60 fix build 2016-04-27 17:45:53 -04:00
Paul Licameli
6a1d387093 Fix assertions and crashes in context menu for scrubber 2016-04-26 15:37:55 -04:00
Paul Licameli
9ab0e42f29 Control scrub with motion, click, drag, wheel almost anywhere in main window...
... if the event is not handled and skipped by sub-windows first, such as for
toolbar button clicks.

(But track panel clicks are skipped even after doing something, so they may
also cause seeking besides other responses.  So click can seek AND set cursor.)

This is meant to make drag to seek and wheel for change of speed easier,
without needing to keep the mouse in the narrow time ruler.

Also lets you click in the ruler, then move in any direction, and not miss the
motion event that should start the scrub playback.

The event handling is a bit of a hack, using propagation.  It does not use
capture.
2016-04-26 12:12:06 -04:00
Paul Licameli
3d222bcd87 Context menu for scrubbing in the ruler 2016-04-26 12:12:06 -04:00
Paul Licameli
cd57e0a26c Scrubbing phase 2. Scrub starts with click on the indicator in the ruler...
... and works in any of the six tools.

Click and drag in select tool during scrub works just as when not scrubbing.

Seeks now only if you left-click or drag in the ruler, but this may change.

Mouse motion anywhere on the screen controls scrub as before.

No mouse clicks in TrackPanel are used by scrubbing.

The Ctrl-Click in TrackPanel is now unused.  Should 2.1.0 behavior be restored?
That was click to quick play, redundant with click in the (lower part of) the
ruler.
2016-04-26 12:12:06 -04:00
Paul Licameli
b0d2f38786 ESC leaves scrubbing even when clicked only; disable scrub menu items when...
... another project is playing
2016-04-26 09:02:38 -04:00
Paul Licameli
6d2528ae10 Update the status bar message as left button switches in an out of seeking. 2016-04-25 16:04:24 -04:00
Paul Licameli
a57ef7a560 When changing the scrub mode via menu command or shortcut, update status bar 2016-04-25 15:43:26 -04:00
Gale Andrews
aab32215ca Best not to use "g" for access keys
because the tail of the "g" obscures the underline
2016-04-25 17:24:37 +01:00
Paul Licameli
e988646bdb Supply missing #include 2016-04-24 21:36:00 -04:00
Paul Licameli
853dff4106 Oops, fix crash in the previous. 2016-04-24 19:08:40 -04:00
Paul Licameli
6147705199 Vary status string (leftmost in the status bar) for the four kinds of scrub. 2016-04-24 16:13:07 -04:00
Paul Licameli
1fe0bbf7dc Uncheck scrubbing menu items whenever scrub stops (ESC key, Stop button, other) 2016-04-24 11:59:01 -04:00
Paul Licameli
4fba13bd2a Improved behavior of scrubbing menu items: Checkmarks, and toggling behavior. 2016-04-23 15:07:45 -04:00
Paul Licameli
71dadc9b79 Bug1052 again: Push play button and change its image as soon as scrub click. 2016-04-21 13:15:59 -04:00
Paul Licameli
26771b6db9 Add transport menu items for scrubbing and seeking...
... This includes new always-seeking modes unlike scrubbing which can switch
to seeking and back according to the left mouse button state.

The reason for this is that visually impaired users should not be required to
click with the mouse in the track panel window to signal seeking.  But mouse
movements can still control scrubbing, because we poll the global mouse
position in the timer, not relying on events from any window object.
2016-04-21 12:13:39 -04:00
Paul Licameli
01001fdea9 New alternative appearance for the transport toolbar play button, for scrubbing 2016-04-19 17:34:38 -04:00
Paul Licameli
b7d211dfec fix build 2016-04-18 23:10:35 -04:00
Paul Licameli
ce95bce85a Bug991: Pause button and command should be disabled during scrubbing...
... and they will be as soon as ctrl-mouse down.
2016-04-18 21:49:27 -04:00
Paul Licameli
0514ed432a Bug1052: Appearance should change immediately after ctrl-(double-)click...
... for scrubbing.

Now the green play indicator appears, though the play button on the control
toolbar does not go down until the mouse moves.
2016-04-18 20:28:33 -04:00
Paul Licameli
4fc4f529a0 Bug1053: Meaningful status bar messages for scrubbing 2016-04-18 19:28:56 -04:00
Paul Licameli
d5915491b3 Bug1342: Loop-play (and other things) before scrub (and other things)...
... should not disable auto-scrolling of the window during playback.
2016-04-18 17:50:17 -04:00
Paul Licameli
8b7ae748a3 Scrub speed as overlay; scrub event handling details out of TrackPanel.cpp 2016-04-18 14:31:36 -04:00
Paul Licameli
1722ee9e32 Define TrackPanelOverlay, use it to reimplement play indicator and cursor...
... but scrub speed display is disabled
2016-04-18 14:31:36 -04:00