Commit Graph

389 Commits

Author SHA1 Message Date
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
Leland Lucius e22af714af Bug 2736 - Recent files list can be replaced by ExportCL commands 2021-04-08 20:11:42 -05:00
Leland Lucius 19df017d1f Save the log file during exit
This will save the current log to the Audacity config directory and
a name of "lastlog.txt".  This is for diagnosing errors that may
occur during Audacity exit.
2021-04-03 14:09:52 -05:00
Leland Lucius e80ec51a32 Bug 2709 - Mac: Missing sub-menu check marks in French 2021-04-02 03:37:23 -05:00
Leland Lucius e178f63aec Bug 2097 - Mac: File list ignored at the command line 2021-02-12 02:03:34 -06:00
Leland Lucius e0096f7fc7 Fix Build 2021-02-11 17:08:54 -06:00
Leland Lucius 63c826ebed Bug 1986 - Linux: Unwanted messages in console. 2021-02-11 15:36:17 -06:00
Leland Lucius 4f7affad3f Bug 2135 - Audacity crashes if launched with a locked pluginregistry.cfg file 2021-02-01 18:05:16 -06:00
Paul Licameli c853450ce0 Hide two-phase construction of AudacityFileConfig in factory function 2021-01-31 11:22:48 -05:00
Paul Licameli 2c5c0f9dfd Class AudacityPrefs renamed, moved, reused in PluginManager...
... And construction of the main instance is hoisted into AudacityApp
2021-01-31 11:11:03 -05:00
Leland Lucius 21296b0cf1 New wrapper for wxFileConfig to fix several bugs
Bug 2135 - Audacity crashes if launched with a locked pluginregistry.cfg file
Bug 2651 - If pluginregistry.cfg gets locked while Audacity is active the Plug-in Manager is blocked - with no help
Bug 2650 - Virgin launch fails with no pluginregistry.cfg file created
Bug 1264 - Writing to locked audacity.cfg not reported to user
Bug 2649 - Launching Audacity with a locked audacity.cfg file gives not one but three error messages - and no help
Bug 2652 - User is not warned if they launch Audacity with a locked pluginsettings.cfg file
2021-01-31 04:24:35 -06:00
Paul Licameli 43574553fc Break dependency cycle introduced at 50f3321...
... This only cuts and pastes some functions from FileNames to another new file
and namespace, and changes namespace qualifiers where they are called.

