1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-17 22:21:17 +01:00
Commit Graph

232 Commits

Author SHA1 Message Date
James Crook
41ac4cd47a Add Hover-Over-Down State for Button
Previously hovering over a down button made no difference.
Also tweaked the appearance of hover-over thumbs on dark theme sliders.
Also tweaked hover images and colours generally.

Classic retains the old style.
Hi Contrast does not distinguish between hover-up and hover-down.
2017-12-14 14:39:56 +00:00
Paul Licameli
db2074dfc2 Bug1791: Quick-play looped should begin where you pick...
... Was broken at commit 2cbdd1cc43
2017-11-29 11:16:01 -05:00
James Crook
a49f14ad02 doxygen. Class list completed for letter 'A'. 2017-11-09 18:32:29 +00:00
James Crook
e98f08a2de Bug 463 - Incorrect Timeline numbering 2017-08-14 18:12:42 +01:00
Paul Licameli
f4c3f19dd1 Bug1520: Correct TQP when snap-to-nearest second & region selection 2017-07-22 19:44:09 -04:00
Paul Licameli
67282cbb61 SnapManager::Snap returns its results in a struct 2017-07-13 12:11:13 -04:00
Paul Licameli
f8b74db76e Iterators over TrackPanelCell give shared_ptr 2017-06-26 17:14:33 -04:00
Paul Licameli
ffbc4d5f90 Simplify iterations over TrackPanelCells with range-for 2017-06-17 03:01:40 -04:00
James Crook
545dbaf1cd Bug 68 - Vertical scale only has zeros when displaying Waveform (dB) view at -48 dB 2017-05-29 22:40:49 +01:00
James Crook
349b66bbdd Bug 1584 - Pinned / Unpinned tool tip inconsistency 2017-05-15 10:18:05 +01:00
James Crook
78135d25fd Use blue for negative Numbers
The time ruler previously used blue for negative numbers, when scrolling left of zero was enabled.  This was broken by adding the dark-theme code.  Fixed now, and with a new configurable colour for it which defaults to blue if non provided.
2017-05-03 16:11:05 +01:00
James Crook
0b942d04b7 Move scrub ruler line down 1px
..and update the comment.
2017-04-30 18:09:19 +01:00
James Crook
5e28e3fe6d Line to mark off scrub ruler.
Provides a clear boundary between scrub ruler and quick select ruler, even if the theme colours have been warped to be very similar.
Thanks to Gale for spotting this problem on Mac.
2017-04-30 17:22:20 +01:00
Steve Daulton
516570074b Add preference option for Stem Plot
Tracks 'behaviors' preferences split to sub-page to avoid over-long
page for Tracks preferences.
2017-04-27 15:16:05 +01:00
James Crook
7e2a7aad89 Correct default colour for rulers. 2017-04-27 08:13:33 +01:00
James Crook
2a043c0b35 Add settable ruler colouring. 2017-04-26 22:32:09 +01:00
James Crook
fefc856901 Update slider in tracks on theme change. 2017-04-05 20:16:12 +01:00
James Crook
028ed19d90 Sync with DarkAudacity 2017-04-02 23:07:13 +01:00
Paul Licameli
2cbdd1cc43 Exception safety in: ControlToolBar & Ruler functions...
... because SetupCutPreviewTracks has a small chance of throwing for want
of disk space.

StopStream however is considered nonthrowing.
2017-03-21 14:11:23 -04:00
Paul Licameli
1126925438 Remove naked malloc (or similar) and free in: various 2017-03-17 17:52:54 -04:00
Paul Licameli
0113e6f44f Remove naked new[] in: ondemand, toolbars, widgets 2017-03-17 17:52:45 -04:00
Paul Licameli
d831318132 simplify SpectrogramSettings::GetScale; abstract frequency-to-bin...
... this is a preparation for the constant-q feature, if we want it.
2017-03-17 17:52:27 -04:00
Paul Licameli
5036583549 Fewer inclusions of AudacityApp.h 2017-03-17 17:52:24 -04:00
Darrell Walisser
d1b49952e9 Two Initialisations (Valgrind) 2017-03-01 22:39:27 +00:00
Steve Daulton
e239efe486 Fix bug 1531 2016-10-23 22:10:38 +01:00
Paul Licameli
f993f1eadf Regularize casts as (int), so they are easier to find and review 2016-09-20 08:42:11 -04:00
Paul Licameli
236a271ef5 Avoid dangling else warning 2016-09-18 10:36:55 -04:00
Paul Licameli
d783762737 Remove unnecessary std::move in return statements...
... and comment where it is necessary.
2016-09-15 07:39:46 -04:00
James Crook
65c7e8051a ThomasFeher - Unused parameters clean up. 2016-09-11 20:31:49 +01:00
James Crook
315679dad5 Bug 1508 - Scrubbing: Release mouse to exit Scrub Mode started by click & drag in Scrub Ruler 'no longer working'
It WAS working, just not the way QA wanted, because releasing mouse click when in the ruler and on the first seek continued the seek/scrub cycle.  Introduced a 'mInOneShotMode' variable to complete the baroque behaviour in the way that was requested.  Also updated tool tip code to reflect the one-shot and non one-shot difference in tooltip and status.
2016-09-08 19:02:55 +01:00
James Crook
555767f2ad Bug 1487 - (Residual) Scrub and Seek are enabled when there is no audio to operate
Fixed QP Region created when no audio, and dragging in Scrub Ruler.
2016-08-22 15:23:15 +01:00
James Crook
f9d269bcee Change ScrubBar to ScrubRuler
This also makes it clearer in the code when we are dealing with a Toolbar ID (for the scrubbing toolbar) and when we are dealing with a button ID (for enabling/disabling the scrub ruler).
2016-08-22 12:25:36 +01:00
James Crook
6383df2ff6 Bug 1414 - (Residual) Green triangles in scrub bar sometimes appear and sometimes don't
The residual bug was that the PlayHead triangle could appear when in the scrub ruler.  This was an 'off by 2' error in using the size of that region.
2016-08-21 17:02:17 +01:00
James Crook
59988357fb Change default state of scrub bar. Make Togglable via QP.
1) Enable scrub bar by default, to increase visibility of the new feature.
2) Add 'Enable/Disable Scrub Bar' to QP right click menu.

