1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-30 15:39:27 +02:00

621 Commits

Author SHA1 Message Date
James Crook
c9183769d2 Repaint resizer section of toolbar, if required, after an UpdatePrefs. 2017-04-27 21:40:15 +01:00
James Crook
7661d179ba Send size event after repopulating MeterToolbar buttons.
If we don't do this, it does not regain its former size, if it is floating.
2017-04-27 09:51:34 +01:00
James Crook
6bcbe417e9 Make SelectionBar end/length radio buttons behave normally
They had lost the focus/voice-over functionality because I added code to draw them in the
theme colour.  Now I disable that code, IF recolouring is both set and active.  This will happen
for example, if Hi-Contrast is used with the Hi-Contrast system theme.
2017-04-26 15:58:50 +01:00
James Crook
2cc39d791f Option so (theme) developers can work with Mac buttons on PC (and vice versa) 2017-04-25 17:24:50 +01:00
James Crook
621f01abb0 Draw diagonal grabber and background in themed colours. 2017-04-24 22:35:41 +01:00
James Crook
24c2c6e070 Bug 1633 - Spectral Selection Toolbar incorrect above 100 kHz 2017-04-16 22:15:48 +01:00
James Crook
6e440056f9 Cleaner code to pop non toggle buttons up. 2017-04-09 19:07:28 +01:00
James Crook
b3d6186cf9 Bug 1629 - Edit Toolbar buttons work once only. 2017-04-08 22:26:06 +01:00
windinthew
05662ac607 Wiki Wording issue: capitalise 'Speed' 2017-04-08 19:22:14 +01:00
James Crook
ae95bc6cce Remove Sync-Lock Button
Feature is still available from Tracks menus.
2017-04-07 21:34:33 +01:00
James Crook
419b790235 Make monitoring work after a theme change 2017-04-05 17:29:24 +01:00
James Crook
c17a7f535e Improve repainting after a theme change.
Now most things repaint properly after a theme change.  The sliders on the tracks don't yet.
2017-04-04 14:43:47 +01:00
James Crook
028ed19d90 Sync with DarkAudacity 2017-04-02 23:07:13 +01:00
Paul Licameli
e1473dfe76 void return, not boolean success, from some Track virtual functions...
... The return codes were mostly ignored anyway, and exceptions will be thrown
instead.

It seems there was also confusion whether the return values of Track::Paste
and Track::SyncLockAdjust were to indicate success or indicate whether there
was any change.  No matter now.
2017-03-31 18:26:52 -04:00
Paul Licameli
f1bec85675 use AudioTrack 2017-03-29 13:27:22 -04:00
James Crook
1dce83006f Record on same track is now the default.
Record new track is now accessed by SHIFT+R and is so named in the menu and tool tip.
2017-03-22 16:42:40 +00: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
40aa70a255 Exception safety for Edit toolbar button presses 2017-03-21 14:11:21 -04:00
Paul Licameli
0113e6f44f Remove naked new[] in: ondemand, toolbars, widgets 2017-03-17 17:52:45 -04:00
Paul Licameli
aee45d9cce Fix bogus error dialog when append-recording with no waves...
But with at least one track of other type, such as Time
2017-03-17 17:52:37 -04:00
Paul Licameli
5036583549 Fewer inclusions of AudacityApp.h 2017-03-17 17:52:24 -04:00
Paul Licameli
81285ee0c1 More const and override 2017-03-17 17:52:20 -04:00
Paul Licameli
1e8f0e5a59 EXPERIMENTAL_VOICE_DETECTION: compile, use const, more careful casts 2017-03-17 17:52:17 -04:00
Darrell Walisser
d1b49952e9 Two Initialisations (Valgrind) 2017-03-01 22:39:27 +00:00
Steve Daulton
3a9983795f Bug 1547
Fix some 'on pause' inconsistencies.
2016-11-14 10:32:55 +00:00
Steve Daulton
0364f8e894 Additional fix for bug 1536
Check project exists before call to Command Manager
2016-11-02 18:16:35 +00:00
Steve Daulton
d39dbc4162 Fix bug 1536
The Edit buttons now enable/disable whenever their Menu counterparts
are enabled/disabled, but there are residual issues due to incorrect
behavior in "Select all if none selected" (noted in comments).
2016-10-27 16:12:31 +01:00
James Crook
74887abb70 Device ToolBar back to customary place (by default) 2016-09-30 09:13:30 +01:00
Paul Licameli
53936ac970 Fix some warnings for unused variables and labels...
... But not in cases where a return status is ignored.
2016-09-19 11:47:47 -04:00
Paul Licameli
0eb2f85bfb Use DBL_MAX, not arbitrary 1000000000.0, as "infinite" time interval 2016-09-19 10:38:42 -04:00
Paul Licameli
981020a8fc Avoid unused parameter warnings 2016-09-18 10:36:55 -04:00
Paul Licameli
5d5edecca5 Remove unnecessary semicolons 2016-09-18 10:36:53 -04:00
Paul Licameli
78be459fa1 Convert sampleCount <-> floating or -> long long explicitly ...
... A non-narrowing conversion out to long long is a necessity, but the
conversions to float and double are simply conveniences.

