Changeset 503 for AE/Installer/trunk/source/main_window.cpp
- Timestamp:
- Mar 24, 2010, 8:12:25 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/Installer/trunk/source/main_window.cpp
r500 r503 105 105 EVT_MENU( wxID_ABOUT, MainWindow::OnAboutClick ) 106 106 107 EVT_BUTTON( Dir_Button, MainWindow::OnDirButtonClick ) 107 108 ////@end MainWindow event table entries 108 109 … … 115 116 116 117 MainWindow::MainWindow() 117 { 118 { 118 119 Init(); 119 120 } … … 175 176 CompleteRadio = NULL; 176 177 ReglobalizeButton = NULL; 178 179 ChangeDirectoryButton = NULL; 177 180 ////@end MainWindow member initialisation 178 181 } … … 350 353 itemBoxSizer34->Add(ReglobalizeButton, 0, wxGROW|wxALL, 5); 351 354 352 // Connect events and objects 355 wxStaticLine* itemStaticLine100 = new wxStaticLine( OptionsPanel, wxID_STATIC, wxDefaultPosition, wxDefaultSize, wxLI_VERTICAL ); 356 itemBoxSizer25->Add(itemStaticLine100, 0, wxGROW|wxALL, 5); 357 358 ChangeDirectoryButton = new wxButton( OptionsPanel, Dir_Button, _("Change Dir"), wxDefaultPosition, wxDefaultSize, 0 ); 359 ChangeDirectoryButton->SetName(_T("Dir_Button")); 360 itemBoxSizer34->Add(ChangeDirectoryButton, 0, wxGROW|wxALL, 5); 361 362 // Connect events and objects 353 363 Mods_CheckboxList->Connect(Mods_CheckboxList1, wxEVT_CREATE, wxWindowCreateEventHandler(MainWindow::ModList_OnCreate), NULL, this); 354 364 ////@end MainWindow content construction … … 617 627 // TODO: Make About window work again! 618 628 About* window = new About(this); 629 window->ShowModal(); 619 630 window->Destroy(); 620 631 ////@end wxEVT_COMMAND_MENU_SELECTED event handler for wxID_ABOUT in MainWindow. … … 624 635 * wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for NoSep_RadioButton 625 636 */ 626 637 627 638 void MainWindow::OnNoSepRadioButtonSelected( wxCommandEvent& event ) 628 639 { … … 658 669 void MainWindow::OnRefreshButtonClick( wxCommandEvent& event ) 659 670 { 671 globalPackages = getPackages(); 660 672 refreshMods(globalInstalledMods); 661 673 } … … 778 790 splitInstances = true; 779 791 } 792 793 void MainWindow::OnDirButtonClick( wxCommandEvent& event ) 794 { 795 wxDirDialog* newDir = new wxDirDialog(this, "Set current directory", "", wxDD_DEFAULT_STYLE, 796 wxDefaultPosition, wxDefaultSize, "wxDirCtrl"); 797 newDir->ShowModal(); 798 if(newDir->GetPath()[0]) current_path( (path)newDir->GetPath() ); 799 OnRefreshButtonClick(event); 800 }
Note:
See TracChangeset
for help on using the changeset viewer.