#include <paradialog.h>
Public Member Functions | |
| ASC_PG_App (const ASCString &themeName) | |
| bool | InitScreen (int w, int h, int depth=0, Uint32 flags=SDL_SWSURFACE|SDL_HWPALETTE) |
| void | reloadTheme () |
| int | Run () |
| void | Quit () |
| bool | isFullscreen () |
| bool | toggleFullscreen () |
| void | setIcon (const ASCString &filename) |
| void | processEvent () |
| bool | enableLegacyEventHandling (bool use) |
| bool | queueWidgetForDeletion (PG_Widget *widget) |
| ~ASC_PG_App () | |
| void | SetNewScreenSurface (SDL_Surface *surface) |
Static Public Attributes | |
| static const int | mapDisplayID = 2 |
| static const int | mainScreenID = 1 |
Protected Member Functions | |
| bool | eventQuit (int id, PG_MessageObject *widget, unsigned long data) |
| void | eventIdle () |
Definition at line 68 of file paradialog.h.
| ASC_PG_App::ASC_PG_App | ( | const ASCString & | themeName | ) |
Definition at line 150 of file paradialog.cpp.
References ascScreenUpdater, displayLogMessage(), eventSupplier, getSearchPath(), idleEvent, CGameOptions::Instance(), pgApp, reloadTheme(), setMouseUpdateFlag(), and signalQuit().
| ASC_PG_App::~ASC_PG_App | ( | ) |
| bool ASC_PG_App::eventQuit | ( | int | id, | |
| PG_MessageObject * | widget, | |||
| unsigned long | data | |||
| ) | [protected] |
Definition at line 230 of file paradialog.cpp.
| void ASC_PG_App::eventIdle | ( | ) | [protected] |
| bool ASC_PG_App::InitScreen | ( | int | w, | |
| int | h, | |||
| int | depth = 0, |
|||
| Uint32 | flags = SDL_SWSURFACE|SDL_HWPALETTE | |||
| ) |
Definition at line 382 of file paradialog.cpp.
References MessagingHubBase::Error, MessagingHubBase::FatalError, MessagingHubBase::InfoMessage, initASCGraphicSubsystem(), Surface::SetScreen(), and MessagingHubBase::Warning.
Referenced by main().
| void ASC_PG_App::reloadTheme | ( | ) |
Definition at line 402 of file paradialog.cpp.
References fatalError().
Referenced by ASC_PG_App(), and executeUserAction().
| int ASC_PG_App::Run | ( | ) |
Definition at line 423 of file paradialog.cpp.
References enableLegacyEventHandling().
Referenced by gamethread(), and mapeditorMainThread().
| void ASC_PG_App::Quit | ( | ) |
Definition at line 223 of file paradialog.cpp.
Referenced by execaction_pg(), executeUserAction(), and signalQuit().
| bool ASC_PG_App::isFullscreen | ( | ) | [inline] |
Definition at line 95 of file paradialog.h.
| bool ASC_PG_App::toggleFullscreen | ( | ) |
Definition at line 258 of file paradialog.cpp.
References queueOperation(), and SetNewScreenSurface().
Referenced by Maped_MainScreenWidget::eventKeyDown(), and ASC_MainScreenWidget::eventKeyDown().
| void ASC_PG_App::setIcon | ( | const ASCString & | filename | ) |
Definition at line 211 of file paradialog.cpp.
References tnstream::reading, and SDL_RWFromStream().
Referenced by main().
| void ASC_PG_App::processEvent | ( | ) |
Definition at line 415 of file paradialog.cpp.
| bool ASC_PG_App::enableLegacyEventHandling | ( | bool | use | ) |
| bool ASC_PG_App::queueWidgetForDeletion | ( | PG_Widget * | widget | ) |
| void ASC_PG_App::SetNewScreenSurface | ( | SDL_Surface * | surface | ) |
const int ASC_PG_App::mapDisplayID = 2 [static] |
Definition at line 85 of file paradialog.h.
Referenced by MainScreenWidget::setup(), and Weathercast::Weathercast().
const int ASC_PG_App::mainScreenID = 1 [static] |
Definition at line 86 of file paradialog.h.
Referenced by ASC_MainScreenWidget::ASC_MainScreenWidget(), and MainScreenWidget::setup().
1.5.1