- Timestamp:
- Mar 24, 2010, 8:12:25 AM (15 years ago)
- Location:
- AE/Installer/trunk/source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/Installer/trunk/source/globals.h
r502 r503 41 41 42 42 #pragma mark DEFINES 43 #define INSTALLER_VERSION "1. 1" // only place in source we need to setthis43 #define INSTALLER_VERSION "1.2" // only place we need to change this 44 44 #define UPDATE_LOG_READ_ERR -1 45 45 #define UPDATE_INST_REPL_ERR -2 -
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 } -
AE/Installer/trunk/source/main_window.h
r487 r503 66 66 #define wxID_LOAD 10006 67 67 #define wxID_OPTIONS 10017 68 #define Dir_Button 10100 68 69 #define SYMBOL_MAINWINDOW_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxMINIMIZE_BOX|wxMAXIMIZE_BOX|wxCLOSE_BOX|wxSIMPLE_BORDER 69 70 #define SYMBOL_MAINWINDOW_TITLE _("Installer") … … 154 155 void OnAboutClick( wxCommandEvent& event ); 155 156 157 /// change currently directory 158 void OnDirButtonClick( wxCommandEvent& event ); 156 159 ////@end MainWindow event handler declarations 157 160 … … 185 188 wxRadioButton* CompleteRadio; 186 189 wxButton* ReglobalizeButton; 190 wxButton* ChangeDirectoryButton; 187 191 ////@end MainWindow member variables 188 192 -
AE/Installer/trunk/source/replace_installer.bat
r496 r503 7 7 8 8 COPY AEInstaller.exe .\..\..\..\install\ 9 START ..\..\..\install\AEInstaller.exe 9 cd ..\..\..\install\ 10 START AEInstaller.exe 10 11 )
Note:
See TracChangeset
for help on using the changeset viewer.