Changeset 353 for AE/Installer/trunk/source/main.cpp
- Timestamp:
- Jun 15, 2009, 1:28:58 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/Installer/trunk/source/main.cpp
r324 r353 1 1 ///////////////////////////////////////////////////////////////////////////// 2 // Name: main.cpp2 // Name: aeinstallerapp.cpp 3 3 // Purpose: 4 4 // Author: … … 25 25 26 26 #include "main.h" 27 #include <string> 27 28 28 29 ////@begin XPM images … … 74 75 void AEInstallerApp::Init() 75 76 { 76 ////@begin AEInstallerApp member initialisation77 ////@end AEInstallerApp member initialisation77 ////@begin AEInstallerApp member initialisation 78 ////@end AEInstallerApp member initialisation 78 79 } 79 80 … … 81 82 * Initialisation for AEInstallerApp 82 83 */ 83 84 MainWindow* TheWindow; 84 85 bool AEInstallerApp::OnInit() 85 86 { 86 ////@begin AEInstallerApp initialisation87 ////@begin AEInstallerApp initialisation 87 88 // Remove the comment markers above and below this block 88 89 // to make permanent changes to the code. 89 90 90 91 #if wxUSE_XPM 91 92 wxImage::AddHandler(new wxXPMHandler); … … 102 103 MainWindow* mainWindow = new MainWindow( NULL ); 103 104 mainWindow->Show(true); 104 ////@end AEInstallerApp initialisation 105 ////@end AEInstallerApp initialisation 106 TheWindow = mainWindow; 107 108 return true; 109 } 105 110 106 return true; 111 112 void setStatusArea( string s ) { 113 wxString wxs(s.c_str(), wxConvUTF8); 114 115 TheWindow->StatusArea->SetStatusText( wxs ); 116 //TheWindow->StatusArea->SetStatusText(s.c_str()); 117 //StatusArea->SetStatusText(_(s.c_str())); 118 //(*TheStatusBar)->SetStatusText(_(s.c_str())); 119 //AEInstallerApp:: 120 // TheWindow->StatusArea->SetStatusText("hi"); 121 //mainWindow 122 //itemFrame1->StatusArea->SetStatusText(_"lol"); 123 //MainWindow.StatusArea->SetStatusText("hi"); 124 // class AbstractStatusNotifier { public: virtual void NotifyStatus(const wxString &statusString) = 0; }; 125 //class StatusBarStatusNotifier : public AbstractStatusNotifier { wxStatusBar *statusbar; StatusBarStatusNotifier(wxStatusBar *bar) : statusbar(bar) { } ; 126 //void NotifyStatus(const wxString &status) { statusbar->SetStatus(status); } } 127 128 129 //MainWindow::StatusArea-> 130 //MainWindow::MainWindow().SetSize(MainWindow::MainWindow().GetRect().GetWidth(), MainWindow::MainWindow().GetRect().GetHeight()+1); 131 132 //MainWindow::StatusBar->SetLabel("Importing Files..."); 133 //StatusBar->SetLabel(s); 134 //->SetLabel(s); 135 107 136 } 108 137 … … 114 143 int AEInstallerApp::OnExit() 115 144 { 116 ////@begin AEInstallerApp cleanup145 ////@begin AEInstallerApp cleanup 117 146 return wxApp::OnExit(); 118 ////@end AEInstallerApp cleanup147 ////@end AEInstallerApp cleanup 119 148 } 120 149
Note:
See TracChangeset
for help on using the changeset viewer.