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
[legend]

Classes

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
 
MapDisplayPGmapDisplay
 
PG_Label * messageLine
 

Friends

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

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

Definition at line 275 of file mainscreenwidget.cpp.

References Surface::Wrap().

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

Definition at line 62 of file mainscreenwidget.h.

Referenced by SelectFromMap::SelectFromMap().

bool MainScreenWidget::idleHandler ( )
protected

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

Reimplemented in ASC_MainScreenWidget.

Definition at line 99 of file mainscreenwidget.h.

void MainScreenWidget::mouseScrollChecker ( )
protected

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 
)
protected
void MainScreenWidget::spawnOverviewMapPanel ( const ASCString panelName = "OverviewMap")
protected
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
friend

Definition at line 47 of file mainscreenwidget.h.

Member Data Documentation

int MainScreenWidget::lockOptions
protected

Definition at line 50 of file mainscreenwidget.h.

Referenced by ASC_MainScreenWidget::lockStandardActions().

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

Definition at line 103 of file mainscreenwidget.h.

Referenced by Maped_MainScreenWidget::setupStatusBar().


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