Commit Graph

104 Commits

Author SHA1 Message Date
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
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
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 5aa5b0df6d Bug 2435 - Some menu commands greyed out when playback paused 2021-01-27 16:05:45 -06:00
James Crook ad85755101 Bug 2600 - Compact project followed by undo restores the last saved state
Uncompacted projects use up 50% or so more space than they could.
The 'compact' feature as currently implemented is confusing, and does
not merit inclusion given the lowish saving.  So featured disabled/removed.
2020-11-27 15:18:05 +00:00
Paul Licameli 716139494d Move details of OnCompact into ProjectFileManager...
... so it can use mLastSavedTracks
2020-11-17 17:10:43 -05:00
Paul Licameli 6fd04429b4 Remove an unnecessary #include 2020-09-29 10:06:44 -04:00
dofuuz f144a1f689
Improve 'Import Raw Data' dialog (#679)
* Add sample rate preset(combo box) to Import Raw Data dialog

* Import Raw Data dialog: Get default sample rate from Project Rate

* Fix build
2020-09-27 14:03:37 +01:00
James Crook fbaf5f7e97 Add 'Shift+A' shortcut for 'Compact' 2020-09-26 11:21:16 +01:00
Paul Licameli a2e22dc17b TransactionScope for performance also when abandoning redo states 2020-09-06 17:05:33 -04: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 70fd77e2dc AUP3: Don't prompt user if in batch mode 2020-08-12 08:23:41 -05:00
Leland Lucius 17b4919a2a Remove old CleanSpeech macro commands 2020-08-12 08:12:46 -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 4044bea36b AUP3: Fix build 2020-08-05 10:31:14 -05:00
Leland Lucius f92ca33a20 AUP3: Add help button and change wording 2020-08-05 09:55:07 -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 c29c6b1b15 AUP3: Small cleanup 2020-08-01 21:40:54 -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 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 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 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 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 5bc3ae659c AUP3: Added AUP3 importer and improved progress dialogs 2020-07-15 01:32:48 -05:00
Leland Lucius c04ed76b6b AUP3: Fixes a couple of reported issues
Add the missing "File -> Save Project -> Backup Project..." menu item

Allows "File -> Save Project -> Save Project" to save unmodified
projects.
2020-07-03 14:38:57 -05: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
Paul Licameli da93757401 Remove ImportRaw.h from other headers 2020-06-13 12:19:38 -04:00
Paul Licameli 66c5b76573 Simplify public interface of FileHistory 2020-05-26 10:47:47 -04:00
Paul Licameli 4d09705a73 Change XO to XXO in many more places, with no effects at all...
... because the two macros have the same expansion, and are both checked for
in the --keyword arguments passed to msgfmt by locale/update_po_files.sh.

This commit makes ONLY such changes, and comments in Internat.h.  It is big
but quite harmless.

The intention is to introduce a type distinction in a later release, by defining
XXO differently.  XXO is used where & characters in strings (for hotkeys of menu
items or control prompts) are permitted, XO where not.
2020-05-22 13:07:50 -04:00
Yuri Chornoivan d1ada5f08c Fix minor typos 2020-04-11 10:06:24 +01:00
Paul Licameli 4d43967add Restore commit c1d129ec98 2020-01-31 23:51:12 -05:00
Paul Licameli 2c25a37994 Revert to a465ce0046 2020-01-31 22:34:25 -05:00
Paul Licameli de08d9ff86 Menus.cpp no longer link dependent on top level menu definitions...
... They all use the registry.

(This link dependency was not shown in diagrams generated by scripts/graph.pl,
because it was not reflected in Menus.h but was done using extern declarations
within Menus.cpp.  That was a cheat, but it let all the other dependencies
be exposed in the graph and mitigated first.)
2020-01-31 21:12:36 -05:00
Paul Licameli a465ce0046 Naming of many menu sections, so they can be attachment sites 2020-01-31 21:12:36 -05:00
Paul Licameli 6b551d10c5 Fix indentations 2020-01-30 12:14:22 -05:00
Paul Licameli a84da3dee1 Remove Separator items from menu descriptions; use Section(...) 2020-01-30 12:12:48 -05:00
Paul Licameli 9639ba84f4 Reimplement commit 512c27d, fixing menus & shortcut keys on Windows 2020-01-29 13:39:19 -05:00
Paul Licameli 9093364b8c Fix other problems since commit f6e5696...
... Problem with static initialization order of ReservedCommandFlags, caused
wrong enablement of menu items (at least on Mac), such as Plot Spectrum or
Contrast enabled when there was no selection
2020-01-28 17:49:07 -05:00
Paul Licameli 393a098b69 Store a string identifier in each menu item...
... which is not yet used for anything.

It could be used to describe textual paths for attaching plug-in menu items.

Strings are only path local, not necessarily globally unique, and may be
left empty for separators and for groups that should be transparent to
path identification.

It may also be empty for certain sub-menus, such as those that group effects
according to the changeable criteria in Preferences.
2020-01-24 18:05:56 -05:00
Paul Licameli f6e5696146 Most functions defining menus compute once and cache the result...
... Except a few where project or plugin manager state or preferences are
needed to compute the items, so evaluation is delayed, often inside lambdas

Comment "Delayed evaluation" wherever there are exceptions
2020-01-24 18:05:56 -05:00
Paul Licameli 512c27d422 Simplify the FN macros in src/menus/*.cpp...
... Eliminate repetitious passing of the finder function into each of the
calls to Command and CommandGroup.
2020-01-24 18:05:56 -05:00
Paul Licameli c39718fa1f MacroCommands remembers a reference to project...
... Eliminating several GetActiveProject calls, notably including those where
we construct a CommandContext for executing commands.
2020-01-02 13:58:49 -05:00
Paul Licameli d23569ca10 Construct Exporter with project pointer, fewer GetActiveProject calls 2020-01-02 13:13:48 -05:00