Changeset 358
- Timestamp:
- Jun 20, 2009, 12:25:08 AM (16 years ago)
- Location:
- AE/Installer/trunk/source
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/Installer/trunk/source/aeinstallerapp.cpp
r356 r358 9 9 // Licence: 10 10 ///////////////////////////////////////////////////////////////////////////// 11 #include "boost/thread.hpp" 12 #include <boost/thread/mutex.hpp> 11 13 12 14 #include "boost/filesystem.hpp" // includes all needed Boost.Filesystem declarations … … 117 119 } 118 120 else { 119 //globalize... 121 TheWindow->InstallButton->Disable(); 122 TheWindow->ReglobalizeButton->Disable(); 123 124 #ifdef WIN32 125 126 boost::thread thrd3(globalizeData); 127 //globalizeData(); 128 //boost::thread::create_thread(&globalizeData); 129 // boost::thread_group Tg; 130 // Tg.create_thread( &globalizeData(), this ); 131 #else 132 globalizeData(); 133 setProgressBar(1000); 134 setStatusArea("Done!"); 135 #endif 136 137 TheWindow->InstallButton->Enable(); 138 TheWindow->ReglobalizeButton->Enable(); 120 139 } 121 140 } -
AE/Installer/trunk/source/installer.h
r355 r358 49 49 cout << "\n"; 50 50 } 51 52 bool operator < (const ModPackage &fs) 51 52 bool operator < (const ModPackage &fs) const 53 53 { return (name < fs.name);} 54 54 55 bool operator > (const ModPackage &fs) 55 bool operator > (const ModPackage &fs) const 56 56 { return (name > fs.name);} 57 57 58 bool operator == (const ModPackage &fs) 58 bool operator == (const ModPackage &fs) const 59 59 { return (name == fs.name);} 60 60 }; -
AE/Installer/trunk/source/main_window.cpp
r357 r358 301 301 for(int j = 0; j < GDFPaths.size(); j++) { 302 302 logfile << "\tReimporting " << GDFPaths[j].filename() << ".oni\n"; 303 setStatusArea("Step " + lexical_cast<std::string>(parts_done + 1) + "/" + lexical_cast<std::string>(total_steps) + ": reimporting " + GDFPaths[j].filename() );303 setStatusArea("Step " + lexical_cast<std::string>(parts_done + 1) + "/" + lexical_cast<std::string>(total_steps) + ": reimporting " + GDFPaths[j].filename() ); 304 304 system((strOniSplit + " " + strImportOption + " " + GDFPaths[j].string() + " " + VanillaPaths[j].string()).c_str()); 305 305 parts_done++; … … 1280 1280 if (!event.GetInt() ) { 1281 1281 OptionsPanel->Hide(); 1282 MainWindow::SetSize(MainWindow::GetRect().GetWidth(), MainWindow::GetRect().GetHeight()-OptionsPanel->GetRect().GetHeight());}1282 this->SetSize(this->GetRect().GetWidth(), this->GetRect().GetHeight()-OptionsPanel->GetRect().GetHeight());} 1283 1283 else { 1284 //Uncomment this when we release, it gets annoying if you are testing globalization a lot ;)1285 //wxMessageDialog* YesNoDialog = new wxMessageDialog(this, "WARNING: These options are for advanced users only, use with caution.", "AE Installer Alert", wxOK | wxICON_EXCLAMATION , wxDefaultPosition);1286 //YesNoDialog->ShowModal();1284 // Uncomment this when we release, it gets annoying if you are testing globalization a lot ;) 1285 wxMessageDialog* YesNoDialog = new wxMessageDialog(this, "WARNING: These options are for advanced users only, use with caution.", "AE Installer Alert", wxOK | wxICON_EXCLAMATION , wxDefaultPosition); 1286 YesNoDialog->ShowModal(); 1287 1287 OptionsPanel->Show(); 1288 MainWindow::SetSize(MainWindow::GetRect().GetWidth(), MainWindow::GetRect().GetHeight()+OptionsPanel->GetRect().GetHeight()); 1289 } 1288 this->SetSize(this->GetRect().GetWidth(), this->GetRect().GetHeight()+OptionsPanel->GetRect().GetHeight()); 1289 } 1290 1290 1291 } 1291 1292
Note:
See TracChangeset
for help on using the changeset viewer.