Paul Licameli
caa312ab7b
Remove some unneeded #includes and forward declarations
2020-11-20 13:47:47 -05:00
Paul Licameli
490271f259
Define UndoManager::VisitStates
2020-11-18 17:07:00 -05:00
Paul Licameli
d49a888b98
Remove some unnecessary #includes
2020-11-18 17:06:12 -05:00
Paul Licameli
716139494d
Move details of OnCompact into ProjectFileManager...
...
... so it can use mLastSavedTracks
2020-11-17 17:10:43 -05:00
David Bailes
eb1104445c
Bug 2580: move to label commands in unexpected menu
...
Fix:
In the Extra menu, move the move to label commands from the play-at-speed sub menu to the selection sub menu.
2020-11-09 10:40:29 +00:00
David Bailes
c563d5cc40
Clip left/right commands: rename and move
...
The clip left/right commands can now time shift clips, notetracks, and labels.
So:
1. Rename them Time Shift Left/Right
2. Move them the to edit sub menu of the extra menu, which is more appropriate than the Cursor sub menu.
2020-10-09 10:46:47 +01:00
Paul Licameli
7186aaf11c
Remove unused function
2020-10-07 19:01:35 -04:00
David Bailes
cce2c7b883
Bugs 2558 2559: After clip left/right, selection start can be wrong
...
Problem:
In DoClipMove() in ClipMenus.cpp, there are a couple of problems in the code for the adjustment of the new value t0 due to potential rounding errors:
1. The code uses the start and end of intervals, and these values are not updated after the move.
2. It's assumed that the same correction is valid for all track types.
Fix:
Implement an adjustment which depends on track type, and does not use the start and end values of intervals.
2020-10-07 13:27:09 +01:00
Paul Licameli
aabcc24cdb
Fix crash in clip shifting menu items
2020-09-29 13:28:44 -04: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
James Crook
e3bd5cfa61
Add: Help button for "Copying stereo audio into a mono track error"
2020-09-21 15:32:56 +01:00
Paul Licameli
6e0b5b690a
More control over HitTest behavior moved into the Track Shifter classes
2020-09-20 00:31:39 -04:00
Paul Licameli
f204ee3192
Always pass ViewInfo to TrackShiftHandle::HitTest
2020-09-20 00:30:07 -04:00
Paul Licameli
637ce894c1
Pass project to TrackShifter factory, which LabelTrackShifter will need
2020-09-20 00:30:06 -04:00
Paul Licameli
c98285c544
New method of TrackShifter, simplify ClipMoveState::DoSlideHorizontal...
...
... Also the clips to shift within a WaveTrack are tested all at once, more
simply
2020-09-20 00:26:47 -04:00
Paul Licameli
2b06115b32
Clip Left/Right general enough for note tracks: one less TypeSwitch!
2020-09-19 19:16:46 -04:00
Paul Licameli
4f159a7629
New method of TrackShifter moves a calculation out of ClipMenus
2020-09-19 19:16:45 -04:00
Paul Licameli
bc7f527a3b
Lower mCapturedTrack into ClipMoveState, simplify one member function
2020-09-19 19:16:45 -04:00
Paul Licameli
329221b392
Lower more into Init(); ClipMenus uses ClipMoveState opaquely
2020-09-19 19:16:45 -04:00
Paul Licameli
00f761eb5e
TrackShifters responsible for snapping; remove a TrackList::Visit...
...
... Also dependency of TimeShiftHandle on LabelTrack, lately added, is removed
2020-09-19 19:16:45 -04:00
Paul Licameli
eb22892064
TrackShifters decide what parts move or stay fixed...
...
... for now redundantly with the older logic.
Also shorten a function name to Init
2020-09-19 19:16:43 -04:00
James Crook
5407f92c0c
Fix Mac Build.
...
Brackets for XO were in the wrong place.
2020-09-14 18:56:57 +01:00
James Crook
caf4eadb97
Help button for many warning messages; Restored warning icon.
...
The error icon was gone because we are now using the ErrorDialog, which didn't have it. So added back explicitly. I decided to go with wxART_WARNING rather than wxART_ERROR because nearly all of these present as warnings.
2020-09-14 17:43:28 +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
542a9a8d98
[Bug 2522] In Macros, Record New Track and Play with a selection do not wait for completion.
2020-08-15 18:03:09 -05:00
Leland Lucius
9bfbf1570b
Bug 2522 - In Macros, Record New Track and Play with a selection do not wait for completion.
2020-08-15 16:39:33 -05:00
Leland Lucius
2987896470
Bug 2516 - Windows: "SAVE" button in "Audio / MIDI Device Info" displays "OK"
2020-08-12 14:23:27 -05:00
Leland Lucius
69859eebe4
Play and record now wait in Macros if a regions exists.
2020-08-12 13:56:53 -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
2437aa15be
Bug 2491 - Reset Configuration does not reset Extended Import preferences
...
Better solution...
2020-08-09 01:09:15 -05:00
Leland Lucius
3dba0eeaa1
Bug 2491 - Reset Configuration does not reset Extended Import preferences
2020-08-08 22:39:21 -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