1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-02 08:39:46 +02:00

12301 Commits

Author SHA1 Message Date
Leland Lucius
06877a7742 AUP3: Remove (ifdef()) Discard/Compact from History window 2020-08-03 16:41:49 -05:00
Leland Lucius
1e6c2ace29 AUP3: Adjust the help URL in the History window 2020-08-03 13:56:59 -05:00
Leland Lucius
6bf29da525 AUP3: Remove active projects experiment
As we now have an explanation.
2020-08-03 10:20:25 -05:00
Leland Lucius
790e311f6f AUP3: Adjust Help URL for History window 2020-08-03 10:10:56 -05:00
Leland Lucius
47062a52d0 Fix build (again...again) 2020-08-02 14:15:54 -05:00
Leland Lucius
c4a2fd7a33 Fix build (again) 2020-08-02 14:15:22 -05:00
Leland Lucius
4b0038c290 AUP3: Experiment to see if it helps active project tracking 2020-08-02 13:43:44 -05:00
Leland Lucius
bfa17b7b69 AUP3: Select/unselect all by clicking column header in AutoRecovery dialog 2020-08-02 12:30:36 -05:00
Leland Lucius
45ab5b5850 AUP3: Add instruction text to Directories prefs 2020-08-02 12:17:51 -05:00
Leland Lucius
4d3578b1cb AUP3: No need to include the -wal in space calcs 2020-08-02 08:38:58 -05:00
Leland Lucius
96931a8b0c AUP3: Do not use compacted file if it grows
This can happen because the new file is constructed differently
than the original and SQLite may introduce additional b-tree
pages as a result.
2020-08-02 08:03:41 -05:00
Leland Lucius
9eabb40524 AUP3: Rename project instead of copying
When saving the project and the active project is temporary,
just rename it instead of copying to reduce wait time.
2020-08-02 02:41:37 -05:00
Leland Lucius
0dca04dc3b AUP3: Fix recovery for project without autosave or project docs
Also fixes a connection restoration issue that I can't believe
didn't cause all manner of issues.
2020-08-02 01:39:19 -05:00
Leland Lucius
9f058dc308 AUP3: UP-33 History window shows misleading "space used"
I've added compact and help buttons.
2020-08-01 21:41:49 -05:00
Leland Lucius
c29c6b1b15 AUP3: Small cleanup 2020-08-01 21:40:54 -05:00
Leland Lucius
913c41e6e8 AUP3: Minor code cleanup and addition of comments
Probably over commented for some, but I want a good refresher
a year from now when I've completely forgotten how it works.
2020-08-01 15:52:31 -05:00
Leland Lucius
5380f4f7af AUP3: Change "folders" to "directories" 2020-08-01 13:30:28 -05:00
Leland Lucius
8943494f8a AUP3: Better space usage calculations
Several improvements in determining how much actual disk space a
sampleblock uses. This allows us to provide how much space will
be recovered when using File -> Compact Project.

In addition, the History window now provides better space estimates.
2020-08-01 04:25:42 -05:00
Leland Lucius
59c3b360b7 AUP3: Make Auto Recovery dialog resizable 2020-07-31 18:24:32 -05:00
Leland Lucius
6f947b39c7 Actually tried it on Linux this time...go figure!!! 2020-07-29 10:49:17 -05:00
Leland Lucius
2d63633972 Fix the build 2020-07-29 10:40:17 -05:00
Leland Lucius
03ffe0ec13 Add missing include 2020-07-29 10:18:41 -05:00
Leland Lucius
863be98ccd AUP3: Deal with a couple of delays
The first was due to a left over bit of code in Compact and has
been removed.

