| 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); |
| 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 Separated_RadioButton |
| 1641 |
+ |
*/ |
| 1642 |
+ |
|
| 1643 |
+ |
/*void MainWindow::OnSeparatedRadioButtonSelected( wxCommandEvent& event ) |
| 1644 |
+ |
{ |
| 1645 |
+ |
////@begin wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for Separated_RadioButton in MainWindow. |
| 1646 |
+ |
// Before editing this code, remove the block markers. |
| 1647 |
+ |
event.Skip(); |
| 1648 |
+ |
////@end wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for Separated_RadioButton in MainWindow. |
| 1649 |
+ |
}*/ |
| 1650 |
+ |
|