Commit Graph

106 Commits

Author SHA1 Message Date
Leland Lucius
69a98669bf Remove anchor from help URLs 2021-01-06 22:11:49 -06:00
Leland Lucius
6a5d4fdbc0 Update FAT filesystem messages 2021-01-05 13:28:04 -06:00
Leland Lucius
50f3321154 Bug 2576 - FAT formatted disks can readily run out of space with multiple edits - wrong error message can be displayed 2021-01-05 01:32:03 -06:00
Leland Lucius
56c8bdcd24 Bug 2609 - Save Project when disk is full gives a second disk-full message 2021-01-03 19:22:22 -06:00
Leland Lucius
84c60beab6 Bug 2603 - Backing up a >4GB project to a FAT drive fails with an incorrect misleading error message 2021-01-03 16:33:05 -06:00
Leland Lucius
375a6a8803 Bug 2604 - Saving a 4 hour stereo chirp to FAT fails and with an inappropriate error message 2021-01-03 16:02:43 -06:00
Paul Licameli
4cb9bb19fd Bug2603: Should give proper message for failed backup onto FAT drive...
... The error message eliminated here describes what should be ruled out by
the loop before this line, which already checks that no previous file of the
chosen name exists.

So just give the generic write failure message.
2020-12-09 18:00:41 -05:00
Paul Licameli
bc7066a20e More uniformity of file write error messages 2020-12-09 17:41:22 -05:00
Paul Licameli
d8cd8041f1 Fix grammatical error in user visible message 2020-12-09 15:34:15 -05:00
Paul Licameli
aa0b33dc8f Detect failure to reconnect to temp project when first saving it 2020-12-06 23:20:44 -05:00
Paul Licameli
a9d555bf16 A status return check on ProjectFileIO::SaveProject 2020-12-06 20:50:31 -05:00
Paul Licameli
ebb6e5de1c Bug2600: Should rename current undo state after compacting 2020-11-25 13:31:04 -05:00
Paul Licameli
2fe0a07901 Some null checks 2020-11-25 11:07:16 -05:00
Paul Licameli
3e0120be05 Bug2550 residual: also move -shm file if present...
... Also much other extra care in the handling of -shm and -wal files
2020-11-22 14:32:42 -05:00
Paul Licameli
791dbea1af Bug2109 residual: apply fix also in case of import of MIDI...
... Muting the new track, in case any solo track already existed.
2020-11-21 15:56:20 -05:00
Paul Licameli
003d1c23a3 Bug2590: Compact Project should free up more space...
... but not always as much, as before the part of the fix for Bug2579, which is
at 7edbad3cd1

The last saved undo state and the current state must (both) be saved (if
different).
2020-11-21 13:55:46 -05:00
Paul Licameli
caa312ab7b Remove some unneeded #includes and forward declarations 2020-11-20 13:47:47 -05:00
Paul Licameli
14c300c672 Bug2542: Discard button of auto recovery should work with UP 2020-11-19 15:18:01 -05:00
Paul Licameli
0f1c19e97e Bug2570 residual: Also handle the case of last saved state in redo 2020-11-18 20:37:11 -05:00
Paul Licameli
7edbad3cd1 Bug2570 residual: Compact should not change last saved state...
... So that if you save, edit, compact, close without saving, then reopen,
you recover the saved state as expected, not the compacted state.

Implications:

Do not push an undo state for compaction.  Discard redo states instead.

