Paul Licameli
2c25a37994
Revert to a465ce0046
2020-01-31 22:34:25 -05:00
Paul Licameli
d9d3f95570
Several nonmodal top level window tools register their menu items...
...
... removing link dependencies on them from src/menus, so they are now suitable
for moving out into modules.
They are:
Mixer Board
Karaoke (also called Lyrics)
History
Contrast
Plot Spectrum
Their header files are now no longer included anywhere but in their own
implementation files!
2020-01-31 21:12:36 -05:00
Paul Licameli
2570b56176
Rename Maybe and its members more like std::optional of C++17
2020-01-19 11:38:12 -05:00
Paul Licameli
6eb0f3aca1
Move SpectrumAnalyst into its own files...
...
... It's the pure calculation common to the Plot Spectrum window and
to spectral editing
This removes some dependencies on FreqWindow
2020-01-18 13:38:19 -05:00
Paul Licameli
54542c532f
Eliminate GetActiveProject from FreqWindow.cpp
2020-01-07 16:16:18 -05:00
Paul Licameli
7bce0a643b
Bug2281: Revert changes to FreqWindow.cpp at f0b7583
, don't crash
2020-01-07 13:11:24 -05:00
Paul Licameli
f0b75832b4
Remove uses of GetActiveProject in some dialogs
2020-01-04 13:55:34 -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
6e14d2e56c
RulerPanel uses TranslatableString for units string...
...
... also fixing missed translation of "k" in spectrum vertical ruler
2019-12-28 23:49:18 -05:00
Paul Licameli
f932d2d550
Rewrite export of data in FreqWindow.cpp
2019-12-26 22:11:45 -05:00
Paul Licameli
d2eb085bd6
Fix export of Plot Spectrum on Mac
2019-12-26 21:38:38 -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
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
65b6d5aad5
i18n of names of FFT window functions (transliterations, maybe)...
...
... and fix format string in FreqWindow.cpp that wasn't really translated
2019-12-21 12:48:24 -05:00
Paul Licameli
86e9288bbd
return pitch names as TranslatableString
2019-12-21 12:45:24 -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
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
0cf90d65e6
S.GetParent() for all windows passed to ShuttleGui::AddWindow()...
...
... Verified that this makes no real change.
2019-12-10 09:58:38 -05:00
James Crook
5a3e9cd063
Fix dialog naming
...
For nicer Doxygen results, we need consistency in naming of classes.
Dialag classes are now called SomethingDialog.
2019-12-06 10:39:07 +00: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
7e1c469d7f
Remove some unnecessary #include directives
2019-07-09 12:45:50 -04:00
Steve Daulton
c5a1dad275
Fix bug 387
...
Mac and Linux (correctly) allow files to be saved with an arbitrary
file extension, or no file extension at all. For the exported file
to be visible in the export dialog, the dialog must include an optional
wildcard for "All files".
2019-06-09 19:25:59 +01: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
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
c8d95e1117
Bug2105: Enable TAB to sliders on Mac...
...
... I think this is a defect in wxWidgets, but one we can work around with a
simple wrapper class around wxSlider overriding one method.
To make the fix complete, change all occurrences of "safenew wxSlider"
but the one in ShuttleGui.cpp covers most cases
2019-04-30 21:50:22 +01: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
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
7766d9a192
AddCheckBox takes a bool for initial state, not string
2019-03-27 12:58:40 -04:00
Paul Licameli
b18f825ee8
Remove wx/slider.h from headers
2019-03-27 10:35:59 -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
906e55f047
Experimental.h in all .h or .cpp files that directly use EXPERIMENTALs...
...
... except Audacity.h; and in no others.
Do so even if Experimental.h gets multiply included, as in both the .h and
.cpp files.
This makes it easier to do a text scan to be sure there are no unintended quiet
changes of meaning because of omission of Experimental.h when the flag is
an enabled one.
Also move inclusions of Experimental.h earlier.
Also don't require Experimental.h to be preceded by Audacity.h to define
EXPERIMENTAL_MIDI_OUT correctly.
2019-03-17 22:54:00 -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
50074f2cfe
Replace comparisons against "" with empty()
2019-03-14 13:23:41 -04:00
Paul Licameli
6d5bc21d50
Define and use wxArrayStringEx...
...
reducing verbosity where there were repeated calls of Add(), and defining
move construction and assignment for efficient returns from functions
2019-03-10 16:23:44 -04:00
Paul Licameli
2db49dc1f0
Use standard library style members of wxArrayString (and wxString) ...
...
... which will make it easier to change the types of those containers to
std::vectors of other string-like classes
for wxString,
IsEmpty => empty
Clear => clear
Alloc => reserve
for wxArrayString,
Count => size
GetCount => size
IsEmpty => empty
Add => push_back
Clear => clear
Empty => clear
Sort => std::sort (only with default comparator)
SetCount => resize
Last => back
Item => operator []
Alloc => reserve
2019-03-10 14:43:57 -04:00
Paul Licameli
303553ae4e
Take class AdornedRulerPanel out of src/widgets...
...
... It's not a utility widget like RulerPanel. It has a lot of application
specific logic in it.
2018-10-24 15:04:41 -04:00
scootergrisen
b4f7946e9b
Remove some double space
2018-10-14 10:42:01 +01:00
Paul Licameli
968d63d5fd
Rewrite many iterations over tracks and channels in various places
2018-10-01 13:35:51 -04:00