Paul Licameli
82663892dc
Accessors to get the project window...
...
... as a preparation for splitting up class AudacityProject.
Use ProjectWindow as an alias for AudacityProject, and fetch it from the
project with a static member function, where certain of its services are used;
pretending they are not the same class.
Use global accessor functions to get wxFrame from the project where only
wxFrame's member functions are needed, so there will be less dependency on
ProjectWindow when it becomes a distinct class.
2019-05-28 23:18:13 -04:00
Paul Licameli
ae18f2f220
Construction of default play options moved out of AudacityProject
2019-05-28 19:33:21 -04:00
Paul Licameli
35892fc869
Rearrange setting time & freq formats for numeric controls...
...
... Just one low-level function for each that simply sets; just one high-level
function for each that also pushes notifications; and to make that work,
toolbars need some rewriting to avoid recursion when the notifications they
post come back to them.
2019-05-28 19:23:42 -04:00
Paul Licameli
37e176dc82
Don't set color index of temp tracks only pasted into other tracks
2019-05-26 11:29:12 -04:00
Paul Licameli
ac65d817ac
Remove an #include
2019-05-25 05:59:50 -04:00
Paul Licameli
3416b5bad6
Toolbars accessed by static Get() functions, not through AudacityProject
2019-05-24 16:08:29 -04:00
Paul Licameli
7bb71257ed
static AdornedRulerPanel::Get()...
...
... not member functions of AudacityProject
2019-05-24 15:48:16 -04:00
Paul Licameli
d1ad8f55e0
static TrackPanel::Get()...
...
... not member functions of AudacityProject
2019-05-24 15:46:30 -04:00
Paul Licameli
0923bc19a9
static MenuManager::Get()...
...
... not member functions of AudacityProject
2019-05-23 16:34:47 -04:00
Paul Licameli
2f0a76ed10
static Scrubber::Get()...
...
... not member functions of AudacityProject
2019-05-23 16:01:10 -04:00
Paul Licameli
15dd230ee1
static ToolManager::Get()...
...
... not member functions of AudacityProject
2019-05-23 15:24:28 -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
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
d5b2507af9
Remove unneeded inclusions of Project.h, no cycles broken
2019-05-22 10:02:24 -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
dccb716f39
enum PlayMode tells whether there's cut preview; out of Project.h
2019-05-20 21:38:12 -04:00
Paul Licameli
22f6ee789c
Move function from AudacityProject to TransportActions
2019-05-20 21:38:10 -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
db8c4c5e5a
Global keyboard capture handling into new files, better comments...
...
... and break its compile dependency on CommandManager.h by letting it install
callbacks.
This also removes Objective-C mixed code from CommmandManager.
This also eliminates four inclusions of Project.h!
Capture handler state is also global, not per project, though the
CommandManager's callbacks still do depend on the active project.
2019-05-18 15:14:18 -04:00
Paul Licameli
236c8ed51e
Move version keys from AudacityApp to AudacityPrefs
2019-05-17 16:29:04 -04:00
Paul Licameli
ddaadfb7e7
Remove NumericTextCtrl.h from other headers or comment why you can't
2019-05-16 19:01:00 -04:00
Paul Licameli
6c57948d8f
Remove unnecessary #include-s from .cpp files...
...
... Unnecessary because transitively included.
But each .cpp file still includes its own .h file near the top to ensure
that it compiles indenendently, even if it is reincluded transitively later.
2019-05-16 17:21:00 -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
f6adeed47b
Remove some unnecessary #include directives
2019-05-15 14:14:18 -04:00
James Crook
2366075fd4
Bug 2098 - Transport toolbar - no hovertext tooltip for the Pause button
2019-04-25 16:34:04 +01:00
Paul Licameli
2b32884596
Remove some unnecessary toolbar related declarations, fix comments
2019-04-23 17:02:04 -04:00
Paul Licameli
2e1fe80601
Remove or comment wxPanelWrapper.h in headers
2019-04-04 10:13:23 -04:00
Paul Licameli
4714d72b3f
Can't remove remaining wx headers from other headers, comment that
2019-03-31 01:41:16 -04:00
Paul Licameli
2e05d2d884
Remove wx/{radiobut,ownerdrw,menuitem,menu,listbox}.h from *.h
2019-03-30 12:15:53 -04:00
Paul Licameli
c982cf6a41
Remove wx/intl.h, wx/brush.h, wx/bitmap.h from headers
2019-03-30 11:45:20 -04:00
Paul Licameli
870c08ac06
Remove wx/{log.h, image.h, listctrl.h, utils.h} from headers
2019-03-30 11:21:51 -04:00
Paul Licameli
08c16b6eb7
Remove wx/{html/htmlwin,fileconf,dragimag,debug,dcclient}.h from *.h
2019-03-30 10:53:22 -04:00
Paul Licameli
ec2f26e48c
Remove wx/pen.h, wx/thread.h from headers
2019-03-30 10:17:18 -04:00
Paul Licameli
de60edc62f
Remove wx/{app,statbmp,spinctrl,scrolbar,dynlib,dcmemory}.h from *.h
2019-03-30 07:57:37 -04:00
Paul Licameli
d71a54b4e9
Remove wx/checkbox.h from headers
2019-03-28 12:55:34 -04:00
Paul Licameli
bcc2e0d13b
Remove wx/frame.h, wx/sizer.h, wx/access.h from headers
2019-03-28 11:21:15 -04:00
Paul Licameli
803d8b9559
Remove wx/filename.h, wx/choice.h, wxFileNameWrapper.h from headers
2019-03-28 03:12:42 -04:00
Paul Licameli
b8aea73c91
Remove wx/stattext.h from headers
2019-03-27 14:33:46 -04:00
Paul Licameli
4018b191b4
Remove Get/Set functions for selection bounds from AudacityProject
2019-03-27 13:32:53 -04:00
Paul Licameli
a915a510bd
include <wx/setup.h> in all files where wxUSE* macros are used...
...
... even if it's redundant; improving on what was done at b47e2f9
2019-03-23 14:56:02 -04:00
Paul Licameli
875f38cfa5
Correct mistake in DECLARE_CLASS macro...
...
... though it didn't really matter: the macro argument is in fact unused
2019-03-23 02:52:59 -04:00
Paul Licameli
577b70ddb6
correct a comment
2019-03-23 02:48:48 -04:00
Paul Licameli
f45300f032
This is only comments, in files where USE_ macros are tested...
...
... following the comment convention used in the preceding commit.
2019-03-22 12:38:30 -04:00
Paul Licameli
d261ea2558
Define and use utility template ValueIterator...
...
... generalizing the fix of commit 7591891 to other cases, making the iterators
safe for adaptation with std::reverse_iterator should the need ever arise
2019-03-18 08:44:40 -04:00
Paul Licameli
5e7d41ec07
Each .cpp/.mm file includes corresponding header before any other...
...
... except Audacity.h
This forces us to make each header contain all forward declarations or nested
headers that it requires, rather than depend on context.
2019-03-17 22:54:52 -04:00