mirror of https://github.com/odrling/Aegisub
Some minor tweaks to some dialogs.
Originally committed to SVN as r1737.
This commit is contained in:
parent
21a5412143
commit
bb711ef9f4
|
@ -147,6 +147,7 @@ DialogProperties::DialogProperties (wxWindow *parent)
|
||||||
// Button sizer
|
// Button sizer
|
||||||
wxStdDialogButtonSizer *ButtonSizer = new wxStdDialogButtonSizer();
|
wxStdDialogButtonSizer *ButtonSizer = new wxStdDialogButtonSizer();
|
||||||
ButtonSizer->AddButton(new wxButton(this,wxID_OK));
|
ButtonSizer->AddButton(new wxButton(this,wxID_OK));
|
||||||
|
ButtonSizer->AddButton(new wxButton(this,wxID_CANCEL));
|
||||||
ButtonSizer->AddButton(new HelpButton(this,_T("Properties")));
|
ButtonSizer->AddButton(new HelpButton(this,_T("Properties")));
|
||||||
ButtonSizer->Realize();
|
ButtonSizer->Realize();
|
||||||
|
|
||||||
|
|
|
@ -112,6 +112,9 @@ DialogSpellChecker::DialogSpellChecker(wxFrame *parent)
|
||||||
topSizer->Add(replaceWord,1,wxEXPAND);
|
topSizer->Add(replaceWord,1,wxEXPAND);
|
||||||
topSizer->AddGrowableCol(1,1);
|
topSizer->AddGrowableCol(1,1);
|
||||||
|
|
||||||
|
// List
|
||||||
|
suggestList = new wxListBox(this,LIST_SUGGESTIONS,wxDefaultPosition,wxSize(300,150));
|
||||||
|
|
||||||
// Actions sizer
|
// Actions sizer
|
||||||
wxSizer *actionsSizer = new wxBoxSizer(wxVERTICAL);
|
wxSizer *actionsSizer = new wxBoxSizer(wxVERTICAL);
|
||||||
actionsSizer->Add(new wxButton(this,BUTTON_REPLACE,_("Replace")),0,wxEXPAND | wxBOTTOM,5);
|
actionsSizer->Add(new wxButton(this,BUTTON_REPLACE,_("Replace")),0,wxEXPAND | wxBOTTOM,5);
|
||||||
|
@ -123,7 +126,6 @@ DialogSpellChecker::DialogSpellChecker(wxFrame *parent)
|
||||||
actionsSizer->AddStretchSpacer(1);
|
actionsSizer->AddStretchSpacer(1);
|
||||||
|
|
||||||
// Bottom sizer
|
// Bottom sizer
|
||||||
suggestList = new wxListBox(this,LIST_SUGGESTIONS,wxDefaultPosition,wxSize(300,150));
|
|
||||||
language = new wxComboBox(this,LIST_LANGUAGES,_T(""),wxDefaultPosition,wxDefaultSize,langNames,wxCB_DROPDOWN | wxCB_READONLY);
|
language = new wxComboBox(this,LIST_LANGUAGES,_T(""),wxDefaultPosition,wxDefaultSize,langNames,wxCB_DROPDOWN | wxCB_READONLY);
|
||||||
language->SetSelection(curLangPos);
|
language->SetSelection(curLangPos);
|
||||||
wxFlexGridSizer *botSizer = new wxFlexGridSizer(2,2,5,5);
|
wxFlexGridSizer *botSizer = new wxFlexGridSizer(2,2,5,5);
|
||||||
|
|
|
@ -115,12 +115,12 @@ wxDialog (parent, -1, _("Styling assistant"), wxDefaultPosition, wxDefaultSize,
|
||||||
|
|
||||||
// Button sizer
|
// Button sizer
|
||||||
wxStdDialogButtonSizer *ButtonSizer = new wxStdDialogButtonSizer();
|
wxStdDialogButtonSizer *ButtonSizer = new wxStdDialogButtonSizer();
|
||||||
ButtonSizer->AddButton(new wxButton(this,wxID_OK));
|
|
||||||
wxButton *PlayButton = new wxButton(this,BUTTON_PLAY,_("Play Audio"));
|
wxButton *PlayButton = new wxButton(this,BUTTON_PLAY,_("Play Audio"));
|
||||||
PlayButton->Enable(audio->loaded);
|
PlayButton->Enable(audio->loaded);
|
||||||
ButtonSizer->AddButton(PlayButton);
|
ButtonSizer->AddButton(PlayButton);
|
||||||
|
ButtonSizer->AddButton(new wxButton(this,wxID_CANCEL));
|
||||||
ButtonSizer->AddButton(new HelpButton(this,_T("Styling Assistant")));
|
ButtonSizer->AddButton(new HelpButton(this,_T("Styling Assistant")));
|
||||||
ButtonSizer->SetNegativeButton(PlayButton);
|
ButtonSizer->SetAffirmativeButton(PlayButton);
|
||||||
ButtonSizer->Realize();
|
ButtonSizer->Realize();
|
||||||
|
|
||||||
// Main sizer
|
// Main sizer
|
||||||
|
|
Loading…
Reference in New Issue