Did not remove Scrubbing from transport menu, as to do so disables scrubbing.
2016-08-20 16:02:06 +01:00
James Crook
28f078dcf7 Bug 1486 - Show/Hide scrub-bar does not persist. 2016-08-20 14:59:36 +01:00
James Crook
8a8b43d956 Bug 1419 - Restore "scrub indicator shows before we click in scrub ruler".
Restored Paul's original intention, which I inadvertently changed in my fix for Bug 1419.  Moving into the scrub ruler shows the scrub indicator now even before we actually start scrubbing (or seeking).  The tooltip is now seen as belonging to the scrub indicator rather than to the ruler.  Additionally I show the indicator immediately on entry, rather than requiring a movement left or right first, which I think is better and I think the original version didn't.
2016-08-14 15:26:07 +01:00
James Crook
2d2cf5911f Pinned/Unpinned button now affects PlayHead.
Bug 1451 comment 6 asks for PlayHead to change too with the change in the button icon on up/down, making the action of the button clearer.
This change does not though change the icon on the button to red when recording.  It stays green, though the PlayHead does change correctly.
2016-08-12 17:32:30 +01:00
James Crook
35c033d3fa Bug 1451 - On Mac the background of the Pinned/Unpinned button is not the same color as the Timeline
Per comments in the bug, fixed by making the pinned/unpinned button more clearly a button.

This involved adding a new type of grabber that does not have the ribs for dragging it and acts as a spacer.
Also fixing grabber so that it does not have to be at position (0,0)
Also making the ruler 1 pixel higher.
Also changing the pin button to be a toggle button that changes from up to down on a click.
Also fixing AButton so that an image can be bigger than the button.
2016-08-11 21:54:45 +01:00
James Crook
eebe4a961e Bug 1419 - Confusing and unnecessary widget change when clicking in Scrub Bar
Behaviour now is still (in my view) confusing, but the widget does update when you click and release and haven't moved yet, which it didn't do before.
2016-08-11 17:59:41 +01:00
James Crook
a90f32e60d Bug 1456 - Scrub Bar tooltip is incorrect on mouse down because there is no separate tooltip for that state 2016-08-10 22:21:21 +01:00
James Crook
8dd93ef2a8 Bug 1467 - New pref for pinned head should move to the Prefs>Tracks
Also updated the wording as per comment #2 in Bug 1467.
2016-08-10 18:38:37 +01:00
Paul Licameli
a52f7f8410 new -> NEW in comments, so text search for naked new excludes them 2016-08-08 10:07:37 -04:00
Paul Licameli
71efb13161 Remove some naked new amd delete in: widgets 2016-08-08 07:51:26 -04:00
Gale Andrews
5d15eba6c9 Bug 1420 Tooltip consistency fixes.
Not sufficient to close the bug.
2016-07-23 18:06:45 +01:00
James Crook
d092fe0e4b Review and fix CaptureMouse (per Bug 1204 commit comment)
This is using the same idiom of only capturing if not capturing already.  These cases in AutoDuck, Resizing, Grabber and TQP might have been latent ASSERTs.  This based on precedent rather than actual elicited buggy behaviour.
2016-07-17 09:38:23 +01:00
James Crook
53843c72a2 Use Steve's Pinned/Unpinned button images.
I've also added in the red versions (for recording) into the built in theme.
2016-07-15 17:17:09 +01:00
James Crook
308ccb9eab Bug 1420 - Tooltip for Scrub Bar is inaccurate/misleading 2016-07-15 11:14:41 +01:00
Paul Licameli
d91f825424 Restore correct resizing of the time ruler for the scrub bar button
This was broken at ae14cb0dbc
2016-07-12 15:26:40 -04:00
windinthew
e97568db1b More access key fixes. Better Pinned tooltip. 2016-07-12 15:05:48 +01:00
Paul Licameli
4375010983 Once again permit TAB navigation to pinned head button on Mac...
... But still don't let the ruler accept focus from a click on any platform
2016-07-06 15:54:19 -04:00