Paul Licameli
75996a851c
ShuttleGui::AddChoice and TieChoice take TranslatableStrings
2019-12-23 15:35:47 -05:00
Paul Licameli
1537930195
DiscoverPluginsAtPath reports error as TranslatableString
2019-12-20 22:06:18 -05:00
Paul Licameli
d8c2610d88
TranslatableString in AudacityCommand::MessageBox, Effect::MessageBox
2019-12-20 21:32:47 -05:00
Paul Licameli
1b726f4f09
More TranslatableString in dialog wrapper classes...
...
... All of the dialog names, and the messages for File and directory dialog
wrappers
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
618fee21ec
TranslatableString for ComponentInterface::GetDescription()
2019-12-16 14:21:57 -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
Paul Licameli
9a609fe1fe
TranslatableString in ProgressDialog
2019-12-14 01:48:15 -05:00
Paul Licameli
15260c2c95
TranslatableString can store a context and format arguments...
...
... Format arguments are substituted into the translation of the msgid, which
may not be known at the time the format arguments are captured (because locale
may change). This allows TranslatableString with arguments to be constructed
at static initialization time.
There is also a special "verbatim" or null context which makes no translations
of msgids.
There is not yet any use of other contexts besides default or null.
2019-12-05 11:34:06 -05:00
Paul Licameli
ca70cc940f
Don't concatenate ":" onto user-visible strings...
...
... include it in the msgid intead, to get appropriate translations. For
instance some locales use the same character but prefer to insert a space
before it.
2019-12-04 16:19:07 -05:00
Paul Licameli
96291c5476
Remove second argument of AddWindow(), use Position() instead
2019-12-02 22:01:22 -05:00
Paul Licameli
b5ee7676fd
Rename ShuttleGui::SetSizeHints, chain-call it like other methods...
...
... And rewrite some other existing calls to SetMinSize
2019-12-02 19:35:06 -05:00
Paul Licameli
c72dbf5b51
Define and use ShuttleGui::Focus
2019-12-02 17:26:40 -05:00
Paul Licameli
1bfbfb9640
ShuttleGui::Style analogous to other functions
2019-12-02 17:23:34 -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
1d32824e02
Define and use ShuttleGui::Validator
2019-12-02 11:21:40 -05:00
Paul Licameli
72df562c4a
Conversion of TranslatableString to wxString is private
2019-12-01 18:17:57 -05:00
Paul Licameli
b351eabf47
ComponentInterfaceSymbol contains TranslatableString
2019-12-01 18:08:56 -05:00
Paul Licameli
e4a7c9ba5b
Uses of TranslatableString as value of XO macro...
...
... It is not implicitly convertible from wxString, compelling many uses of
the new type to fix compilation.
2019-12-01 18:05:20 -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
e3d9fd95ab
If track has multiple views, pass a list in 'VIEW property to Nyquist...
...
... this makes no difference to any of the .ny plug-ins now in the project,
which only ever test whether the view type is NIL, signifying preview
2019-11-23 15:24:16 -05:00
James Crook
20772c995d
Bug 2137 - Nyquist: Assert when receiving multibyte characters
2019-07-16 13:59:59 +01:00
Paul Licameli
fa6b5dea88
Generalize WaveTrackView::GetDisplay to return multiple values...
...
... something better might be done in Nyquist Lisp, where we still pass a
single value
2019-07-10 10:19:04 -04:00
Paul Licameli
6ccca16a75
Move display type from WaveTrack to WaveTrackView
2019-07-09 20:09:59 -04:00
Paul Licameli
a6e2ca0aa8
Move some enums into new files WaveTrackViewConstants.* ...
...
... freeing TracksPrefs from the second largest s.c.c. which is now only 20
2019-06-22 21:46:32 -04:00
Paul Licameli
aa5f9550bd
LabelTrackView, not LabelTrack, handles focus changes when adding
2019-06-20 10:47:25 -04:00
Paul Licameli
05efeeb5bd
New files for ProjectSettings
2019-06-03 01:13:13 -04:00
Paul Licameli
dd10e00a2d
New attached structure ProjectSettings stores rate, snap-to, et al.
2019-06-02 14:42:00 -04:00
Paul Licameli
b25d3ad344
Limit access to global array of open projects & simplify iterations
2019-05-30 01:55:25 -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
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
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
78a1263163
Move ShuttleGetDefinition to its own files...
...
... so Shuttle need not include CommandTargets.h
2019-05-18 15:10:07 -04:00
Paul Licameli
4a4f8ebe4e
Move language setting and event from AudacityApp.h to GUIPrefs.h
2019-05-17 16:29:04 -04:00
Paul Licameli
a1ff74b5bb
Move AudacityPathList & utilities from AudacityApp.h to FileNames.h
2019-05-17 16:29:03 -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
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
fe1be2b6a8
Revert "2096: Windows & Mac high quality Change Pitch/Tempo preview"
...
This reverts commit fe22b2ae228ebd79f1ea0161bd33eb4ef2a47bf1.
2019-04-20 12:37:22 -04:00
David Bailes
fe22b2ae22
2096: Windows & Mac high quality Change Pitch/Tempo preview
...
Problem:
Preview plays the original, and removes the selection.
This appears to have been caused by the commit: 0aad028
Fix: revert that commit. Note that in the #ifdef EXPERIMENTAL_SPECTRAL_EDITING code has not been reinstated.
I have not looked at why the commit caused the problem, just reverted it.
2019-04-17 10:48:56 +01: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
e2c5444c1d
Move class HtmlTextHelpDialog out of header
2019-03-31 14:58:33 -04:00
Paul Licameli
4e9c3cfb5f
Remove wx/{dc,tokenzr,tglbtn,statusbr,simplebook}.h from *.h
2019-03-29 06:29:35 -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
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
7766d9a192
AddCheckBox takes a bool for initial state, not string
2019-03-27 12:58:40 -04:00
Paul Licameli
6ce24d3cd8
Utilities to get current app language & reset it to default...
...
... Renaming "InitLang" to "SetLang", then reusing the name "InitLang"
2019-03-27 12:29:18 -04:00