ASC_PG_App Class Reference

#include <paradialog.h>

List of all members.

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 ()


Detailed Description

Definition at line 68 of file paradialog.h.


Constructor & Destructor Documentation

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 (  ) 

Definition at line 431 of file paradialog.cpp.

References shutdownASCGraphicSubsystem().


Member Function Documentation

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]

Definition at line 236 of file paradialog.cpp.

References redrawScreen.

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  ) 

Definition at line 409 of file paradialog.cpp.

References setEventRouting().

Referenced by Run().

bool ASC_PG_App::queueWidgetForDeletion ( PG_Widget *  widget  ) 

Definition at line 194 of file paradialog.cpp.

Referenced by IngameMessageViewer::Hide().

void ASC_PG_App::SetNewScreenSurface ( SDL_Surface *  surface  ) 

Definition at line 252 of file paradialog.cpp.

Referenced by toggleFullscreen().


Member Data Documentation

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().


The documentation for this class was generated from the following files:
Generated on Mon May 21 01:46:17 2012 for Advanced Strategic Command by  doxygen 1.5.1