The second is in SaveProject. This one can't be removed, so a
progress dialog was added.
2020-07-29 09:00:38 -05:00
Leland Lucius
0a4cae3a67 AUP3: Remove unwanted explanation from directory prefs 2020-07-29 07:18:21 -05:00
Leland Lucius
85b4a5376f AUP3: Make suggested directory preferences changes
In addition, I've extracted the wxTextCtrl wrapper from the
TimerRecordDialog intto widgets/wxTextCtrlWrapper.h and made
it the default for ShuttleGui::AddTextBox(). This way readonly
text controls are always included in the tab order.
2020-07-29 00:08:48 -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
James Crook
dad27f9eea Bug 2509 - Filter curve and Graphic EQ help links are broken in release version 2020-07-28 12:19:35 +01: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
f3293fd102 AUP3: Adjust checkpoint thread controls
To better reflect how they are used...simple flags
2020-07-27 23:15:38 -05:00
Leland Lucius
38d13ebdc0 AUP3: Do not physically delete project if not temp 2020-07-27 20:56:29 -05:00
Leland Lucius
a4554d3631 AUP3: Make sure original file gets closed
When doing a Save As, make sure autosave doc is removed
from the original project and the original project is
properly closed.  (The original project does NOT get
compacted.)
2020-07-27 19:39:26 -05:00
Leland Lucius
1bbd7b3b52 AUP3: UP-40 Compact Project Done
This time it adds the usage info on the initial dialog as well.
2020-07-27 16:56:31 -05:00
Leland Lucius
5e086041d6 AUP3: UP-40 Compact Project Done
Shows how much space was freed after compaction.
2020-07-27 16:50:18 -05:00
Leland Lucius
71ee696562 AUP3: UP-41 Opening a Saved project can get a "Project Recovered" message 2020-07-27 16:50:08 -05:00
Leland Lucius
e045da472a AUP3: UP-41 Opening a Saved project can get a "Project Recovered" message 2020-07-27 16:26:11 -05:00
Leland Lucius
da045082e5 AUP3: Add missing include
Why do I have SO much trouble with this?!?!?!?!  Grrrr......
2020-07-27 14:29:26 -05:00
Leland Lucius
e2d6e1cc24 AUP3: Update default/lastused path handling 2020-07-27 14:11:50 -05:00
Leland Lucius
757bc0b183 AUP: Fix duplicate shortcut 2020-07-26 13:18:10 -05:00
Leland Lucius
eb7da50b62 AUP3: Fix capitolization 2020-07-26 13:16:37 -05:00
Leland Lucius
12f0c6ee17 AUP3: Write doc to autosave table when compacting temporary projects
This keeps them temporary if they need to be recovered.
2020-07-26 03:09:12 -05:00
Leland Lucius
416d3f27de AUP3: Fix includes 2020-07-26 02:32:41 -05:00
Leland Lucius
6fef14dd08 AUP3: Rework Compact Project menu item and AutoRecoverDialog
Plus a couple of fixes that prevent leaving temporary files
after a project is loaded.
2020-07-26 02:01:37 -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
c1884349d5 AUP3: Don't delete sample blocks prematurely
The wrong sample blocks would be deleted at close in step 6:

1) New Project
2) Save and name
3) Import one stereo MP3 (about 6 minutes)
4) Save, close and re-open
5) Apply Bass and Treble to the track using real-time preview
6) Save, close and re-open
7) Message Failed to retrieve sample block
2020-07-25 20:03:23 -05:00
Leland Lucius
03762d0ca3 AUP3: Fix unopened project file 2020-07-25 18:47:30 -05:00
Leland Lucius
8f1e52c1c2 Fix Windows build when not using precompiled headers
Should we turn of precompiled headers in our Release builds???
2020-07-25 15:34:33 -05:00
Leland Lucius
e07320be9e Fix Windows build 2020-07-25 13:04:48 -05:00
Leland Lucius
71b4e932ad Fix debug/release builds on Mac 2020-07-25 03:40:15 -05:00
Leland Lucius
df8b7f52ce AUP3: Let's try using just the active projects list 2020-07-23 21:30:09 -05:00
Paul Licameli
a8fd6c6ce8
Preliminaries for grouped block deletion (#628)
* Change usage of AutoCommitTransaction::Rollback...

... It is the more useful pattern (as in many finally blocks) for the failure
path in the destructor (which rolls back) to be the default, but an explicit
call must inform it of success.

This corrects the early return paths in Effect::DoEffect().

Throw inconsistency exception if Commit() is called again after having been
called once, successfully

Also remove a friend declaration

* UndoManager's interface uses consistent 0-based indexing of states...

... Returned by GetCurrentState() and used by SetStateTo(),
GetLongDescription(), GetShortDescription()

* SampleBlock::GetBlockID is const

* Generalized function to visit sample blocks used in a TrackList...

... Eliminating some duplication; put it in WaveTrack, not Track, to avoid
a dependency cycle.

* Eliminate more repetition with BlockSpaceUsageAccumulator

* Function to delete all blocks of/not-of a given set in one command
2020-07-23 11:17:29 -05:00