1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-09 06:06:24 +01:00
Commit Graph

531 Commits

Author SHA1 Message Date
Steve Daulton
78e16f6e20 include <algorithm> to fix Linux build 2016-06-13 08:38:54 +01:00
Paul Licameli
c101f4acdb Enable yet more docking positions by wrapping the cofiguration 2016-06-12 20:21:09 -04:00
Paul Licameli
de17c1ac3a Toolbar placements can push other bars down as well as right 2016-06-12 20:21:09 -04:00
Paul Licameli
37962dd9a8 Visitors unify layout routines; now any bar can stick at lower left 2016-06-12 20:20:51 -04:00
Paul Licameli
3df50f8184 Define the default toolbar configuration (as a tree) 2016-06-12 19:32:52 -04:00
Paul Licameli
65b3d32894 Tool bar configuration stores a tree structure, not a simple sequence 2016-06-12 19:18:56 -04:00
Paul Licameli
7f920ecd0d Starting to make ToolBarConfiguration::Position more general 2016-06-12 12:41:52 -04:00
Paul Licameli
ffb681e658 Delegate reading and writing of toolbar configuration to new class 2016-06-12 10:55:47 -04:00
Paul Licameli
3c13c6eaa6 ToolDock::OnPaint assumes less about configuration details 2016-06-12 10:29:45 -04:00
Paul Licameli
b46e263afb Abstract ToolBarConfiguration further, with an iterator class 2016-06-12 10:27:54 -04:00
Paul Licameli
dd327cd304 More abstract toolbar positioning types, to be generalized later 2016-06-12 10:27:51 -04:00
Paul Licameli
036c13149b The two toolbar positioning functions are simpler and more similar 2016-06-12 08:25:45 -04:00
Paul Licameli
0e0df1f2ff Edit toolbar tooltips mention shortcut keys 2016-06-12 00:00:04 -04:00
Paul Licameli
c1a22816f8 Tooltip for Transcription play button mentions the shortcut...
... but only for the version without shift or ctrl modifier key.

Should it mention those others too?  It might get too long.
2016-06-12 00:00:04 -04:00
Paul Licameli
1f72f8db18 Tools toolbar buttons mention shortcuts in status messages 2016-06-12 00:00:04 -04:00
Paul Licameli
e844b07a46 All Toolbars define RegenerateTooltips; invoke during project init...
... and UpdatePrefs
2016-06-12 00:00:04 -04:00
Paul Licameli
5f8fad4a48 Transport button tooltips with shortcuts use Mac special chars 2016-06-12 00:00:03 -04:00
Paul Licameli
203ddfd1a1 Center toolbar dock indicator triangles on edge of rectangle 2016-06-11 16:32:24 -04:00
Paul Licameli
64ad732aee Removed some unused members, made some members const 2016-06-11 16:31:38 -04:00
Paul Licameli
82cf9b3ab6 Don't increase width when a toolbar is repeatedly docked and undocked 2016-06-11 16:29:25 -04:00
Paul Licameli
f21ad1ce49 Pinned playhead for recording is once again always center, not right 2016-06-08 18:08:51 -04:00
Paul Licameli
d1fe0a89b5 Scrub play button becomes a stop button when pressed...
... also the corresponding menu command can stop as well as start the scrub
or seek
2016-06-06 02:12:31 -04:00
Paul Licameli
f5c4c85653 New scrubbing toolbar; remove ruler pushbuttons. 2016-06-05 01:03:24 -04:00
Paul Licameli
bbb93a7400 One more alternate play button image, for seeking 2016-06-02 15:55:16 -04:00
Paul Licameli
eafc416d55 Remove double-click and scrolling menu items for scrub/seek...
... Use the toggle button on the ruler instead
2016-06-01 13:30:01 -04:00
Paul Licameli
ff95bf1490 Remove double-click handling for scrolling play/record 2016-06-01 13:25:01 -04:00
Paul Licameli
e39da0c42b New preference for pinned play head, also in Transport menu 2016-06-01 13:25:01 -04:00
Paul Licameli
fecc6f53e4 Consolidate the code that starts and stops play/rec head scrolling 2016-06-01 13:25:01 -04:00
Paul Licameli
fbf09d2130 Make ToolBar button setup functions public and static 2016-06-01 11:50:34 -04:00
Paul Licameli
7d265dc3d4 Oops, revert unready work
Revert "new button images for time ruler"

This reverts commit 26ec0100a2.

Revert "add button"

This reverts commit af5163025a.

Revert "ToolBar::MakeButton is public and static"

This reverts commit 668714942b.
2016-05-29 12:13:24 -04:00
Paul Licameli
668714942b ToolBar::MakeButton is public and static 2016-05-28 22:55:15 -04:00
Paul Licameli
36e5b4fbbc AudioIOStartStreamOptions includes the sample rate 2016-05-22 15:27:35 -04:00
Paul Licameli
de13e27cdd Correction: commit 465b743fd3 fixes bug 1391 2016-05-18 11:11:23 -04:00
Paul Licameli
da8973570b Don't pop record up if you click it twice; also may fix moonphase...
... reported by Peter:  sometimes stop button gets disabled during record
2016-05-18 10:59:38 -04:00
Paul Licameli
e1f4ab6af6 Double-click record with overdub pins record head center not right 2016-05-17 13:21:39 -04:00
Paul Licameli
c66262d790 Double click on Record button pins record head right, not center 2016-05-17 12:25:39 -04:00
Paul Licameli
95ccc417d8 Scrolling display for (append-) record, if you double click 2016-05-17 01:47:52 -04:00
Paul Licameli
737e24e24e Allow pausing and unpausing of scrub. Just treat it differently internally. 2016-05-11 19:59:11 -04:00
Paul Licameli
c9b5f6bc37 Fix some display problems in scrolling play: mitigate scrollbar flashing, and...
... modified click on the transcription toolbar button leaves the button with
the correct appearance.
2016-05-03 23:37:59 -04:00
Paul Licameli
ad2b4c3446 Enable scrolling play by double-click on either play button or QP area of ruler 2016-05-03 22:46:10 -04:00
Paul Licameli
039aaa13a0 Play buttons can detect double clicks (but don't do anything special yet) 2016-05-03 21:28:39 -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
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
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
d34715d6ad Various other drags could crash Mac debug build if you option-W. Fixed too...
... And I think this fix is now exhaustive.
2016-04-25 01:49:54 -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
42bdc274dd Resizing of meter toolbars (docked or undocked) responds to ESC key 2016-04-24 01:01:44 -04:00
Paul Licameli
fad249a603 ESC key can abort the rearranging of toolbars. 2016-04-23 22:10:02 -04:00
Paul Licameli
01001fdea9 New alternative appearance for the transport toolbar play button, for scrubbing 2016-04-19 17:34:38 -04:00