1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-19 17:40:51 +02:00

489 Commits

Author SHA1 Message Date
Paul Licameli
0506faee02 New library for files 2021-07-30 08:17:27 -04:00
Paul Licameli
4fd6e8a151 Move LogWindow to new files 2021-07-30 08:17:27 -04:00
Paul Licameli
e3f9b3cbd4 Separate LogWindow from AudacityLogger, so the latter uses no GUI 2021-07-30 08:17:27 -04:00
Paul Licameli
9b0706dede Move SelectFile (and VerifyFilename which uses it) to new files...
... So that FileNames avoids dependency on wxCore.
2021-07-30 06:42:18 -04:00
Paul Licameli
7e50e9b5af New library for preferences...
... It mentions some wxWidgets types in its interface, but these are in the
acceptable utility subset of wxBase that we still consider GUI toolkit-neutral.
2021-07-22 14:50:26 -04:00
Paul Licameli
a2f109de2e Reimplement PrefsListener without wx/app.h or wxCommandEvent...
... so that Prefs depends only on the allowed subset of wxBase
2021-07-22 14:46:25 -04:00
Vitaly Sverchinsky
b90b5cfd47 Splitting mSelIndex
Using mTextEditIndex for tracking active text box index, and mNavigationIndex used to track selection for keyboard navigation purposes
See #1195
2021-07-22 20:22:56 +03:00
Paul Licameli
9ed63b0321 Remove wx/app.h from AudacityException.h 2021-07-21 14:01:58 -04:00
Paul Licameli
189c6c1dbc Move error dialog functions into the BasicUI facade...
... now ErrorDialog.h is included only in ErrorDialog.cpp and
wxWidgetsBasicUI.cpp
2021-07-18 20:39:23 -04:00
Paul Licameli
54b5f7d12c New library for components 2021-07-13 09:28:43 -04:00
Paul Licameli
d0d64bf025 Merge release-3.0.3 into master
Conflicts:
	src/AboutDialog.cpp
	src/prefs/ApplicationPrefs.cpp
2021-07-12 14:43:54 -04:00
gera
f2a0d918a2 Add additional checks for macro output directory.
This bug still available in case: using old settings file or manual set it into settings file.
2021-07-06 05:41:44 -07:00
Paul Licameli
132f04d272 ManualPageID is a new type; rewrite HelpSystem::ShowHelp and its uses 2021-07-01 13:35:57 -04:00
Paul Licameli
cfbdd2d22e Type alias ManualPageID for wxString used in many places...
... eliminating many direct mentions of wxString.  A real type distinction will
be made next.
2021-07-01 13:33:04 -04:00
Paul Licameli
50b384adae Separate files for PluginRegistrationDialog...
... so that PluginManager can avoid using GUI
2021-06-30 21:15:19 -04:00
Paul Licameli
04a0292d1d Simplify iterations over PluginManager; remove a friend 2021-06-30 21:15:19 -04:00
Paul Licameli
870fc5d626 Opt-out of check for updates persists after preference resets...
... These can happen in only two ways, using the application: from the Tools
menu, or using the Windows intaller program.

A review of all uses of wxFileConfig::DeleteAll() proves this.

The one special BoolSetting object was moved from UpdateManager to Prefs.cpp to
avoid a dependency cycle among source code files.
2021-06-29 16:36:03 -04:00
Paul Licameli
bb907fca48 "Menu Tree" doesn't need to translate 2021-06-11 17:44:42 -04:00
James Crook
404ad6ad8a Bug 2803 - Audacity unresponsive after 'Fit to Height'
a) Fixed root cause, which is conversion of a
negative integer to a large unsigned, leading to
a very tall track.
b) Improved mitigation (in projects that already
have over tall tracks) by setting a smaller minimum
for the allowed size.
2021-06-08 22:05:56 +01:00
Dmitry Vedenko
690772ccb0 Use ShowExceptionDialog when we want to show ErrorReportDialog 2021-06-08 08:08:26 -07:00
Paul Licameli
d28554189d Add alpha-build-only crash-me buttons, for testing of crash reporting 2021-06-08 02:23:53 -07:00
Paul Licameli
f369b5109b Change almost all uses of WaveTrack::Get() to GetFloats() ...
... A call graph browser easily shows that the extra generality of fetching
samples in some other format is only used in Benchmark -- where the format is
always the same as what the track is constructed with.

This makes re-verification of the claims in comments two commits ago easier.
2021-05-27 11:38:10 -04:00
Paul Licameli
f1de843246 Use Settings for default sample rate and format...
... The first is an example of a Setting with a computed default value.

Also making a new file to hold them, separate from the GUI that changes them
in QualityPrefs; fewer things depend on QualityPrefs
2021-05-17 08:46:08 -04:00
Paul Licameli
8c04ed3990 Settings objects used in AudioIOBase...
... Giving many examples of use of Settings objects.  Many other rewrites like
this should be made to eliminate as many direct uses of gPrefs as we can.

Don't rely on long distance coincidences of literals for paths or defaults.

For each of several paths like /AudioIO/Host, all uses of that path are replaced
with use of a global Settings object defined in one place, in AudioIOBase.  The
object also gives the benefit of caching the last-read or written value.

Other users of those preferences must then include "AudioIOBase.h" to make the
dependency explicit at compile time.

