MainScreenWidget Class Reference

#include <mainscreenwidget.h>

Inheritance diagram for MainScreenWidget:

Inheritance graph
[legend]
List of all members.

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::Signal1< 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 (PG_MessageObject *msgObj)
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

Classes

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

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 (  )  [inline, protected]

Definition at line 115 of file mainscreenwidget.h.


Member Function Documentation

void MainScreenWidget::displayMessage ( const ASCString message  ) 

Definition at line 265 of file mainscreenwidget.cpp.

References ticker.

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

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::toggleMapLayer ( const ASCString name  ) 

Definition at line 126 of file mainscreenwidget.cpp.

References mapDisplay, and MapDisplayPG::toggleMapLayer().

Referenced by executeUserAction().

MapDisplayPG* MainScreenWidget::getMapDisplay (  )  [inline]

Definition at line 60 of file mainscreenwidget.h.

References mapDisplay.

Referenced by TargetCoordinateLocator::eventMouseButtonDown(), execaction(), execaction_pg(), executeUserAction(), TaskFactory::itemSelected(), ActionFactory::itemSelected(), SelectFromMap::SelectFromMap(), and MapSwitcher::toggle().

OverviewMapPanel* MainScreenWidget::getOverviewMapPanel (  )  [inline]

Definition at line 62 of file mainscreenwidget.h.

Referenced by SelectFromMap::SelectFromMap().

virtual void MainScreenWidget::lockStandardActions ( int  dir,
int  options = 0 
) [inline, protected, virtual]

Reimplemented in ASC_MainScreenWidget.

Definition at line 99 of file mainscreenwidget.h.

Referenced by MainScreenWidget::StandardActionLocker::lock(), and MainScreenWidget::StandardActionLocker::unlock().

void MainScreenWidget::spawnOverviewMapPanel ( const ASCString panelName = "OverviewMap"  )  [protected]

Definition at line 301 of file mainscreenwidget.cpp.

References mapDisplay.

Referenced by Maped_MainScreenWidget::Maped_MainScreenWidget(), and ASC_MainScreenWidget::spawnPanel().

void MainScreenWidget::setup ( bool  messageLine,
const PG_Rect &  mapView 
) [protected]

Definition at line 88 of file mainscreenwidget.cpp.

References OverviewMapHolder::clearmap(), dataLoaderTicker, displayLogMessage(), displayMessage(), idleHandler(), ASC_PG_App::mainScreenID, mapChanged, mapDisplay, ASC_PG_App::mapDisplayID, and repaintDisplay.

Referenced by ASC_MainScreenWidget::ASC_MainScreenWidget(), and Maped_MainScreenWidget::Maped_MainScreenWidget().

bool MainScreenWidget::idleHandler ( PG_MessageObject *  msgObj  )  [protected]

Definition at line 133 of file mainscreenwidget.cpp.

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

Referenced by setup().

void MainScreenWidget::mouseScrollChecker (  )  [protected]

Definition at line 144 of file mainscreenwidget.cpp.

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

Referenced by idleHandler().

virtual ASCString MainScreenWidget::getBackgroundImageFilename (  )  [protected, pure virtual]

Implemented in ASC_MainScreenWidget, and Maped_MainScreenWidget.

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


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::Signal1<void,int> MainScreenWidget::lockOptionsChanged

Definition at line 95 of file mainscreenwidget.h.

Referenced by ASC_MainScreenWidget::lockStandardActions(), MapDisplayPG::MapDisplayPG(), and NewGuiHost::NewGuiHost().

MapDisplayPG* MainScreenWidget::mapDisplay [protected]

Definition at line 99 of file mainscreenwidget.h.

Referenced by activateMapLayer(), ASC_MainScreenWidget::ASC_MainScreenWidget(), Maped_MainScreenWidget::clickOnMap(), getMapDisplay(), Maped_MainScreenWidget::Maped_MainScreenWidget(), mouseScrollChecker(), setup(), Maped_MainScreenWidget::setupStatusBar(), spawnOverviewMapPanel(), ASC_MainScreenWidget::spawnPanel(), and toggleMapLayer().

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:
Generated on Mon May 21 01:46:57 2012 for Advanced Strategic Command by  doxygen 1.5.1