Paul Licameli
c46fbd919c
rename function as AudacityProject::GetProjectName...
...
... So it does not hide inherited wxWindow::GetName().
And make it const.
2019-04-26 14:10:05 -04:00
Paul Licameli
8f55d55869
Remove two call-through functions to TrackPanel from AudacityProject
2019-04-26 14:05:57 -04:00
Paul Licameli
2b32884596
Remove some unnecessary toolbar related declarations, fix comments
2019-04-23 17:02:04 -04:00
Paul Licameli
34f318cd41
Remove wx/{imaglist,generic/dragimgg,gauge,dynarray}.h from *.h
2019-03-30 12:51:12 -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
1a49362e3c
Fix Linux build
2019-03-30 11:13:44 -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
bcc2e0d13b
Remove wx/frame.h, wx/sizer.h, wx/access.h from headers
2019-03-28 11:21:15 -04:00
Paul Licameli
cfde442bcd
Remove a few small member functions from AudacityProject
2019-03-27 13:32:54 -04:00
Paul Licameli
69962f62d3
Remove AudacityProject::GetScreenEndTime
2019-03-27 13:32:54 -04:00
Paul Licameli
ca5bb78abe
Remove AudacityProject::GetSelection
2019-03-27 13:32:54 -04:00
Paul Licameli
4018b191b4
Remove Get/Set functions for selection bounds from AudacityProject
2019-03-27 13:32:53 -04:00
Paul Licameli
c3aad2e026
Remove wx/event.h from headers
2019-03-27 04:36:51 -04:00
Paul Licameli
71adb89342
Remove non-UI functions in TrackPanelListener
2019-03-27 04:06:15 -04:00
Paul Licameli
40b4361732
Remove wx/arrstr.h from headers
2019-03-26 12:41:44 -04:00
Paul Licameli
02db402b54
Bug2064: ESC key should abort drags in time ruler on Linux...
...
... Reimplement the ESC key handling in TrackPanel and time ruler on all
operating systems so that it does not rely on the focused window, but instead
uses the application-wide event filter.
This includes reversion of 9491605cfc
2019-03-18 12:43:14 -04:00
Paul Licameli
173a300427
Include nothing before Audacity.h, as comments say we should...
...
... and remove some duplicated inclusions
2019-03-17 21:41:39 -04:00
Paul Licameli
71036bed01
Remove PluginManager.h from other headers
2019-03-17 15:05:19 -04:00
Paul Licameli
3dba70120c
CommandManager, MenuManager don't use Lyrics.h, MixerBoard.h ...
...
... instead define new base classes in src/commands that those other
windows can inherit. The classes have nothing but a virtual destructor. This
lets CommandManager use dynamic_cast to detect the special windows.
See commits cbfde23 and 68e4bf6 which added the #include directives
2019-03-16 13:10:59 -04:00
Paul Licameli
1bcb7c20a5
Remove some nested #include from Project.h
2019-03-16 13:09:54 -04:00
Paul Licameli
f7162d3326
OverlayPanel uses weak_ptr to Overlay, which simplifies other dtors
2019-03-16 08:21:03 -04:00
Paul Licameli
a30000cf74
Use type aliases FilePath, FilePaths...
...
... for wxString and wxArrayStringEx, holding file paths (absolute or relative,
directory or plain file); to be replaced later with different types
(not yet using std::vector, becase of some uses of wxArrayString::Index with
two arguments)
2019-03-15 15:18:11 -04:00
Paul Licameli
135c2a71ce
Replace "" and wxEmptyString with {} in default argument values
2019-03-15 15:18:11 -04:00
Paul Licameli
dfeb7e18aa
Type aliases for some uses of ComponentInterfaceSymbol...
...
... to be replaced later with distinct types
Also changing FamilyId => Family in function names
Also NumericFormatId => NumericFormatSymbol
2019-03-14 17:26:20 -04:00
Paul Licameli
50f8579475
Move AudacityProject::DoTrackMute and DoTrackSolo...
...
... also fixed the bug that muting and soloing from the mixer board did not
update accessibility.
2018-10-28 16:50:01 -04:00
Paul Licameli
51c3541716
Move AudacityProject::RemoveTrack
2018-10-28 16:45:38 -04:00
Paul Licameli
83f504e30f
Move AudacityProject::SetTrackPan and SetTrackGain
2018-10-28 16:43:20 -04:00
Paul Licameli
edd23e2634
Move AudacityProject::GetZoomOf*
2018-10-28 16:43:17 -04:00
Paul Licameli
b2ea8ab6e9
Move AudacityProject::EditByLabel and EditClipboardByLabel
2018-10-28 16:30:39 -04:00
Paul Licameli
95cca91eb1
Move AudacityProject::Clear
2018-10-28 16:26:03 -04:00
Paul Licameli
012ea76132
Moved mixer board update code out of class AudacityProject...
...
... And we don't need GetMixerBoard() any more
2018-10-27 18:01:09 -04:00
Paul Licameli
1fc4c5724e
MixerBoard no longer needs update at undo push...
...
... it does that sooner, and ony when needed, when relevant track data really
change, by listening to the TrackList.
2018-10-27 18:01:08 -04:00
Paul Licameli
96d104cb38
Lyrics panel listens; AudacityProject not responsible for updating it
2018-10-27 12:52:06 -04:00
Paul Licameli
193c4ae4c2
Remove unused things and obsolete comments in Menus.* ...
...
... This includes all that remained of MenuCommandHandler
2018-10-24 12:20:31 -04:00
Paul Licameli
800f6500ba
No more member definitions of AudacityProject inside Menus.cpp
2018-10-24 12:16:46 -04:00
Paul Licameli
280e8d9bac
Some machinery to add more menu handler object classes...
...
...without adding linkage dependencies to AudacityProject constructor
2018-10-24 11:02:33 -04:00
James Crook
b7abde8527
Fix class/struct warning.
2018-10-19 17:56:53 +01:00
Paul Licameli
16ab48079b
Don't include CommandManager.h in other headers
2018-10-18 09:25:14 -04:00
Paul Licameli
ce9f2e2538
Include Menus.h directly, only where needed, not via Project.h
2018-10-16 16:45:26 -04:00
Paul Licameli
fc6570646d
MenuCommandHandler is not a base class of MenuManager...
...
... This forces a better placement of state variables in the appropriate
classes.
In future perhaps, MenuManager should be splintered into several classes, one
for each of the main toolbar menus.
2018-10-16 13:01:22 +01:00
James Crook
26086a4142
Split MenuCommandHandler into three classes.
...
Menus.cpp is over 10,000 lines. The main point of the split is to make possible a new .cpp file for MenuCreator, which is responsible for the creation of the menu bar, and which contains the near 2,000 line function MenuCreator::CreateMenusAndCommands()
The menu handlers are also (better) separated from the menu management.
2018-10-13 21:38:34 +01:00
Paul Licameli
0c0c2c0d1e
Rewrite iteration over visible tracks in TrackArtist...
...
... also eliminating AudacityProject::GetFirstVisible.
2018-10-01 13:41:51 -04:00
James Crook
e7c4e8bde9
Help intellisense find MenuCommandHandlers
...
Once the struct definition is in the Menus.h file, intellisense can find the definitions of the functions.
2018-09-29 22:56:34 +01:00
Paul Licameli
e456b53344
Add and remove some private: and public:
2018-09-29 12:48:52 -04:00
Paul Licameli
9481587fa8
Move menu handling functions out of class AudacityProject
2018-09-29 12:10:27 -04:00
Paul Licameli
544c3b9770
spelling in comments
2018-09-04 23:04:18 -04:00
James Crook
3bb48a21df
Bug 1932 - (Residual) Fix stopping behavior with Play-At-Speed.
...
1. The rate actually used by the sound card now sets the stopping sample number.
2. The tolerance in the 'stop position' is additionally trimmed to 20 samples.
2018-08-19 10:37:43 +01:00
Paul Licameli
b502d88285
Better enum value name
2018-08-06 21:58:41 -04:00
Paul Licameli
74efec9d39
Bug1756 (shouldn't lose record status message) refixed differently...
...
... Don't let the status message during recording, about remaining disk
capacity, get lost when mouse moves across TrackPanel hit targets or toolbar
buttons.
But, will show those other messages too, only for limited time if the
mouse stops moving; then restore the capacity message.
Needed to correct for unreliability of wxTimer in AudacityProject, as with the
TrackPanel timer, by restarting it sometimes.
The intention evident in previous code was to refresh messages once every 3
seconds. Should be better realized now.
See also the prior fix at b49e467412
2018-08-06 20:09:39 -04:00