Advanced Strategic Command
Classes | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
MainScreenWidget Class Referenceabstract

#include <mainscreenwidget.h>

Inheritance diagram for MainScreenWidget:
Inheritance graph


struct  LockOptions
class  StandardActionLocker
 Instanciating this class will disable the Controls for interacting with the map or the main menu. More...

Public Member Functions

 MainScreenWidget (PG_Application &application)
void displayMessage (const ASCString &message)
void activateMapLayer (const ASCString &name, bool active)
void toggleMapLayer (const ASCString &name)
MapDisplayPGgetMapDisplay ()
OverviewMapPanelgetOverviewMapPanel ()

Public Attributes

sigc::signal< void, int > lockOptionsChanged

Protected Member Functions

virtual void lockStandardActions (int dir, int options=0)
void spawnOverviewMapPanel (const ASCString &panelName="OverviewMap")
void setup (bool messageLine, const PG_Rect &mapView)
bool idleHandler ()
void mouseScrollChecker ()
virtual ASCString getBackgroundImageFilename ()=0
void eventBlit (SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst)
 ~MainScreenWidget ()

Protected Attributes

int lockOptions
PG_Label * messageLine


class StandardActionLocker

Detailed Description

Definition at line 33 of file mainscreenwidget.h.

Constructor & Destructor Documentation

MainScreenWidget::MainScreenWidget ( PG_Application &  application)

Definition at line 81 of file mainscreenwidget.cpp.

MainScreenWidget::~MainScreenWidget ( )

Definition at line 115 of file mainscreenwidget.h.

Member Function Documentation

void MainScreenWidget::activateMapLayer ( const ASCString name,
bool  active 

Definition at line 120 of file mainscreenwidget.cpp.

References MapDisplayPG::activateMapLayer(), and mapDisplay.

Referenced by execaction().

void MainScreenWidget::displayMessage ( const ASCString message)

Definition at line 265 of file mainscreenwidget.cpp.

References ticker.

Referenced by displaymessage2(), idleHandler(), and setup().

void MainScreenWidget::eventBlit ( SDL_Surface *  surface,
const PG_Rect &  src,
const PG_Rect &  dst 

Definition at line 275 of file mainscreenwidget.cpp.

References Surface::Wrap().

virtual ASCString MainScreenWidget::getBackgroundImageFilename ( )
protectedpure virtual
MapDisplayPG* MainScreenWidget::getMapDisplay ( )
OverviewMapPanel* MainScreenWidget::getOverviewMapPanel ( )

Definition at line 62 of file mainscreenwidget.h.

Referenced by SelectFromMap::SelectFromMap().

bool MainScreenWidget::idleHandler ( )

Definition at line 133 of file mainscreenwidget.cpp.

References displayMessage(), mouseScrollChecker(), and ticker.

Referenced by setup().

virtual void MainScreenWidget::lockStandardActions ( int  dir,
int  options = 0 

Reimplemented in ASC_MainScreenWidget.

Definition at line 99 of file mainscreenwidget.h.

void MainScreenWidget::mouseScrollChecker ( )

Definition at line 144 of file mainscreenwidget.cpp.

References getPGApplication(), mapDisplay, MapDisplayPG::scrollMap(), and ticker.

Referenced by idleHandler().

void MainScreenWidget::setup ( bool  messageLine,
const PG_Rect &  mapView 
void MainScreenWidget::spawnOverviewMapPanel ( const ASCString panelName = "OverviewMap")
void MainScreenWidget::toggleMapLayer ( const ASCString name)

Definition at line 126 of file mainscreenwidget.cpp.

References mapDisplay, and MapDisplayPG::toggleMapLayer().

Referenced by execaction(), and executeUserAction().

Friends And Related Function Documentation

friend class StandardActionLocker

Definition at line 47 of file mainscreenwidget.h.

Member Data Documentation

int MainScreenWidget::lockOptions

Definition at line 50 of file mainscreenwidget.h.

Referenced by ASC_MainScreenWidget::lockStandardActions().

sigc::signal<void,int> MainScreenWidget::lockOptionsChanged
MapDisplayPG* MainScreenWidget::mapDisplay
PG_Label* MainScreenWidget::messageLine

Definition at line 103 of file mainscreenwidget.h.

Referenced by Maped_MainScreenWidget::setupStatusBar().

The documentation for this class was generated from the following files: