1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-21 06:40:08 +02:00

77 Commits

Author SHA1 Message Date
Paul Licameli
ae14cb0dbc Allow tabbing to the button on the time ruler...
... by making the ruler and the upper tool dock part of one panel
2016-06-25 16:08:38 -04:00
Paul Licameli
b1ca48c23e Scrub bar show/hide button on Scrubbing toolbar 2016-06-15 01:11:42 -04:00
Paul Licameli
f5c4c85653 New scrubbing toolbar; remove ruler pushbuttons. 2016-06-05 01:03:24 -04:00
Paul Licameli
364794fd68 Scrub handle changes appearance for seeking 2016-06-02 16:05:56 -04:00
Paul Licameli
6a3613e8e9 Implement scrub and seek buttons on ruler; redo scrub menu items 2016-06-02 15:55:16 -04:00
Paul Licameli
0dfee2106e fix Windows build 2016-06-01 14:35:20 -04:00
Paul Licameli
d424be9a78 Add pin/unpin button to the time ruler 2016-06-01 13:25:02 -04:00
Paul Licameli
ff95bf1490 Remove double-click handling for scrolling play/record 2016-06-01 13:25:01 -04:00
Paul Licameli
525146268f Remove the code for pushbuttons and keyboard navigation...
... It was too much reinvention of wheels!
2016-06-01 13:08:25 -04:00
Paul Licameli
8d8c7b7f00 Calls to time ruler button creation/update, but it does nothing yet 2016-05-29 12:14:17 -04:00
Paul Licameli
31557defa7 Correct the focusing of buttons as mouse moves. Unify the context menu code. 2016-05-12 15:06:54 -04:00
Paul Licameli
928e96c6cc Fix assertion violations about double capture; while still making sure...
... that if you drag-scrub and ESC, you don't get a leftover white guide line.
2016-05-10 15:35:46 -04:00
Paul Licameli
80e19f2130 Ruler is in the ctrl+f6 cycle instead of reachable by arrows; experimental...
... flag for turning off navigability of the ruler.
2016-05-10 15:16:12 -04:00
Paul Licameli
19ef2f6681 Implement drag-scrub, compatibly with the existing move-scrub...
... Start scrub by click or double click on the scrub head; release button or
not; then move.

If you release before moving, you get scrubbing as before, controlled by
motion.  Click or drag to switch in and out of seeking.  Stop with ESC,
spacebar, etc.  No change of selection.

But now if you drag, then scrubbing contines until you release the mouse or
otherwise stop with a key.

If by release of the mouse, then the selection changes as if by a click at
the last play position.  If you hold shift, then, as if by shift-click.

If drag begins with a double-click, then the play head remains centered and
the track moves.
2016-05-10 09:37:10 -04:00
Paul Licameli
9ad9ea2ec3 Fix the flashing problems on Mac involving the quick play line...
... The main rule seems to be, during the repainting of one window, don't draw
onto any other DC for that or any other window.  Don't refresh any other window.
2016-05-09 17:19:56 -04:00
Paul Licameli
f9dd6b4066 Reimplement the play/record indicator in the ruler as an overlay...
... fixing the lag between the green line and the triangle for scrolling play
2016-05-09 15:58:51 -04:00
Paul Licameli
d8e42b0af4 Reimplement the cursor mark in the ruler as an overlay 2016-05-09 15:28:33 -04:00
Paul Licameli
468026f9b4 AdornedRulerPanel inherits from OverlayPanel, doesn't need to manage the backing 2016-05-09 11:37:32 -04:00
Paul Licameli
5c3548528f Make the Windows menu key work for the ruler 2016-05-06 18:21:15 -04:00
Paul Licameli
c616d433c2 Make key navigation to ruler work on Windows 2016-05-06 18:13:24 -04:00
Paul Licameli
52e7046b76 Keyboard navigability for ruler pushbuttons...
... Using left, right, (shift-)tab, ret, and also the numpad arrows and enter
2016-05-06 16:56:11 -04:00
Paul Licameli
519a2020ff Navigation to and from the ruler using up and down arrow keys...
... This affects those keys (and NUMPAD arrows), also (shift-)ctrl-f6,
ctrl-home, ctrl-end (which are command-left and right on mac)

