1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-03 17:19:43 +02:00

11159 Commits

Author SHA1 Message Date
Leland Lucius
31d9789c4d Force Aqua appearance on 10.15+
If built using the 10.15+ SDK, the UI will take on some
of the new system visuals (like colors).  But, Audacity
isn't ready for that yet, so this tells the system it
needs the old look.
2020-01-04 03:10:05 -06:00
Leland Lucius
04dcc8994d Remove leftover debugging code 2020-01-04 00:43:52 -06:00
Paul Licameli
aef4b80d53 a null check on GetActiveProject() 2020-01-03 20:14:19 -05:00
Paul Licameli
93c2a692c1 Preliminaries before removal of some more calls to GetActiveProject 2020-01-03 18:20:41 -05:00
Paul Licameli
973f15c5ac Move ProjectWindowBase to new files...
... So that you can use GetProject without other linkage dependencies
2020-01-03 17:58:21 -05:00
Paul Licameli
be24e6b5a1 Separate class ProjectWindowBase...
... which adds a project association to wxFrame, and nothing else
2020-01-03 17:54:44 -05:00
Paul Licameli
db6265d4e7 Fix build 2020-01-03 10:14:12 -05:00
Paul Licameli
4a5abc9e41 Pass AudacityProject* to more methods of UIHandle 2020-01-03 10:09:46 -05:00
Paul Licameli
ba5ce23668 Remove many calls to GetActiveProject 2020-01-02 14:05:49 -05:00
Paul Licameli
a769cdfe1d MacroCommandDialog remembers reference to project 2020-01-02 14:04:53 -05:00
Paul Licameli
c39718fa1f MacroCommands remembers a reference to project...
... Eliminating several GetActiveProject calls, notably including those where
we construct a CommandContext for executing commands.
2020-01-02 13:58:49 -05:00
Paul Licameli
f85f4db704 Remove use of GetActiveProject in MacroCommandsDialog...
... instead pass into it the project pointer already given to ctor of
MacrosWindow
2020-01-02 13:52:26 -05:00
Paul Licameli
e2539be53b WaveTrack::SyncLockAdjust doesn't need a factory to make a temp track 2020-01-02 13:40:06 -05:00
Paul Licameli
914bb1dc95 Remove some uses of GetActiveProject in src/effects 2020-01-02 13:32:04 -05:00
Paul Licameli
83f7bc6b5c Eliminate some uses of GetActiveProject...
... where there was already a project at hand
2020-01-02 13:15:14 -05:00
Paul Licameli
d23569ca10 Construct Exporter with project pointer, fewer GetActiveProject calls 2020-01-02 13:13:48 -05:00
Paul Licameli
ece7bd888d Eliminate GetActiveProject in TimerRecordDialog 2020-01-02 13:11:17 -05:00
Paul Licameli
7592227f14 Remove uses of GetActiveProject in import 2020-01-02 13:11:17 -05:00
Paul Licameli
a1eeb528b7 Lift a call to GetActiveProject into ScriptCommandRelay...
... Don't do it at the low level of construction of a command object.  Do it
only at the highest possible level, where an external scripting module or
Nyquist calls into the command framework.  Pass the project pointer down where
it is needed.
2020-01-02 13:05:09 -05:00
Paul Licameli
1e3779c2f3 Remove uses of GetActiveProject in popup menu handlers 2020-01-01 22:10:25 -05:00
Paul Licameli
fce85d0e56 Don't use GetActiveProject in track panel pop-up menu handlers 2020-01-01 22:06:16 -05:00
Paul Licameli
7dbca958a6 CellularPanel passes AudacityProject* to DoContextMenu() of cell 2020-01-01 21:57:39 -05:00
Paul Licameli
12bbafe013 Separate storing of user data from initialization of popup items 2020-01-01 21:54:45 -05:00
Paul Licameli
0256156dec Implement Multi View checkbox menu item in wave track TCP...
... When it's off (default), Spectrum and Waveform buttons behave as before,
and dragging of the sub-view separator is disabled.

When it transitions to off, and the view is split, then the top sub-view takes
up the whole view.

When it transitions on, nothing visible happens.

When it is on, and you choose Spectrum or Waveform, then the corrsponding
sub-view toggles visibility.

