Some minor tweaks to some dialogs.

Originally committed to SVN as r1737.
This commit is contained in:
Rodrigo Braz Monteiro 2008-01-16 01:01:40 +00:00
parent 21a5412143
commit bb711ef9f4
3 changed files with 6 additions and 3 deletions

View file

@ -147,6 +147,7 @@ DialogProperties::DialogProperties (wxWindow *parent)
// Button sizer
wxStdDialogButtonSizer *ButtonSizer = new wxStdDialogButtonSizer();
ButtonSizer->AddButton(new wxButton(this,wxID_OK));
ButtonSizer->AddButton(new wxButton(this,wxID_CANCEL));
ButtonSizer->AddButton(new HelpButton(this,_T("Properties")));
ButtonSizer->Realize();

View file

@ -112,6 +112,9 @@ DialogSpellChecker::DialogSpellChecker(wxFrame *parent)
topSizer->Add(replaceWord,1,wxEXPAND);
topSizer->AddGrowableCol(1,1);
// List
suggestList = new wxListBox(this,LIST_SUGGESTIONS,wxDefaultPosition,wxSize(300,150));
// Actions sizer
wxSizer *actionsSizer = new wxBoxSizer(wxVERTICAL);
actionsSizer->Add(new wxButton(this,BUTTON_REPLACE,_("Replace")),0,wxEXPAND | wxBOTTOM,5);
@ -123,7 +126,6 @@ DialogSpellChecker::DialogSpellChecker(wxFrame *parent)
actionsSizer->AddStretchSpacer(1);
// 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->SetSelection(curLangPos);
wxFlexGridSizer *botSizer = new wxFlexGridSizer(2,2,5,5);

View file

@ -115,12 +115,12 @@ wxDialog (parent, -1, _("Styling assistant"), wxDefaultPosition, wxDefaultSize,
// Button sizer
wxStdDialogButtonSizer *ButtonSizer = new wxStdDialogButtonSizer();
ButtonSizer->AddButton(new wxButton(this,wxID_OK));
wxButton *PlayButton = new wxButton(this,BUTTON_PLAY,_("Play Audio"));
PlayButton->Enable(audio->loaded);
ButtonSizer->AddButton(PlayButton);
ButtonSizer->AddButton(new wxButton(this,wxID_CANCEL));
ButtonSizer->AddButton(new HelpButton(this,_T("Styling Assistant")));
ButtonSizer->SetNegativeButton(PlayButton);
ButtonSizer->SetAffirmativeButton(PlayButton);
ButtonSizer->Realize();
// Main sizer