| 936 |
|
|
| 937 |
|
EVT_RADIOBUTTON( NoSep_RadioButton, MainWindow::OnNoSepRadioButtonSelected ) |
| 938 |
|
|
| 939 |
< |
EVT_RADIOBUTTON( Separated_RadioButton, MainWindow::OnSeparatedRadioButtonSelected ) |
| 939 |
> |
EVT_RADIOBUTTON( Seperated_RadioButton, MainWindow::OnSeperatedRadioButtonSelected ) |
| 940 |
|
|
| 941 |
|
EVT_RADIOBUTTON( Complete_RadioButton, MainWindow::OnCompleteRadioButtonSelected ) |
| 942 |
|
|
| 1021 |
|
OptionsPanel = NULL; |
| 1022 |
|
SepRadio = NULL; |
| 1023 |
|
NoSepRadio = NULL; |
| 1024 |
< |
SeparatedRadio = NULL; |
| 1024 |
> |
SeperatedRadio = NULL; |
| 1025 |
|
CompleteRadio = NULL; |
| 1026 |
|
ReglobalizeButton = NULL; |
| 1027 |
|
////@end MainWindow member initialisation |
| 1038 |
|
void MainWindow::CreateControls() |
| 1039 |
|
{ |
| 1040 |
|
////@begin MainWindow content construction |
| 1041 |
+ |
// Generated by DialogBlocks, 31/05/2009 19:03:55 (unregistered) |
| 1042 |
+ |
|
| 1043 |
|
MainWindow* itemFrame1 = this; |
| 1044 |
|
|
| 1045 |
|
wxMenuBar* menuBar = new wxMenuBar; |
| 1125 |
|
itemStaticLine17->Show(false); |
| 1126 |
|
itemBoxSizer11->Add(itemStaticLine17, 0, wxGROW|wxALL, 5); |
| 1127 |
|
|
| 1128 |
< |
descriptionText = new wxTextCtrl( itemPanel10, Description_Text, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY|wxTE_RICH|wxTE_RICH2 ); |
| 1128 |
> |
descriptionText = new wxTextCtrl( itemPanel10, Description_Text, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY|wxTE_RICH|wxTE_AUTO_URL ); |
| 1129 |
|
descriptionText->SetName(_T("DescriptionName")); |
| 1130 |
|
descriptionText->SetBackgroundColour(wxColour(240, 240, 240)); |
| 1131 |
|
itemBoxSizer11->Add(descriptionText, 1, wxGROW|wxLEFT|wxRIGHT, 5); |
| 1142 |
|
wxBoxSizer* itemBoxSizer20 = new wxBoxSizer(wxHORIZONTAL); |
| 1143 |
|
itemBoxSizer2->Add(itemBoxSizer20, 0, wxGROW|wxALL, 0); |
| 1144 |
|
|
| 1145 |
< |
ProgressBar = new wxGauge( itemFrame1, ProgressBar_Gauge, 1000, wxDefaultPosition, wxDefaultSize, wxGA_SMOOTH ); |
| 1145 |
> |
ProgressBar = new wxGauge( itemFrame1, ProgressBar_Gauge, 1000, wxDefaultPosition, wxSize(-1, 30), wxGA_SMOOTH ); |
| 1146 |
|
ProgressBar->SetValue(0); |
| 1147 |
|
itemBoxSizer20->Add(ProgressBar, 1, wxGROW|wxALL, 0); |
| 1148 |
|
|
| 1149 |
< |
InstallButton = new wxButton( itemFrame1, Install_Button, _("Install!"), wxDefaultPosition, wxDefaultSize, 0 ); |
| 1149 |
> |
InstallButton = new wxButton( itemFrame1, Install_Button, _("Install!"), wxDefaultPosition, wxSize(-1, 30), 0 ); |
| 1150 |
|
itemBoxSizer20->Add(InstallButton, 0, wxGROW|wxALL, 0); |
| 1151 |
|
|
| 1152 |
|
wxBoxSizer* itemBoxSizer23 = new wxBoxSizer(wxVERTICAL); |
| 1179 |
|
wxBoxSizer* itemBoxSizer30 = new wxBoxSizer(wxVERTICAL); |
| 1180 |
|
itemBoxSizer25->Add(itemBoxSizer30, 0, wxGROW|wxALL, 5); |
| 1181 |
|
|
| 1182 |
< |
SeparatedRadio = new wxRadioButton( OptionsPanel, Separated_RadioButton, _("Separated Level0"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP ); |
| 1183 |
< |
SeparatedRadio->SetValue(false); |
| 1184 |
< |
SeparatedRadio->SetName(_T("Separated_RadioButton")); |
| 1185 |
< |
itemBoxSizer30->Add(SeparatedRadio, 0, wxALIGN_LEFT|wxALL, 5); |
| 1182 |
> |
SeperatedRadio = new wxRadioButton( OptionsPanel, Seperated_RadioButton, _("Separated Level0"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP ); |
| 1183 |
> |
SeperatedRadio->SetValue(false); |
| 1184 |
> |
SeperatedRadio->SetName(_T("Seperated_RadioButton")); |
| 1185 |
> |
itemBoxSizer30->Add(SeperatedRadio, 0, wxALIGN_LEFT|wxALL, 5); |
| 1186 |
|
|
| 1187 |
|
CompleteRadio = new wxRadioButton( OptionsPanel, Complete_RadioButton, _("Complete Level0"), wxDefaultPosition, wxDefaultSize, 0 ); |
| 1188 |
|
CompleteRadio->SetValue(false); |
| 1338 |
|
void MainWindow::OnModsCheckboxList1Selected( wxCommandEvent& event ) |
| 1339 |
|
{ |
| 1340 |
|
//event.GetSelection |
| 1341 |
< |
titleText->SetLabel(wxT(globalPackages[event.GetSelection()].name.c_str())); |
| 1342 |
< |
creatorText->SetLabel(globalPackages[event.GetSelection()].creator.c_str()); |
| 1343 |
< |
descriptionText->SetLabel(globalPackages[event.GetSelection()].readme.c_str()); |
| 1341 |
> |
titleText->SetValue(globalPackages[event.GetSelection()].name.c_str()); |
| 1342 |
> |
creatorText->SetValue(globalPackages[event.GetSelection()].creator.c_str()); |
| 1343 |
> |
descriptionText->SetValue(globalPackages[event.GetSelection()].readme.c_str()); |
| 1344 |
|
|
| 1345 |
|
creatorText->Refresh(); |
| 1346 |
|
} |
| 1635 |
|
setStatusArea("Done!"); |
| 1636 |
|
} |
| 1637 |
|
|
| 1638 |
+ |
|
| 1639 |
+ |
/* |
| 1640 |
+ |
* wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for Seperated_RadioButton |
| 1641 |
+ |
*/ |
| 1642 |
+ |
|
| 1643 |
+ |
void MainWindow::OnSeperatedRadioButtonSelected( wxCommandEvent& event ) |
| 1644 |
+ |
{ |
| 1645 |
+ |
////@begin wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for Seperated_RadioButton in MainWindow. |
| 1646 |
+ |
// Before editing this code, remove the block markers. |
| 1647 |
+ |
event.Skip(); |
| 1648 |
+ |
////@end wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for Seperated_RadioButton in MainWindow. |
| 1649 |
+ |
} |
| 1650 |
+ |
|