Paul Licameli
ece7bd888d
Eliminate GetActiveProject in TimerRecordDialog
2020-01-02 13:11:17 -05:00
Paul Licameli
aa39f9ade2
Rewrite FileNames::SelectFile using FileTypes...
...
... And more uniformity in the descriptions of file types used in more than
one place
Also fixes missing translations in VSTEffect.cpp
2019-12-29 15:35:04 -05:00
Paul Licameli
1887928fe2
ProjectManager::GetHoursMinsString returns TranslatableString
2019-12-28 23:49:18 -05:00
Paul Licameli
e0d57a0e6b
Use TranslatableString in TimerRecordPathCtrl
2019-12-28 23:49:17 -05:00
Paul Licameli
d1637c22c0
TranslatableString for explicit prompts and units in ShuttleGui
2019-12-23 19:22:03 -05:00
Paul Licameli
747c35645a
TranslatableString for checkbox captions
2019-12-23 19:15:34 -05:00
Paul Licameli
b404eb7800
TranslatableString for static text box captions
2019-12-23 18:52:37 -05:00
Paul Licameli
21e7b9f2de
TranslatableString for prompts of choice controls
2019-12-23 15:39:49 -05:00
Paul Licameli
1944ac2040
TranslatableString for labels of ShuttleGui buttons
2019-12-23 15:35:48 -05:00
Paul Licameli
75996a851c
ShuttleGui::AddChoice and TieChoice take TranslatableStrings
2019-12-23 15:35:47 -05:00
Paul Licameli
e56fb4ebcf
Fix Windows build, it broke at e3ea93a
2019-12-21 11:22:01 -05:00
Paul Licameli
dc39f22442
AudacityMessageBox takes TranslatableString message and caption
2019-12-20 21:32:50 -05:00
Paul Licameli
ae42397d64
FileNames::SelectFile takes TranslatableString for message
2019-12-20 13:40:20 -05:00
Paul Licameli
71e9e38083
AudacityMessageDialog takes TranslatableString message and caption
2019-12-20 13:40:20 -05:00
Paul Licameli
e3ea93a624
Define and use function Verbatim...
...
... in cases of "TranslatableString" that are not really translated.
This makes it easier to scan the code for such unusual constructions of
TranslatableString, distinct from mere mentions of the TranslatableString type.
2019-12-19 22:49:23 -05:00
Paul Licameli
53ee9c9800
TranslatableString for titles, names, labels of wxDialogWrappers...
...
... Found one missed translation in CommandTargets.cpp
2019-12-16 10:58:05 -05:00
James Crook
fea8af541e
Fix Windows build.
2019-12-14 10:37:19 +00:00
Paul Licameli
9a609fe1fe
TranslatableString in ProgressDialog
2019-12-14 01:48:15 -05:00
Paul Licameli
9eeef4713d
Define and use ShuttleGui::Name and NameSuffix...
...
... For radio buttons, the name will default to the same as the prompt if not
otherwise specified
2019-12-02 16:55:46 -05:00
Paul Licameli
0b6618e491
Use TranslatableString in NumericTextCtrl...
...
... Fixing a minor error in TimerRecordDialog, where translation of format was
done too soon
2019-12-01 18:08:56 -05:00
Paul Licameli
f846c25806
Rewrite AddChoice and TieChoice calls...
...
... either lifting or inlining array-of-string computations, so fewer statements
are mixed among ShuttleGui method calls
2019-11-29 15:16:48 -05:00
Paul Licameli
2c840a75c5
Remove short functions from namespace TransportActions
2019-07-03 16:52:19 -04:00
Paul Licameli
7fc3c5e7a7
Move namespace TransportMenus into ProjectAudioManager.cpp ...
...
... not the best thing for the long term, but hidden dependencies on
TransportMenus.cpp are eliminated
Tying CommonCommandFlags again into the big component, which is now 26
2019-06-25 00:14:53 -04:00
Paul Licameli
27eeb1035c
New files for ProjectFileManager
2019-06-09 12:10:51 -04:00
Paul Licameli
4bf3365af4
Split class ProjectFileManager from ProjectFileIO...
...
... The former will handle File menu items, and the choosing of file paths to
write; the latter will handle the XML contents and do auto-save. Auto-save is
a lower-level thing that must be done in many places whenever undo history
is pushed or modified.
2019-06-09 12:10:50 -04:00
Paul Licameli
3fc961f74a
New files for ProjectFileIO
2019-06-03 01:24:01 -04:00
Paul Licameli
7b8bfd1d02
New attached structure ProjectFileIO handles load and save
2019-06-03 01:21:15 -04:00
Paul Licameli
fee5582826
New files for ProjectManager
2019-06-03 01:21:12 -04:00
Paul Licameli
4274d44ab7
New attached structure ProjectManager handles project lifetime...
...
... that is, a factory function, open, close, import, undo/redo/rollback.
Also the callbacks from AudioIO, which need to invoke undo history push when
recording stops.
It is meant as a high-level class using several of the other things attached
to the project, while AudacityProject will be a low level class acting mostly
as just the container of the attached structures.
2019-06-03 01:18:12 -04:00
Paul Licameli
14ab93a01f
static TrackList::Get()...
...
... not member function of AudacityProject
2019-05-23 12:58:47 -04:00
Paul Licameli
b3257c56da
Remove AudacityProject::ExportFromTimerRecording
2019-05-20 21:38:10 -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
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
f6adeed47b
Remove some unnecessary #include directives
2019-05-15 14:14:18 -04:00
Paul Licameli
0b733eed3f
Remove (or comment) ProgressDialog.h in headers...
...
... For ImportPlugin, use unique_ptr not Maybe to hold it, and take constructors
out-of-line.
2019-04-04 09:47:57 -04:00
Paul Licameli
ef98cfd74f
Remove wx/{docview,datetime,datectrl,cursor}.h from *.h
2019-03-30 13:32:44 -04:00
Paul Licameli
685a45d1de
Remove wx/{convauto,cmdline,clipbrd,calctrl}.h from *.h
2019-03-30 13:10:16 -04:00
Paul Licameli
3760db9dff
Remove wx/wxchar.h from headers
2019-03-29 15:56:54 -04:00
Paul Licameli
d71a54b4e9
Remove wx/checkbox.h from headers
2019-03-28 12:55:34 -04:00
Paul Licameli
70e88782fe
Remove wx/{grid,font,ffile,colour,button,bmpbuttn}.h from headers
2019-03-28 12:27:10 -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
7766d9a192
AddCheckBox takes a bool for initial state, not string
2019-03-27 12:58:40 -04:00
Paul Licameli
75e44df43d
Make windows inside wxStaticBox its children, not its siblings...
...
... as is recommended by wxWidgets documentation for version 2.9.1 and later:
http://docs.wxwidgets.org/3.0/classwx_static_box.html
2019-03-26 13:05:22 -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
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
1bcb7c20a5
Remove some nested #include from Project.h
2019-03-16 13:09:54 -04:00
Paul Licameli
dd86346156
ShuttlegGUI: const wxArrayStringEx & arguments, not wxArrayString *...
...
... for choice, combo, and listbox; reference allows passing temporaries,
eliminating need for some variables to hold the string arrays.
2019-03-16 07:17:21 -04:00
Paul Licameli
dcd82b8ef5
ShuttleGui::AddChoice takes int to specify selection, with a default...
...
... This makes things brief and where non-default avoids some repetition of
literal strings
2019-03-15 23:35:13 -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
06b3b42794
Remove unnecessary initializers for empty wxString
2019-03-15 15:18:11 -04:00