Paul Licameli
15dd230ee1
static ToolManager::Get()...
...
... not member functions of AudacityProject
2019-05-23 15:24:28 -04:00
Paul Licameli
68e25f3b7d
static SelectionState::Get()...
...
... not member functions of AudacityProject
2019-05-23 14:11:05 -04:00
Paul Licameli
c1c0030013
static Tags::Get...
...
... not member functions of AudacityProject
2019-05-23 14:08:09 -04:00
Paul Licameli
116ff70756
static TrackFactory::Get()...
...
... not member functions of AudacityProject
2019-05-23 13:55:14 -04:00
Paul Licameli
4ba4d0978b
static CommandManager::Get()...
...
... not member functions of AudacityProject
2019-05-23 13:17:29 -04:00
Paul Licameli
805af452a4
static DirManager::Get()...
...
... not member functions of AudacityProject
This puts DirManager.cpp and four others back into the big strongly connected
component of link dependencies. They will break out again when Project.cpp
becomes a low-level file.
2019-05-23 13:10:19 -04:00
Paul Licameli
72b7c776a8
static UndoManager::Get()...
...
... not member functions of AudacityProject
2019-05-23 12:58:47 -04:00
Paul Licameli
b5a57682b6
static ViewInfo::Get() and ZoomInfo::Get()...
...
... not member functions of AudacityProject
2019-05-23 12:58:47 -04:00
Paul Licameli
14ab93a01f
static TrackList::Get()...
...
... not member function of AudacityProject
2019-05-23 12:58:47 -04:00
Paul Licameli
1ed9338e6f
Use wxWeakRef to avoid a dangling pointer...
...
... as was done before for input meter at 12983e1
2019-05-23 12:54:12 -04:00
Paul Licameli
469247e7ef
Remove a comment
2019-05-22 10:36:18 -04:00
Paul Licameli
d5b2507af9
Remove unneeded inclusions of Project.h, no cycles broken
2019-05-22 10:02:24 -04:00
Paul Licameli
af3e7a09d5
Compilability of old Noise Removal
2019-05-22 10:00:30 -04:00
Paul Licameli
8de7528e27
CommandManager.cpp does not depend on AudacityHeaders.h
2019-05-22 09:59:56 -04:00
David Bailes
14601660d9
Bug 2113: When the label editor closes, no control is the focus.
...
This was caused by commit: 7c0d05f
Problems:
1. LabelDialog::Show() is called both when dialog opens and closes, so SetFocus() was being called when the dialog closed.
2. The call for SetFocus() was only needed for mac and linux, and it would have been better to #ifdef it to prevent unforeseen bugs on other platforms.
This commits fixes the two issues.
2019-05-22 11:43:20 +01:00
Paul Licameli
e09c17d0c5
Some compilability fixes for Equalization48x.cpp
2019-05-21 19:03:42 -04:00
Paul Licameli
a1f08ad4e0
Fix Windows build
2019-05-21 18:15:03 -04:00
Paul Licameli
af039f19ff
Generalize means for decoupled code to add data to core structures...
...
... Generalizing what was first done at 280e8d9 for certain menu command
handlers.
Allow core data structures to host data attached by other code, on which it
need have no compilation or link dependencies.
2019-05-21 10:08:56 -04:00
Paul Licameli
5d839c3e97
Lower the image updating for theme into GUIPrefs::Commit()...
...
... weakening dependency of PrefsDialog.cpp on particular preference page
implementations
2019-05-20 21:38:13 -04:00
Paul Licameli
62899a32f4
All things with an UpdatePrefs() message listen for an event...
...
... Still to do, improve the handling of updates of only subsets of the prefs
2019-05-20 21:38:13 -04:00
Paul Licameli
cc635e0498
Emit an event when the preferences dialog closes
2019-05-20 21:38:13 -04:00
Paul Licameli
dccb716f39
enum PlayMode tells whether there's cut preview; out of Project.h
2019-05-20 21:38:12 -04:00
Paul Licameli
0bd9bb3b90
Some steps of ResetProjectToEmpty into a new function
2019-05-20 21:38:11 -04:00
Paul Licameli
582b0ee40c
Repeated code moved into new AudacityProject::CloseLock()
2019-05-20 21:38:11 -04:00
Paul Licameli
24259413be
Move UpdatePrefs() later in ctor of AudacityProject...
...
... and assume non-null for certain sub-windows
2019-05-20 21:38:11 -04:00
Paul Licameli
b3257c56da
Remove AudacityProject::ExportFromTimerRecording
2019-05-20 21:38:10 -04:00
Paul Licameli
9c75ebe7f7
TrackPanel subscribes directly to ODManager for events...
...
... cutting middleman AudacityProject out
2019-05-20 21:38:10 -04:00
Paul Licameli
22f6ee789c
Move function from AudacityProject to TransportActions
2019-05-20 21:38:10 -04:00
Paul Licameli
d2717cac21
Move functions from AudacityProject to SelectActions
2019-05-20 21:38:09 -04:00
Paul Licameli
5ed9fa972b
AudacityProject::mIsBeingDeleted was redundant
2019-05-20 21:38:09 -04:00
Paul Licameli
9f377b3b75
Prepare to decouple factories for TP & Ruler into their own sources
2019-05-20 21:38:09 -04:00
Paul Licameli
735860c856
Remove the TrackPanelFactory...
...
... It was part of an attempt at decoupling that will be superseded by other
techniques
2019-05-20 21:38:08 -04:00
Paul Licameli
ada9f2baad
Remove AudacityProject::IsCapturing()...
...
... because it was in fact tracking global state, not any per-project state.
2019-05-20 21:38:08 -04:00
Paul Licameli
227fb315ea
Drawing sequence for overlays independent of insertion call sequence
2019-05-20 21:38:08 -04:00
Paul Licameli
f123ea5faa
Missing alias dialog tracking is non-intrusive in class AudacityProject
2019-05-20 21:38:08 -04:00
Paul Licameli
e227d4dfb1
Remove some unnecessary declarations in class AudacityProject
2019-05-20 21:38:07 -04:00
Paul Licameli
390af96796
Dispatch read of top-level project XML tags with a table of functions...
...
... which makes Project.cpp a bit less dependent on some details of other
classes
This puts Tags.cpp back into the big strongly connected component of the
dependency graph. That will be remedied later when Project.cpp becomes a
low-level file
2019-05-20 21:38:07 -04:00
Paul Licameli
a3edf9f6d7
New AudacityProject::ReadProjectFile for some steps of project opening
2019-05-20 21:38:06 -04:00
Paul Licameli
02d5e6c597
Fix crash in script pipe caused by commit 9eb9104
2019-05-20 19:46:14 -04:00
Paul Licameli
4c3729040f
comments
2019-05-20 19:46:14 -04:00
Paul Licameli
f86403378b
Move AudacityMessageBox to its own files...
...
... breaking cycles among low-level files introduced by 273ba9f
2019-05-20 14:48:36 -04:00
Paul Licameli
273ba9f64d
Fix Windows build...
...
... unfortunately inclusion of ErrorDialog.h in FileNames.h ties nine files
into a low-level s.c.c.
2019-05-20 13:49:26 -04:00
Paul Licameli
7b51653b36
Sequence.cpp does not depend on ODDecodeBlockFile.cpp...
...
... This frees Sequence.cpp from dependency cycles
2019-05-18 20:32:19 -04:00
Paul Licameli
0832bccc7b
DirManager.cpp has fewer dependencies...
...
... To append files during recording or import, it doesn't depend on the
subclasses of BlockFile, instead taking a factory function to which it gives
the filename; and the choice of factory function is also lifted up through the
level of class Sequence which is just above DirManager.
This frees four files from dependency cycles, including DirManager.cpp but not
yet Sequence.cpp
2019-05-18 20:32:19 -04:00
Paul Licameli
ca0fb190e6
Register factory functions with DirManager to interpret XML tags...
...
... Removes direct dependency on ODManager.h and some BlockFile subclasses,
but does not yet break any dependency cycles
2019-05-18 20:32:19 -04:00
Paul Licameli
81d4c217e6
Rewrite DirManager::EnsureSafeFileName without downcasts...
...
... weakening but not yet eliminating dependency on BlockFile subclasses
2019-05-18 20:32:19 -04:00
Paul Licameli
d46bb29e3a
DirManager.cpp does not depend on Sequence.cpp...
...
... This does not yet break any dependency cycles
2019-05-18 20:32:19 -04:00
Paul Licameli
9b32fc7a2b
DirManager.cpp doesn't depend on Clipboard...
...
... Locate other outstanding DirManagers by other means, a global tracking
array.
This does not yet break any dependency cycles.
2019-05-18 20:32:19 -04:00
Paul Licameli
ce27977ff2
BlockFile.cpp does not depend on MissingAliasFileDialog.cpp ...
...
... instead use a hook function to call back when it is discovered that a
block file is missing.
This frees three files from dependency cycles
2019-05-18 20:32:19 -04:00
Paul Licameli
96ffc424cf
PluginManager.cpp does not depend on EffectManager.cpp...
...
... Taking PluginManager.cpp and ModuleManager.cpp out of other dependency
cycles, though still in a small cycle with each other
2019-05-18 20:32:19 -04:00