Fix more cases of controls in static boxes that don't use ShuttleGui...
... as in commit f7644c7
This commit is contained in:
parent
bcc2e0d13b
commit
0b160faecc
|
@ -338,14 +338,13 @@ void ScreenFrame::PopulateOrExchange(ShuttleGui & S)
|
||||||
S.Id(IdMainWindowLarge).AddButton(_("Resize Large"));
|
S.Id(IdMainWindowLarge).AddButton(_("Resize Large"));
|
||||||
/* i18n-hint: Bkgnd is short for background and appears on a small button
|
/* i18n-hint: Bkgnd is short for background and appears on a small button
|
||||||
* It is OK to just translate this item as if it said 'Blue' */
|
* It is OK to just translate this item as if it said 'Blue' */
|
||||||
wxASSERT(p); // To justify safenew
|
mBlue = safenew wxToggleButton(S.GetParent(),
|
||||||
mBlue = safenew wxToggleButton(p,
|
|
||||||
IdToggleBackgroundBlue,
|
IdToggleBackgroundBlue,
|
||||||
_("Blue Bkgnd"));
|
_("Blue Bkgnd"));
|
||||||
S.AddWindow(mBlue);
|
S.AddWindow(mBlue);
|
||||||
/* i18n-hint: Bkgnd is short for background and appears on a small button
|
/* i18n-hint: Bkgnd is short for background and appears on a small button
|
||||||
* It is OK to just translate this item as if it said 'White' */
|
* It is OK to just translate this item as if it said 'White' */
|
||||||
mWhite = safenew wxToggleButton(p,
|
mWhite = safenew wxToggleButton(S.GetParent(),
|
||||||
IdToggleBackgroundWhite,
|
IdToggleBackgroundWhite,
|
||||||
_("White Bkgnd"));
|
_("White Bkgnd"));
|
||||||
S.AddWindow(mWhite);
|
S.AddWindow(mWhite);
|
||||||
|
|
|
@ -55,7 +55,7 @@ void TimeDialog::PopulateOrExchange(ShuttleGui &S)
|
||||||
{
|
{
|
||||||
mTimeCtrl = safenew
|
mTimeCtrl = safenew
|
||||||
NumericTextCtrl(
|
NumericTextCtrl(
|
||||||
this, wxID_ANY,
|
S.GetParent(), wxID_ANY,
|
||||||
NumericConverter::TIME,
|
NumericConverter::TIME,
|
||||||
mFormat,
|
mFormat,
|
||||||
mTime,
|
mTime,
|
||||||
|
|
|
@ -224,7 +224,7 @@ ContrastDialog::ContrastDialog(wxWindow * parent, wxWindowID id,
|
||||||
if (S.GetMode() == eIsCreating)
|
if (S.GetMode() == eIsCreating)
|
||||||
{
|
{
|
||||||
mForegroundStartT = safenew
|
mForegroundStartT = safenew
|
||||||
NumericTextCtrl(this, ID_FOREGROUNDSTART_T,
|
NumericTextCtrl(S.GetParent(), ID_FOREGROUNDSTART_T,
|
||||||
NumericConverter::TIME,
|
NumericConverter::TIME,
|
||||||
NumericConverter::HundredthsFormat(),
|
NumericConverter::HundredthsFormat(),
|
||||||
0.0,
|
0.0,
|
||||||
|
@ -237,7 +237,7 @@ ContrastDialog::ContrastDialog(wxWindow * parent, wxWindowID id,
|
||||||
if (S.GetMode() == eIsCreating)
|
if (S.GetMode() == eIsCreating)
|
||||||
{
|
{
|
||||||
mForegroundEndT = safenew
|
mForegroundEndT = safenew
|
||||||
NumericTextCtrl(this, ID_FOREGROUNDEND_T,
|
NumericTextCtrl(S.GetParent(), ID_FOREGROUNDEND_T,
|
||||||
NumericConverter::TIME,
|
NumericConverter::TIME,
|
||||||
NumericConverter::HundredthsFormat(),
|
NumericConverter::HundredthsFormat(),
|
||||||
0.0,
|
0.0,
|
||||||
|
@ -256,7 +256,7 @@ ContrastDialog::ContrastDialog(wxWindow * parent, wxWindowID id,
|
||||||
if (S.GetMode() == eIsCreating)
|
if (S.GetMode() == eIsCreating)
|
||||||
{
|
{
|
||||||
mBackgroundStartT = safenew
|
mBackgroundStartT = safenew
|
||||||
NumericTextCtrl(this, ID_BACKGROUNDSTART_T,
|
NumericTextCtrl(S.GetParent(), ID_BACKGROUNDSTART_T,
|
||||||
NumericConverter::TIME,
|
NumericConverter::TIME,
|
||||||
NumericConverter::HundredthsFormat(),
|
NumericConverter::HundredthsFormat(),
|
||||||
0.0,
|
0.0,
|
||||||
|
@ -269,7 +269,7 @@ ContrastDialog::ContrastDialog(wxWindow * parent, wxWindowID id,
|
||||||
if (S.GetMode() == eIsCreating)
|
if (S.GetMode() == eIsCreating)
|
||||||
{
|
{
|
||||||
mBackgroundEndT = safenew
|
mBackgroundEndT = safenew
|
||||||
NumericTextCtrl(this, ID_BACKGROUNDEND_T,
|
NumericTextCtrl(S.GetParent(), ID_BACKGROUNDEND_T,
|
||||||
NumericConverter::TIME,
|
NumericConverter::TIME,
|
||||||
NumericConverter::HundredthsFormat(),
|
NumericConverter::HundredthsFormat(),
|
||||||
0.0,
|
0.0,
|
||||||
|
|
|
@ -150,7 +150,7 @@ void KeyConfigPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||||
{
|
{
|
||||||
S.SetBorder(2);
|
S.SetBorder(2);
|
||||||
|
|
||||||
wxStaticBox* staticBox = S.StartStatic(_("Key Bindings"), 1);
|
S.StartStatic(_("Key Bindings"), 1);
|
||||||
{
|
{
|
||||||
S.StartMultiColumn(3, wxEXPAND);
|
S.StartMultiColumn(3, wxEXPAND);
|
||||||
{
|
{
|
||||||
|
@ -189,7 +189,7 @@ void KeyConfigPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||||
mFilterLabel = S.AddVariableText(_("Searc&h:"));
|
mFilterLabel = S.AddVariableText(_("Searc&h:"));
|
||||||
|
|
||||||
if (!mFilter) {
|
if (!mFilter) {
|
||||||
mFilter = safenew wxTextCtrl(staticBox,
|
mFilter = safenew wxTextCtrl(S.GetParent(),
|
||||||
FilterID,
|
FilterID,
|
||||||
wxT(""),
|
wxT(""),
|
||||||
wxDefaultPosition,
|
wxDefaultPosition,
|
||||||
|
@ -217,7 +217,7 @@ void KeyConfigPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||||
S.StartHorizontalLay(wxEXPAND, 1);
|
S.StartHorizontalLay(wxEXPAND, 1);
|
||||||
{
|
{
|
||||||
if (!mView) {
|
if (!mView) {
|
||||||
mView = safenew KeyView(staticBox, CommandsListID);
|
mView = safenew KeyView(S.GetParent(), CommandsListID);
|
||||||
mView->SetName(_("Bindings"));
|
mView->SetName(_("Bindings"));
|
||||||
}
|
}
|
||||||
S.Prop(true);
|
S.Prop(true);
|
||||||
|
@ -228,7 +228,7 @@ void KeyConfigPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||||
S.StartThreeColumn();
|
S.StartThreeColumn();
|
||||||
{
|
{
|
||||||
if (!mKey) {
|
if (!mKey) {
|
||||||
mKey = safenew wxTextCtrl(staticBox,
|
mKey = safenew wxTextCtrl(S.GetParent(),
|
||||||
CurrentComboID,
|
CurrentComboID,
|
||||||
wxT(""),
|
wxT(""),
|
||||||
wxDefaultPosition,
|
wxDefaultPosition,
|
||||||
|
|
Loading…
Reference in New Issue