Commit Graph

375 Commits

Author SHA1 Message Date
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
Leland Lucius
76c79cb910 Bug 2115 - Linux: Track focus lost on selecting effect 2020-03-10 08:13:44 -05:00
David Bailes
9210c2aa35 Time Toolbar: change "TimeToolBar" to "Time"
Change string or sub-string "TimeToolBar" to "Time" to conform with the naming convention of other toolbars.

(Change prompted by the narrator screen reader unexpectedly reading TimeToolBar rather than Time when tabbing to the toolbar.)
2020-03-07 11:07:47 +00:00
Leland Lucius
bd04315b7a Fix for bug #2052
This simplifies the active/aborted Audacity detection for Mac and Linux by
getting rid of the lockfile entirely. Instead it utilizes the socket file
that was already being used for communication.

More comments in source...
2020-03-02 13:33:28 -06:00
David Bailes
b67c82171c Bug 2329 - Keyboard shortcuts: new or changed defaults can create duplicates
Problem:
If a new version of Audacity introduces a new default shortcut, or changes an existing one, then this may be the same shortcut as a user has previously assigned to another command. Both commands will have the same shortcut, and the shortcut will only execute one of those commands.

Fix:
Check for any such duplicates when a user opens a version of audacity using an audacity.cfg file which was created with a different version.
For each duplicate found, remove the shortcut from the command which has a new or changed default.
If duplicates where found, open a message box informing the user of the removed shortcuts.
2020-02-19 15:02:08 +00:00
Paul Licameli
e5540c6118 Don't crash on exit when a module attaches a menu item...
... such as Nyquist Workbench.

I don't fully understand why, but destroying the menu registry items very late,
during the destruction of static objects, causes a crash in memory deallocation,
at least on Mac.

So destroy the menu registry explicitly in application shut-down.
2020-02-17 16:08:59 -05:00
James Crook
9985b8a9b8 Fix Big Time TimerToolBar, Stage III
Fixed issue where format selector could disappear.
Fixed upgrade from 2.3.3.
Remembers time format.
2020-02-14 12:02:21 +00:00
Leland Lucius
080b746b66 Revert to using a wrapper when starting Audacity
But, this time use a "C" wrapper as posited by Paul in:

   https://bugzilla.audacityteam.org/show_bug.cgi?id=543#c6

Doing so should bypass the execve()/decontruction issue and
still allow entitlements to work.

This also sets the build system to Legacy so that a "clean"
action will not produce:

   error: Could not delete '...' because it was not created by
          the build system.

And, I'm not sure why the deployment target was 10.9, but it
should have been 10.7.
2020-02-02 02:46:53 -06:00
Paul Licameli
852c07bc58 Eliminate GetActiveProject from WaveTrack.cpp 2020-01-07 16:16:18 -05:00
Paul Licameli
02e5b8db07 Remove unnecessary members of CommandHandler...
... see also commit 02d5e6c
2020-01-04 12:59:37 -05:00
Paul Licameli
c9a9c06bd0 Pass AudacityProject * into preference panel factories 2020-01-04 12:37:57 -05:00
Paul Licameli
aef4b80d53 a null check on GetActiveProject() 2020-01-03 20:14:19 -05:00
Paul Licameli
2007346551 Pass TranslatableString to help, warning, and error dialogs 2019-12-20 21:48:21 -05:00
Paul Licameli
dc39f22442 AudacityMessageBox takes TranslatableString message and caption 2019-12-20 21:32:50 -05:00
Paul Licameli
53ee9c9800 TranslatableString for titles, names, labels of wxDialogWrappers...
... Found one missed translation in CommandTargets.cpp
2019-12-16 10:58:05 -05:00