Do not purge undo states after the last saved.  The database still needs them.
So we might reclaim less space than before.
2020-11-18 19:21:26 -05:00
Paul Licameli
16b249ab9f ProjectFileIO fns now take multiple pointers to const TrackLists 2020-11-18 17:30:55 -05:00
Paul Licameli
8ac1cb75aa Bug2579: Don't corrupt project after compact the exit without save...
... also may improve compaction by clearing mLastSavedTracks first
2020-11-17 17:21:33 -05:00
Paul Licameli
ea76b7c9f7 Don't clear clipboard unnecessarily in ProjectFileManager::Compact() 2020-11-17 17:13:41 -05:00
Paul Licameli
716139494d Move details of OnCompact into ProjectFileManager...
... so it can use mLastSavedTracks
2020-11-17 17:10:43 -05:00
James Crook
f0fb7e5be5 2540 and more disk-full warning adjustments.
- Add text to tell people about the help button.
- Use alternative to 'wxFilename::GetVolume' that works on macOS.
2020-09-25 15:04:52 +01:00
James Crook
4810897b74 Add Help Button.
Two more disk full errors were missing help-link buttons.
2020-09-25 10:39:16 +01:00
binarywisdom
6e4f163317
fixed bug 2109 (#664) 2020-09-09 17:43:41 +01:00
Paul Licameli
77d0851a65 Remove class ImportXMLTagHandler...
... It became unused at d39590cf41

And remove some other complications in ProjectFileManager that were used only
in it
2020-09-01 09:03:43 -04:00
Paul Licameli
1bb34e703e
Bug2529: don't lose data when closing without saving on small drive (#650) 2020-08-28 13:03:35 -05:00
Leland Lucius
0bbf1792fa AUP3: Don't molest project file when applying macros
Cliff reported that if you apply a macro to "Files" and you had
a "saved project" open at the time, you would get the "not saved
properly" dialog when you next open that "saved project".

This should correct it...
2020-08-26 00:06:19 -05:00
Paul Licameli
4ca3e7096f
Track factory cleanup (#646)
* Don't need TrackFactory to make LabelTrack

* Don't need TrackFactory to make NoteTrack

* Don't need TrackFactory to make TimeTrack, or ZoomInfo in the factory

* Remove some forward declarations

* Rename TrackFactory as WaveTrackFactory, move it out of Track.cpp
2020-08-22 18:44:49 -05:00
Leland Lucius
9d749fef14 AUP3: Fix macro path handling
Aside from the breakage I added to it during the AUP3 conversion,
there was several other issues discovered in regards to how the
export paths were being handled.
2020-08-10 17:48:59 -05:00
Leland Lucius
d4627f0daf AUP3: Reduce crash exposure when compacting
There's still the possibility if a crash happens at just the
right time that the project will be named "<project>_compact_back"
so we should probably look for it during startup.

This also changes all "Vacuum" references to "compact".
2020-07-28 23:25:50 -05:00
Leland Lucius
09f7aaad5b AUP3: UP-35 Dirty Project-2 bloat retention
Add compaction to SaveProject for the original file.
2020-07-27 23:16:27 -05:00
Leland Lucius
e2d6e1cc24 AUP3: Update default/lastused path handling 2020-07-27 14:11:50 -05:00
Leland Lucius
674cfe68c9 AUP3: Offer the active project name for Save Backup
This provides a "template" for the user to modify.
2020-07-25 20:48:15 -05:00
Leland Lucius
03762d0ca3 AUP3: Fix unopened project file 2020-07-25 18:47:30 -05:00
Leland Lucius
0c14e613c7 AUP3: Fix stupid mistake
Thanks for spotting it Paul.
2020-07-22 13:39:01 -05:00
Leland Lucius
6f771d1783 AUP3: Fix previous commit and rework db handling
This moves direct handling of the sqlite3 DB handle into it's own
class, along with the checkpointing thread and prepared statement
cache.
2020-07-22 11:41:03 -05:00
Paul Licameli
bd6536f3c4 Remove obsolete mentions of blockfiles in comments & incomplete types 2020-07-20 19:03:31 -04:00
Leland Lucius
eaaa782730 AUP3: Offer project name during Save As 2020-07-20 17:27:34 -05:00
Leland Lucius
af23a14bdb AUP3: Change message text 2020-07-20 16:34:48 -05:00
Leland Lucius
5652b9b039 AUP3: Automatically save a permanent project
If it was recovered.
2020-07-20 13:37:36 -05:00
Leland Lucius
84f363ee07 AUP3: Simplify checkpoing and add checkpoint progress dialog
Also move the project file closure out of the ProjectFileIO
destructor and does it before the project file window is
destroyed.
2020-07-20 11:10:31 -05:00
Leland Lucius
e669b365f1 AUP3: Remove unneeded error message 2020-07-18 09:25:10 -05:00
Leland Lucius
17268edf4b AUP3: Rename empty project after importing AU* projects 2020-07-17 20:46:08 -05:00
Leland Lucius
93d9303c3d AUP3: Many corrections and (safe) speed ups
This reenables synchronous mode by default.  However, for processing
where a power cut or crash can be tolerated, synchronous and journaling
are disabled.  Once the processing is complete, they are reenabled.

Types of processing that are like this are "Save As", "Backup Project",
and "Vacuuming". They all write to a separate project file while
running, so the real project file is safe.

Unfortunately, effects are back to be slow and sluggish.

I believe I've address all of the weird file corruption issues and
I'll continue to continue testing for these.
2020-07-17 16:17:42 -05:00
Leland Lucius
01181c8f21 AUP3: UP-29 Save Project does not propagate project name to Audacity window 2020-07-15 08:28:00 -05:00
Leland Lucius
176eb49a1e AUP3: Several little fixes
Handle bypassing of timetracks in AUP importer correctly
Add bypassing of timetracks in AUP3 importer
Move/add AUP3 in filter lists.
2020-07-15 07:57:20 -05:00
Leland Lucius
5bc3ae659c AUP3: Added AUP3 importer and improved progress dialogs 2020-07-15 01:32:48 -05:00