Conversion from floating is explicit, to avoid unintended consequences with
arithmetic operators, when later sampleCount ceases to be an alias for an
integral type.

Some conversions are not made explicit, where I expect to change the type of
the variable later to have mere size_t width.
2016-09-15 21:02:31 -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
Paul Licameli
39d514b183 Some more const, some stl idioms, remove unused declaration 2016-09-13 22:03:58 -04:00
James Crook
4eeef25191 More unused parameters and local variables. 2016-09-12 12:33:44 +01:00
James Crook
65c7e8051a ThomasFeher - Unused parameters clean up. 2016-09-11 20:31:49 +01:00
James Crook
923eefaf90 Add code from merging.
This brings more of the code from DarkAudacity into Audacity, though not yet enabled.  This will make cherry picking later easier.
- Changing colour of html displays now possible, as colour links are visible for substitution.  (Can't use css as wxHTML is very limited).
- Export can now be preset to a particular format independent of preferences.
- SnapTo reversion on zoom now a DA controlled option.
- Caching of pinning preference for faster repaint because preferences are slow.
- Record Append now has sensible limit on number of tracks, rather than giving an error, and flipping the meaning of shift is now DA controlled.
2016-09-10 21:34:14 +01:00
James Crook
22726dc41d Bug 1495 - Scrub Toolbar is default-enabled for upgraders 2016-09-08 21:38:29 +01:00
Paul Licameli
2263a0f477 Don't use wxArrayPtrVoid with casts, use std::vector 2016-09-08 11:08:49 -04:00
Paul Licameli
79c79f9cd3 Remove many mentions of sampleCount with auto and decltype...
... This makes much code agnostic about how other things (functions and
arguments) are typed.

Many of these neeed to become size_t instead of sampleCount.
2016-08-24 14:50:45 -04: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
45606fa1f4 Fix default positions of toolbars.
Device toolbar had jumped to the top with a recent change of toolbar visibility.
2016-08-15 09:42:29 +01:00
Paul Licameli
fe5ab9a462 Remove the naked new in allocation of AudacityProject 2016-08-14 15:24:59 -04:00
James Crook
d0a32f27eb Hide Scrubbing Toolbar by default. 2016-08-14 15:59:07 +01:00
Paul Licameli
32f24eabb2 Review uses of safenew...
... add comments and assertions, and use make_unique instead where possible
2016-08-13 23:16:05 -04:00
James Crook
53bb478600 Bug 1457 - Transport Menu "Scrub" and "Seek" do not correctly indicate when either Scrubbing mode is active 2016-08-11 22:30:51 +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
2a93e451b6 Bug 1458 - Scrubbing Toolbar buttons do not update to show the action they will perform 2016-08-10 19:36:09 +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