When a sub-view is turned on by the menu item, it appears lowest.
2020-01-01 15:37:49 -05:00
Paul Licameli
30c37e9110 Sort source files in src/prefs in Xcode browser 2020-01-01 14:48:30 -05:00
Paul Licameli
00661d273a Scale choices at the top of the Waveform pop-up menu...
... as they have been in the menu for spectrum
2020-01-01 12:05:14 -05:00
Paul Licameli
389d04459a Move choice of waveform scale from TCP menu to ruler context menu 2019-12-31 19:26:51 -05:00
Loss
e787694f07 Implementation of Timer Toolbar
PRL:  Rebased onto recent master, fixed compilation and indentation, added new
files to the XCode project, added an EXPERIMENTAL flag
2019-12-31 17:42:54 -05:00
Paul Licameli
f1e5e96480 Double-click on stereo channel separator makes heights equal 2019-12-31 17:36:03 -05:00
Paul Licameli
45a0ce1819 Bug2268: should be able to use " in Nyquist Prompt for Mac...
... We need to un-correct the smart quote characters back to dumb quotes
before passing the input to the Lisp interpreter.

The smart quote correction is a consequence of the move to the MacOS 10.9 SDK.
Stopping the correction at the source would require objective-C hacks in a
custom build of wxWidgets, and just not worth the effort.

This fix only corrects the text input at one wxTextCtrl.  Should we reexamine
other uses of that class?
2019-12-31 15:31:45 -05:00
Paul Licameli
460008f59d One less place that assumes at most two channels in a track 2019-12-31 15:10:11 -05:00
Paul Licameli
8abf3b490f Move an i18n-hint comment 2019-12-31 14:39:52 -05:00
Paul Licameli
353a235708 Bug2224: Should have error message trying to cut without selection...
... I got bitten by problems of static variable initialization order
2019-12-31 12:08:07 -05:00
Paul Licameli
917e84f382 Implement double-click at the view separator to split view evenly...
... And this can even change an unsplit view to evenly split when you get the
 cursor near the top or bottom
2019-12-31 11:21:28 -05:00
Paul Licameli
e0453d1b7e Fix redefinition compilation error on Windows 2019-12-31 11:13:12 -05:00
Paul Licameli
b747e88304 Bug2256: complete the fix, see 17ed489 2019-12-30 23:11:55 -05:00
Leland Lucius
50224b3a0c Change ho underaligned warning is disabled
Since it is only issued with clang 11(+), attempting to
disable it for via Xcode options doesn't work on older
versions of Xcode/clang.

So, make it clang version specific via configmac.h.
2019-12-30 19:42:46 -06:00
Paul Licameli
17ed4899ec Bug2256: Resizing channels should not change subview proportions 2019-12-30 17:38:07 -05:00
Leland Lucius
f39f505205 Add -Wno-underaligned-exception-object to Mac build 2019-12-30 16:07:03 -06:00
Paul Licameli
0c44d0f7d3 Bug2244: need a distinct cursor for adjustment of split views...
... Adapted from the bandwidth adjustment cursor for spectral selection, with
reversal of white and black, so the new ones are white around black
2019-12-30 15:18:31 -05:00
Paul Licameli
28e19e3e03 Bug2214: Mix and Render should insert new tracks after old tracks...
... or where the old tracks were, if replacing them

This puts the new track in the sync-lock group of the old tracks.
2019-12-30 11:13:18 -05:00
Paul Licameli
dbdfb26e4a Make FileNames a namespace (fixing Windows build)...
... as the comment said it should be.
2019-12-30 11:13:09 -05:00
Paul Licameli
de4edb0424 Nyquist output dialog uses ShuttleGui 2019-12-29 17:46:02 -05:00
Paul Licameli
093ffbd2f1 MultiDialog uses ShuttleGui, and TranslatableString for title 2019-12-29 16:17:04 -05:00
Paul Licameli
75b3ad7c61 Fix Linux build 2019-12-29 15:56:34 -05:00
Paul Licameli
cacdcf8ad5 Fix Linux build 2019-12-29 15:41:37 -05:00
Paul Licameli
7638dd0204 Redo file dialog masks with TranslatableString...
... eliminating some repetitious code, fixing some missing translations, and
presenting simpler strings to the translators, without any | or ; characters
that need to be preserved.
2019-12-29 15:35:04 -05:00
Paul Licameli
aa39f9ade2 Rewrite FileNames::SelectFile using FileTypes...
... And more uniformity in the descriptions of file types used in more than
one place

Also fixes missing translations in VSTEffect.cpp
2019-12-29 15:35:04 -05:00
Paul Licameli
9204319b86 Just one accessor needed for description of ExportPlugin 2019-12-29 15:35:03 -05:00
Paul Licameli
c64b3cb31f Rewrite FileDialogWrapper using FileNames::FileTypes...
... also removing some repeated code and using the config keys /DefaultOpenType
and /LastOpenType only in Import.cpp
2019-12-29 15:35:03 -05:00