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
0247329077
Remove eIs(Getting|Saving)ViaShuttle enum values...
...
... Because:
1 They weren't used
2 The branches selected by them were wrongly passing user-visible prompt strings
to DoDataShuttle, which elsewhere takes a preference path (this is an error that
could have been detected and avoided if there weren't naked wxString arguments)
3 Without those branches, the affected Tie... functions become more parallel to
other ShuttleGui member functions, which might later be unified into fewer
functions
2019-12-23 15:35:21 -05:00
Paul Licameli
027a5ca32e
ShuttleGui static boxes can wrap long text
2019-12-18 10:43:15 -05:00
Paul Licameli
7d38500ecf
ShuttleGui::AddSpace takes prop argument...
...
... This will be needed to rewrite EffectRack
2019-12-10 09:58:39 -05:00
Paul Licameli
f825c32a50
ShuttleGui can specify orientation and minimum size...
...
... This will be needed for rewrite of EffectUIHost dialog
2019-12-10 09:58:39 -05:00
Paul Licameli
3b69a038c8
Add ShuttleGui functions to make simple book controls...
...
... analogous to StartNotebook() and EndNotebook()
This will be needed to rewrite export dialogs
2019-12-10 09:58:39 -05:00
Paul Licameli
1802b9316e
ShuttleGui::AddStandardButtons takes more general wxWindow *extra...
...
... This will be needed to rewrite the EffectUIHost dialog
2019-12-10 09:58:39 -05:00
Paul Licameli
930c21dc2a
Define and use ShuttleGui::Size
2019-12-02 22:02:46 -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
64a96e6f01
Define and use ShuttleGui::ConnectRoot...
...
... And corrected improper connections in HistoryWindow and ContrastDialog,
improper because they got called with the wrong this pointer, to
the control instead of the dialog. But that was harmless anyway because the
handlers did not use this.
2019-12-02 19:35:01 -05:00
Paul Licameli
d98e41aad1
Define and use ShuttleGui::Disable; remove EnableCtrl
2019-12-02 17:54:07 -05:00
Paul Licameli
c72dbf5b51
Define and use ShuttleGui::Focus
2019-12-02 17:26:40 -05:00
Paul Licameli
30d375d6fa
Remove style argument from ShuttleGui::AddCombo & AddListBox...
...
... use the Style() chain-call instead, as needed
2019-12-02 17:26:38 -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
3ea0209e5c
Define and use ShuttleGui::ToolTip
2019-12-02 11:41:51 -05:00
Paul Licameli
1d32824e02
Define and use ShuttleGui::Validator
2019-12-02 11:21:40 -05:00
Paul Licameli
8ea137e041
Define struct DialogDefinition::Item, to be filled in
2019-12-01 22:21:49 -05:00
Paul Licameli
b351eabf47
ComponentInterfaceSymbol contains TranslatableString
2019-12-01 18:08:56 -05:00
Paul Licameli
3704336a58
Fix dangling pointer bug, caused assertion opening Preferences
2019-12-01 13:50:36 -05:00
Paul Licameli
ae353fe61f
Specify list control columns and styles all in one call
2019-11-28 14:24:44 -05:00
Paul Licameli
17ee2478bc
An overload of AddChoice specifying selected as string value
2019-11-28 14:24:44 -05:00
Paul Licameli
089b46ab64
Specify initial radio button state in ShuttleGui method arguments
2019-11-28 14:24:44 -05:00
Paul Licameli
bca0afd52e
ShuttleGui lets you specify whether a button is default. Use that.
2019-11-28 14:24:43 -05:00
Paul Licameli
cd4266792a
Comment how AddStandardButtons sets default; remove redundant call
2019-11-28 14:24:43 -05:00
Paul Licameli
6bff718248
Comments about wxALL where there are position arguments in ShuttleGui
2019-11-28 14:24:43 -05:00
Paul Licameli
1cd795aadb
Comments about the purpose of SettingName for radio buttons
2019-11-28 14:24:43 -05:00
Paul Licameli
43a8725044
comment
2019-11-28 14:24:43 -05:00
Paul Licameli
c67a47e3e6
ShuttleGuiBase::mpDlg is const
2019-11-28 14:24:43 -05:00
Paul Licameli
f20e4786e9
Replace ShuttleGui::SetNoMatchSelector with arg in TieNumberAsChoice
2019-11-28 14:24:43 -05:00
Paul Licameli
d4ffbe0d68
Group setting path & default value arguments of Tie...() functions
2019-11-28 13:26:23 -05:00
Paul Licameli
7675d51044
Separate function TieIntegerTextBox...
...
... For the cases in which there is an associated preference variable which
should be a whole number
2019-11-28 13:18:33 -05:00
Paul Licameli
7fbe97c5ca
Privatize, rename ShuttleGuiBase member fns (those using WrappedType)
2019-11-28 12:54:57 -05:00
Paul Licameli
9b41741074
Remove an overload of TieChoice; use more ChoiceSetting instead...
...
... this also corrects some mis-specifications of the default choice, formerly
by string instead of array position
2019-11-27 13:38:16 -05:00
Paul Licameli
5638d6844f
Eliminate an overload of TieChoice...
...
... with one exception (/FileFormats/FFmpegAACProfile),
the calls are replaced with TieNumberAsChoice.
Some unfortunately repetitious string tables are a small price in exchange for
reduced confusion in ShuttleGui.cpp
Untranslated strings are passed to TieNumberAsChoice, which is wrong, but that
will be made right in the next commit when we change the implementation of that
function
2019-11-27 13:38:16 -05:00
Paul Licameli
dc3e872ca6
Reimplement TieNumberAsChoice and fix some comments...
...
... Make the array of integer choices optional, and call through to the
non-deprecated overload of TieChoice, which uses strings.
In 2.3.3 this function is only used in the Quality preferences dialog.
2019-11-27 13:38:06 -05:00
Paul Licameli
0493aaccee
TieChoice needs only const reference to ChoiceSetting
2019-11-27 13:37:26 -05:00
Paul Licameli
e008a44022
Pass ChoiceSetting to StartRadioButtonGroup...
...
... and we don't need to pass strings to TieRadioButton.
This removes some repetition of string literals in import/export, which is
good too.
2019-11-27 13:37:25 -05:00
Paul Licameli
c5e21ead18
Rename, privatize, combine ShuttleGui members related to radios
2019-11-27 13:37:25 -05:00
Paul Licameli
c8a8c6a3fa
Remove radio button function overloads made unused in previous commit
2019-11-27 13:37:24 -05:00
Paul Licameli
7ad6897598
Move class ShuttleGuiGetDefinition near its only point of use
2019-05-16 12:30:27 -04:00
Paul Licameli
ad26c35d3c
Fix Tab key navigation on Mac in presence of static boxes
2019-05-01 07:50:34 +01: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
1649e3669e
Rename EnumSetting -> ChoiceSetting, EncodedEnumSetting -> EnumSetting
2019-04-07 16:42:11 -04:00
Paul Licameli
5e2b8cd825
Remove wx/{treebook,textbuf,srchctrl,socket}.h from *.h
2019-03-30 13:32:44 -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
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