Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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)
 overridable eventhandler to blit the widget contents to the screen
 ~MainScreenWidget ()

Protected Attributes

int lockOptions
MapDisplayPGmapDisplay
PG_LabelmessageLine

Friends

class StandardActionLocker

Classes

struct  LockOptions
class  StandardActionLocker

Constructor & Destructor Documentation

MainScreenWidget::MainScreenWidget PG_Application application  ) 
 

Definition at line 81 of file mainscreenwidget.cpp.

MainScreenWidget::~MainScreenWidget  )  [inline, protected]
 

Definition at line 105 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, virtual]
 

overridable eventhandler to blit the widget contents to the screen

Parameters:
surface pointer to SDL_Surface to be blitted
src source rectangle (client coordinates)
dst destination rectangle (screen coordinates) Override this eventhandler to perform custom blitting behaviour (without drawing onto the widget surface).

Reimplemented from PG_Widget.

Definition at line 275 of file mainscreenwidget.cpp.

References PG_Application::GetScreen(), and Surface::Wrap().

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

Implemented in ASC_MainScreenWidget, and Maped_MainScreenWidget.

MapDisplayPG* MainScreenWidget::getMapDisplay  )  [inline]
 

Definition at line 60 of file mainscreenwidget.h.

References mapDisplay.

Referenced by execaction(), execaction_pg(), and execuseraction2().

OverviewMapPanel* MainScreenWidget::getOverviewMapPanel  )  [inline]
 

Definition at line 62 of file mainscreenwidget.h.

bool MainScreenWidget::idleHandler PG_MessageObject msgObj  )  [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
[inline, protected, virtual]
 

Reimplemented in ASC_MainScreenWidget.

Definition at line 89 of file mainscreenwidget.h.

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

void MainScreenWidget::mouseScrollChecker  )  [protected]
 

Definition at line 144 of file mainscreenwidget.cpp.

References getPGApplication(), PG_Application::GetScreenHeight(), PG_Application::GetScreenWidth(), PG_Widget::IsMouseInside(), mapDisplay, MapDisplayPG::scrollMap(), and ticker.

Referenced by idleHandler().

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

Definition at line 88 of file mainscreenwidget.cpp.

References OverviewMapHolder::clearmap(), dataLoaderTicker, displayLogMessage(), displayMessage(), PG_Application::GetApp(), idleHandler(), ASC_PG_App::mainScreenID, mapChanged, mapDisplay, ASC_PG_App::mapDisplayID, repaintDisplay, PG_Widget::SetID(), and PG_Widget::Update().

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

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

Definition at line 301 of file mainscreenwidget.cpp.

References assert, mapDisplay, PG_Rect::PG_Rect(), PG_Widget::Show(), and PG_Rect::Width().

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

void MainScreenWidget::toggleMapLayer const ASCString name  ) 
 

Definition at line 126 of file mainscreenwidget.cpp.

References mapDisplay, and MapDisplayPG::toggleMapLayer().

Referenced by execaction(), and execuseraction().


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 85 of file mainscreenwidget.h.

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

MapDisplayPG* MainScreenWidget::mapDisplay [protected]
 

Definition at line 89 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 93 of file mainscreenwidget.h.

Referenced by Maped_MainScreenWidget::setupStatusBar().


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:17:58 2008 for Advanced Strategic Command by  doxygen 1.4.2