The cycle resulted because of the need to include widgets/ErrorDialog.h
2021-01-16 13:28:37 -05:00
freddii 534359de6c
Fix minor typos (#720)
Co-authored-by: freddii <https://freddii@github.com>
2021-01-12 11:56:09 +00:00
freddii 2593a84d56 Fix some spelling mistakes. 2021-01-12 09:55:31 +00:00
Leland Lucius c961d6236b Bug 2626 - Mac: Temporary files directory on exFAT makes Audacity fail at launch 2021-01-11 00:56:30 -06:00
Paul Licameli 57134d93d6 Bug2437: Call finishLaunching() before sleeping 2020-12-09 17:34:57 -05:00
Paul Licameli 64b066f655 Bug2437: possible further help...
... The 100ms sleep added at at a675b5907f was
meant to let NS framework events arrive on another thread and be detected by
wxWidgets.  But there are still reports that it is not reliable enough.

This other fix may be sufficient alone, making the sleep unnecessary.  But it
is harmless so we will leave it there.
2020-12-09 15:28:09 -05:00
Paul Licameli a675b5907f bug2437 complete fix: Sleep 100 ms at startup...
... The reported continuing failure to fix bug 2437 -- sometimes -- appears to
have been a timing problem.  I could observe it often with release builds but
not with debug.
2020-12-03 23:46:43 -05:00
Paul Licameli e343bf556b Bug2437: Finder "Open with", Audacity already running, should work 2020-12-01 21:44:46 -05:00
Paul Licameli 2cce830601 Split AudacityApp::OnInit() into two parts 2020-12-01 21:23:19 -05:00
Paul Licameli 596032c42f Lift call to CreateSingleInstanceChecker out of InitTempDir 2020-12-01 21:17:12 -05:00
Paul Licameli 8cb6749741 Bug2592: should clean old temp directory at exit after prefs change 2020-11-22 15:43:24 -05:00
Paul Licameli caa312ab7b Remove some unneeded #includes and forward declarations 2020-11-20 13:47:47 -05:00
Leland Lucius e2d6e1cc24 AUP3: Update default/lastused path handling 2020-07-27 14:11:50 -05:00
Paul Licameli 061208c5cf Remove obsolete mentions of DirManager in comments 2020-07-20 19:03:40 -04:00
Leland Lucius 5b41115bd0 AUP3: Mostly rework of CopyTo()
It now uses VACUUM INTO instead of the SQLite backup API
in hopes that the copies will be smaller. And VACUUM INTO
is "supposed" to be faster, but time will tell.  It's easy
to put the backup API usage back in.

This also fixes a bit I missed with redoing the orphan block
handling that was reported by Paul.

And finally, it renames the AutoRecovery.cpp/.h files and AutoSaveFile
class to ProjectSerializer since the AutoSaveFile class is being
used for regular project documents now and it doesn't write to a
file anymore.

If anyone has a better idea for a name other than ProjectSerializer
feel free to change it.  I hate naming things.
2020-07-10 00:50:52 -05:00
Paul Licameli 590d8c6d09
Fail safe save as (#606)
* ProjectFileIO::SaveProject() won't close original db until done...

... So on the failure path, don't risk closing the original too early, failing
with the new database, and then failing to reopen the original.

Just keep the original open and a new connection open too, until it is
certain that the initial population of the new database is successful.

* Check return value from AutoSaveDelete when saving-as

* Fix the remaining unchecked sqlite3_bind* calls, which are in Autosave...

...similarly to checks in 8b3f9fa

* When saving-as or -copy, open the new database only once

* Check return value from sqlite_initialize
2020-07-07 15:41:33 -05:00
James Crook bc50e21532 .aup3 Tweaks
- SQLite added to libs in readme.txt
- User message 'aup not associated' updated to 'aup3'
- Typos strind -> string, in -> is
- No translation of debug message
2020-07-01 12:59:38 +01:00
Leland Lucius d39590cf41 AUP3: First round of updates
!!! THERE WILL NO DOUBT BE BUGS !!!

This is a big one and there's still several things to
complete. Just want to get this in the wild to start
receiving feedback.

One big thing right now is that it will NOT load pre-aup3
files.  An importer is on the way for that.
2020-07-01 02:30:18 -05:00
Leland Lucius cbf1bb558e AUP3: Removes OD code related to project file handling
This removes all of the OnDemand code embedded throughout
    the main codebase. Individual files related specifically
    to OD have been left in place, but removed from the build.
2020-07-01 01:14:05 -05:00
Leland Lucius adbc1ba4b7 Bug 2467 - Modules are not available for "Portable" Audacity 2020-06-15 08:26:46 -05:00
Leland Lucius 4334a656b0 Bug 2467 - Modules are not available for "Portable" Audacity (edit) 2020-06-14 23:20:44 -05:00
yam 3b71d1fc1e Bug 2465 - Treble height Selection Toolbar 2020-06-07 01:15:39 -05:00
Leland Lucius 7a08ef3860 Revert "Add path to allow testing locales when using cmake"
This reverts commit e48dbd94f9.

There is a pure CMake way of handling this one...
2020-06-01 17:19:55 -05:00
Leland Lucius e48dbd94f9 Add path to allow testing locales when using cmake 2020-06-01 17:16:03 -05:00
Leland Lucius feb24f2b14 Bug 2467 - Modules are not available for "Portable" Audacity 2020-06-01 17:02:58 -05:00
Leland Lucius 1b5370bec2 Bug 2456 - audacity 2.3.3 config with Spectral Selection toolbar corrupts lower dock in 2.4.x and can crash 2020-05-29 02:03:46 -05:00
Paul Licameli ae9aca8177 Implement member functions of classes in corresponding .cpp files...
... in four cases; not in some other .cpp file.

This is another move that causes the generated graph to reflect dependencies
correctly.

This fixes other large, hidden cycles that involved PrefsDialog.cpp: there was
link dependency on that when PrefsPanel.h was used for the base class.  No
longer.

Also cycles involving TrackPanel.cpp, which contained the default
implementations for TrackPanelCell and related abstract base classes.
2020-05-28 05:50:22 -04:00
Paul Licameli 66c5b76573 Simplify public interface of FileHistory 2020-05-26 10:47:47 -04:00
Carlo Bramini e59bfcc872
[WIN32] Correctly read default value of wxRegKey entry. (#456)
Fix this build error with GCC:

../../audacity/src/AudacityApp.cpp:2347:62: error: call of overloaded 'wxString(wxRegKey&)' is ambiguous.
2020-05-25 01:37:55 -05:00
Leland Lucius c42d188e7b Removed old build system
This was fun!!! Holler if I had too much fun. :-)
2020-05-24 13:18:47 -05:00
Leland Lucius 64a597ef91 Override GTK theme to control GtkCombo* sizes 2020-05-23 13:08:21 -05:00
Paul Licameli 2e3c072fd5 Bug1119: Windows menu on Mac should list all project names...
... Reimplemented without making dependency cycles.

Project and ProjectFileManager publish events for change of active project or
change of a project title.

WindowMenus.cpp can listen for those events, so that it can update the menu
appropriately.  So it's all done nonintrusively in the rest of the code.
2020-05-22 10:09:47 -04:00
Leland Lucius 1ca911ed38 Convert all __WXDEBUG__ tests to use new _DEBUG symbol
This symbol is based on the NDEBUG symbol that's automatically
defined by CMake.
2020-04-25 02:36:27 -05:00
James Crook 018a8681ef Revert changes for Bug 1119 made by Paul.
These changes were made too close to release and are considered too dangerous for 2.4.0.
We will use the changes Leland provided.  We can review these proposed changes by Paul after 2.4.0 is released.
2020-04-21 17:45:16 +01:00
Paul Licameli 3348e2fecd Revert fix for bug 1119, which made bad dependency cycles
This reverts commit 4475dee373.
This reverts commit 18cbc2e574.
2020-04-21 12:28:39 -04:00
Leland Lucius 18cbc2e574 Bug 1119 - Mac: Window menu's list of open windows not available 2020-04-18 01:49:17 -05:00
Yuri Chornoivan d1ada5f08c Fix minor typos 2020-04-11 10:06:24 +01:00
Leland Lucius 279e96072b Reduce retry time during startup
This is the total time before it is decided a defunct socket
was left behind.
2020-03-12 17:59:56 -05:00