It should be checked that no other mentions of those paths remain in the source,
and that there was no unintended change in default values.

This also inverts dependency of AudioIOBase on RecordingPrefs, which is GUI for
changing some of these settings.
2021-05-17 08:46:08 -04:00
Paul Licameli
9a66255013 Move AudioIOBase::mPlaybackSchedule up into AudioIoCallback 2021-05-14 16:25:41 -04:00
Paul Licameli
cf948ece52 Eliminate duplications of string literal "Nyquist Prompt" 2021-05-14 13:08:02 -04:00
Paul Licameli
c5ebc396eb Audacity.h has shrunk to nothing, now remove it! 2021-05-10 00:05:23 -05:00
Paul Licameli
e653b4aaf8 Eliminate Experimental.h, configure compile options instead...
... This makes it impossible to forget to include the EXPERIMENTAL definitions
(such as when cutting and pasting code) and so get unintended quiet changes of
behavior.

The EXPERIMENTAL flags are now specified instead in new file Experimental.cmake
2021-04-27 12:40:07 -04:00
Paul Licameli
c781a108e3 Move compile-time testing of crash report support out of Experimental.h 2021-04-27 12:40:06 -04:00
James Crook
28a634c5e2 Bug 2671 - ENH: "Show track name as overlay" cannot be turned on from main menus 2021-04-24 12:21:25 +01:00
James Crook
9e3c98202f Bug 2734 - Apply macro may not create the macro-output folder in the source directory
Now macro-output is placed in your default documents folder (if no
path specified) or in the path you specify (if a path was specified).
2021-04-09 19:05:19 +01:00
James Crook
f5a69354e0 Bug 2701 - Progress dialog interferes with scripting.
Interference mattered for "PlayLooped".
No interference existed for an empty selection, a play until stopped.
2021-03-21 10:56:51 +00:00
James Crook
c08131b78f Bug 2689 - Ctrl+R to repeat an effect may show the dialog 2021-03-08 09:51:46 +00:00
Leland Lucius
5f68102dc5 Revert "Bug 2547 - Shift + Click may select incorrect tracks"
This reverts commit 0c234359afa2e7a9cb6ccd3a431444d691beede7.

Will need to find another way and have discussion as pointed out
in bug #2547.
2021-02-14 03:43:17 -06:00
Leland Lucius
598eb39484 Bug 2353 - Import RAW into empty project does not zoom to fit 2021-02-12 18:56:41 -06:00
Leland Lucius
0c234359af Bug 2547 - Shift + Click may select incorrect tracks 2021-02-12 10:12:08 -06:00
Leland Lucius
9445393876 Bug 2527 - Reset Configuration does not reset Project rate or selection timers 2021-02-11 15:01:35 -06:00
Paul Licameli
5c80f6f19f Specification of Preferences menu item simplified 2021-02-07 11:55:14 -05:00
Paul Licameli
5fda4b959f Some command flags can be defined nearer their sole points of use 2021-02-03 17:05:27 -05:00
James Crook
67dff35a12 Bug 2640 - Plot Spectrum and Contrast analyzers are not "Repeatable"
Completing the update by John Colket.  The plan always was that
these new 'repeat' entries were optional commands bindable to
keyboard shortcuts by advanced users.

Users visiting the menus can re-select the item they want.
For these menu users it would be confusing/overload to list
these repeat commands in the menu.  Repeat last effect in the Effects
menu is more important.  It is there in the menu to signal to
users that there is the Ctrl+R key binding for it.
2021-02-03 11:40:21 +00:00
JohnColket
a3d9f41fb4
Bug 2582 - Enh: Repeat last Process, Part 2 (#734) 2021-02-03 11:02:49 +00:00
Paul Licameli
15313a27f7 Define virtual Track::PasteInto to simplfy Paste...
... Also making EditMenus not dependent on TimeTrack
2021-02-02 15:01:51 -05:00
Paul Licameli
8543d2dd30 Also skip TimeTrack in some other commands with the flag 2021-02-02 14:56:52 -05:00
Paul Licameli
2842fa7d56 Don't cut or copy TimeTrack...
... Which was the intention in the flags enabling the commands
2021-02-02 14:44:28 -05:00
Paul Licameli
badb1643fa New Track virtual eliminates a track_cast in CommonCommandFlags...
... Also a better name for one of the command flags

This allows removal of special mention of TimeTrack
2021-02-02 14:42:21 -05:00
Leland Lucius
5aa5b0df6d Bug 2435 - Some menu commands greyed out when playback paused 2021-01-27 16:05:45 -06:00
Paul Licameli
35e9afe34d Remove unnecessary parts of fix for bug 2501...
... Don't need to put the project in a strange state where Undo commands are
ignored until labels are de-selected
2021-01-26 04:23:45 -05:00
Leland Lucius
a03a6abb4b Bug 2501 - Undo for label edit results in a blank label 2021-01-24 23:27:50 -06:00
luzpaz
7a3bdcf3f2
Fix typos (user facing and non-user facing) (#727)
Found via `codespell v2.1.dev0`  
`codespell -q 3 -S *.po,./lib-src -L parm,parms,toke`
2021-01-24 09:46:08 +00:00
Paul Licameli
0df8fbcc74 Bug2583: Re-placement of splits after paste 2021-01-23 14:38:36 -05:00