The main application class. Part of the wxWidgets application infrastructure. Creates and maintains the wxMainFrame, the top level frame for the main application window. Switches the menus when a SettlersView game window is open and when it closes. Handles starting and stopping the GameEngine.
wxApp (see http://www.wxwindows.org/manuals/2.4.2/wx30.htm)
app.h
The main application class. | |
Returns the application object itself. | |
Shows the application menu in the frame. | |
Shows the game menu in the frame. | |
Initializes the application. | |
Exits the application. | |
The wxMainFrame, the top-level frame in the application. |
| virtual bool OnInit() |
Initializes the application. Creates the wxMainFrame. Sets the application icon. Centers the window on screen and creates the menu bar. Calls ShowAppMenu to set the application menu and then starts up the GameEngine. Runs the wxSplashDialog and proceeds from the results.
A bool indicating success initialization of the application. If false, the application is terminated.
| virtual int OnExit() |
Exits the application. Stops the GameEngine.
The value returned by wxApp::OnExit()
The wxMainFrame, the top-level frame in the application. |
| wxMainFrame *mFrame |
The wxMainFrame, the top-level frame in the application.
| static wxCities3DApp &app() |
| void ShowAppMenu() |
| void ShowGameMenu() |
| virtual bool OnInit() |
| virtual int OnExit() |
| wxMainFrame *mFrame |