Paul Licameli
4eb220e7b9
TranslatableString for undo history short and long descriptions
2019-12-16 14:19:23 -05:00
Paul Licameli
2a06b10884
Make objects attached to AudacityProject non-copyable...
...
... except for Tags; also some uses of final and explicit
This caught a mistake in Scrubbing.cpp
2019-07-02 19:51:24 -04:00
Paul Licameli
705b4b28e7
Register a predicate with each CommandFlag bit
2019-06-14 00:31:15 -04:00
Paul Licameli
e17fc86c23
Distinguish another undo event type
2019-06-12 11:08:50 -04:00
Paul Licameli
06c9896498
Send Undo events through the project, not the UndoManager
2019-06-12 11:08:50 -04:00
Paul Licameli
72b7c776a8
static UndoManager::Get()...
...
... not member functions of AudacityProject
2019-05-23 12:58:47 -04:00
Paul Licameli
548192fcf3
Remove redundant #include-s from .h files...
...
Redundant, because transitively implied. But don't do this for inclusions of
Audacity.h or Experimental.h.
2019-05-16 14:58:34 -04:00
Paul Licameli
56f51d8176
Revert "Remove redundant #include-s from .h files..."
...
This reverts commit b7fe62d17067b4441530dd36b25052cea3ad44b5.
2019-05-16 14:33:55 -04:00
Paul Licameli
b7fe62d170
Remove redundant #include-s from .h files...
...
Redundant, because transitively implied. But don't do this for inclusions of
Audacity.h or Experimental.h.
2019-05-16 14:15:05 -04:00
Paul Licameli
c3aad2e026
Remove wx/event.h from headers
2019-03-27 04:36:51 -04:00
Paul Licameli
1d0247607a
Remove wx/string.h from headers
2019-03-26 11:33:55 -04:00
Paul Licameli
cee0d35da2
UndoManager emits events when state changes
2018-10-27 12:51:59 -04:00
Paul Licameli
4f7d308ca3
Some inversion of control flow when popping Undo state
2018-10-27 11:31:42 -04:00
Paul Licameli
9481587fa8
Move menu handling functions out of class AudacityProject
2018-09-29 12:10:27 -04:00
Paul Licameli
a9e7a7e5d5
movable_ptr(_with_deleter) -> std::unique_ptr
2018-05-10 00:56:37 -04:00
Paul Licameli
f0de38dec1
Scanned for bad naked new; found none; changed comments, used safenew
2017-07-23 09:35:01 -04:00
Paul Licameli
8bf3791edf
TrackList constructed only by factory function, to avoid more trouble
2017-07-14 21:55:32 -04:00
Paul Licameli
d210b18aad
Limit consolidation of undo items by other means
2017-05-24 00:23:25 -04:00
Paul Licameli
63ae687baf
Consolidation of Undo items not limited to three
2017-05-18 09:02:27 -04:00
Paul Licameli
93c0b5a92d
Add button to History dialog to clear the clipboard & space calc
2016-11-07 11:25:27 -05:00
Paul Licameli
c9bff2f0f4
BlockFile::GetSpaceUsage() returns an unsigned value
2016-09-06 12:39:57 -04:00
Paul Licameli
de75a00c10
Define movable_ptr and make_movable, use __AUDACITY_OLD_STD__ in fewer places
2016-03-25 20:27:25 -04:00
Leland Lucius
9dc9348127
Fixes bug #1344 (mac build)
...
In addition, the Xcode project can now build against the 10.6
or 10.7 SDKs. All that is needed is to change the SDK version
and the other settings will change automatically.
2016-03-07 00:29:26 -06:00
Paul Licameli
0c9deb398c
Fix mac build. No standard headers in Audacity.h.
2016-03-01 12:22:37 -05:00
Paul Licameli
e815090139
travis
2016-02-24 20:30:26 -05:00
Paul Licameli
88eeebcb8b
Undoing and redoing of Tags...
...
Use reference counting (in std::shared_ptr) to avoid replicating Tags with each
Undo state.
2016-02-24 19:25:39 -05:00
Paul Licameli
e12a060751
Define UndoState
2016-02-24 19:10:40 -05:00
Paul Licameli
a5b6c9fd8f
Add some const qualifiers; define TrackListConstIterator
2016-02-24 19:10:39 -05:00
Paul Licameli
a1c7b396b3
UndoStackElem has proper constructor and destructor; use std::vector
2016-02-24 19:10:36 -05:00
Paul Licameli
cd9bd79d83
Use an enumeration for UndoManager::PushState
2016-02-24 19:10:35 -05:00
Paul Licameli
9bf098c7d9
Sweep unnecessary wxString copies: rest
2016-02-23 02:15:56 -05:00
Paul Licameli
56e7653343
"delete"->"DELETE" in comments, easier to find remaining naked operator delete
2016-02-14 18:50:45 -05:00
Leland Lucius
4b9d81f228
Fix for bug #992 and add total space used to History
2015-05-30 15:56:46 -05:00
Leland Lucius
2457579091
Bug 765 - Delays using Edit commands and Draw Tool in long projects
...
A 4hr track used to take about 20s to cut a few samples. This is now significantly improved, to around 3s. Leland did this by
(a) moving the size calculation to when we examine the undo history, so it isn't slowing down the edits.
(b) in size calculation, using sizes that are cached rather than going to disk to find the sizes.
(c) writing the autosave file which is to an FFIle to a string first, i.e. using XMLStringWriter as a buffer for XMLFileWriter.
Step (c) may also make autosave marginally safer, as the risk of a partially updated autosave file is reduced.
2015-04-07 12:20:50 +01:00
james.k.crook@gmail.com
f5e593cc4c
Paul L's new SelectedRegion class replacing use of t0 and t1. Also LabelTrack.h no longer in TrackPanel.h includes.
...
This change is believed to be a direct refactoring that does not change functionality. It paves the way for more complex kinds of selection, such as selections involving frequency as well as time. It also reduces risk of left and right edges being swapped in future code using SelectedRegion, as the default is to swap on assignment if needed.
2014-10-05 17:10:09 +00:00
benjamin.drung@gmail.com
277932dccb
Remove trailing spaces.
2014-06-03 20:30:19 +00:00
martynshaw99
4ce2643d5f
Remove the
...
// Indentation settings for Vim and Emacs
etc. lines from all files, as Campbell's patch (except for other changes to Languages.cpp)
2013-09-24 00:14:37 +00:00
james.k.crook@gmail.com
74490b02c7
Bug:406 Amelioration of slowdown when editing labels with long audio.
2011-05-22 13:41:01 +00:00
v.audacity
f9be883b82
Made requests for bug reports consistently go to feedback@audacityteam.org and compile issues go to "Compling Audacity" board on the Forum rather than going to -devel. Removed some related code cruft.
2010-09-10 03:19:24 +00:00
v.audacity
39ad98b360
Calculate space usage for a state frame (UndoStackElem) in UndoManager::PushState, i.e., only when the UndoStackElem is created, rather than every time we open History Window. This should considerably speed up opening History Window when the stack is large (many frames and/or lots of data), and fix bug 196.
2010-08-07 00:26:38 +00:00
ra
e74978ba77
Locate and position the current Audacity source code, and clear a variety of old junk out of the way into junk-branches
2010-01-23 19:44:49 +00:00