Those should be tested to ensure correct restoration of the yellow rectangle,
appropriately in the tracks or the ruler.

This should also be tested with and without the Tracks preference for cyclic
movement of the focus.
2016-05-06 16:50:24 -04:00
Paul Licameli
aa4e19e9f9 Split ruler pushbuttons; right click on either part always makes menu 2016-05-05 14:41:08 -04:00
Paul Licameli
67d3bb89cb Define a place to insert a double-click action for the time ruler...
... also split out a function just for starting play.
2016-05-03 20:36:28 -04:00
Paul Licameli
143a5b84bc Triangle always, above numbers, for play position, even if scrubbing; ...
scrub head in scrub bar when that shows, not above the numbers.
2016-05-03 11:05:53 -04:00
Paul Licameli
da4fa1d965 Put the scrub bar below 2016-05-02 15:19:08 -04:00
Paul Licameli
f346d40d79 Menu triangle appears in bushbutton when pointer is near bottom; ...
... and, again, use either mouse button on the push button.
2016-05-02 11:49:26 -04:00
Paul Licameli
cfe3142ffd Highlight around pushbuttons for mouse-over 2016-05-02 11:41:45 -04:00
Paul Licameli
9a8c053e04 Improve the logic for tool tips 2016-05-02 10:51:11 -04:00
Paul Licameli
378634a189 Put the scrub bar enabling item back in the menu, topmost, before a separator 2016-05-02 10:40:08 -04:00
Paul Licameli
cac54a3b57 Right click on a ruler pushbutton pops up the appropriate menu, regardless...
... of the button's enabled state.
2016-05-02 02:01:02 -04:00
Paul Licameli
31eda6641b If mouse moves into ruler pushbuttons, do not show the quick play indicator. 2016-05-02 01:41:33 -04:00
Paul Licameli
8cfa9e217f Improve status bar messages and tooltips for pushbuttons 2016-05-02 01:41:33 -04:00
Paul Licameli
d3c0c94e17 Better choice of font size for time ruler pushbuttons 2016-05-01 17:28:08 -04:00
Paul Licameli
24bb190e21 Various appearance changes for scrubbing: ...
Hyphenate "Quick-Play" in pushbutton
Outline pushbuttons
Different tooltip text for the scrub bar
Right click on pushbuttons as for left click, don't open context menu
2016-05-01 15:09:32 -04:00
Paul Licameli
f014e0400c Event handling for the new pushbuttons, and remove the interim pop-up menu 2016-04-30 22:51:02 -04:00
Paul Licameli
49693fa6b6 Improve the logic for status messages 2016-04-30 22:48:54 -04:00
Paul Licameli
055c33459c Draw the Quick Pay and Scub Bar pushbuttons 2016-04-30 22:48:54 -04:00
Paul Licameli
2a257fc9bf Move a few steps in the construction of TrackPanel and AdornedRulerPanel 2016-04-30 22:48:54 -04:00
Paul Licameli
8a97468e5c Split up big event handling function 2016-04-30 19:08:35 -04:00
Paul Licameli
5a5775c1c1 Implement showing and hiding of a srub bar portion of the ruler...
... activated by clicking near the left end of the ruler, then using the
context menu.

This is not finished work, but a proof of concept for a possible new scrubbing
UI.
2016-04-27 18:39:47 -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
926dfb7253 Draw the play or record head in the ruler in their former sizes. 2016-04-27 12:41:49 -04:00
Paul Licameli
5474ff752d Fix compilation of EXPERIMENTAL_THEMING 2016-04-27 10:49:19 -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
ea0274b5fa Change drawing of quick play indicator. It can be green for scrubbing...
... But this isn't used yet.  Also make the scrub head bigger.
2016-04-25 12:19:47 -04:00
Paul Licameli
0071db6f53 Hide quick play indicator when other playback starts...
... but it can reappear when mouse moves.  You may still select a quick play
region during play, to jump playback.
2016-04-25 12:00:58 -04:00
Paul Licameli
9f65b80647 Reimplement quick play indicator as an overlay like the cursor 2016-04-18 14:31:36 -04:00