Advanced Strategic Command
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Maped_MainScreenWidget Class Reference

#include <maped-mainscreen.h>

Inheritance diagram for Maped_MainScreenWidget:
Inheritance graph
[legend]

Public Member Functions

 Maped_MainScreenWidget (PG_Application &application)
 
bool clearSelection ()
 
bool selectVehicle ()
 
bool selectBuilding ()
 
bool selectObject ()
 
bool selectObjectList ()
 
bool selectTerrain ()
 
bool selectTerrainList ()
 
bool selectMine ()
 
bool selectLuaBrush ()
 
void updateStatusBar ()
 
void addContextAction (ContextAction *contextAction)
 
void showWeaponRange (GameMap *gamemap, const MapCoordinate &pos)
 
- Public Member Functions inherited from MainScreenWidget
 MainScreenWidget (PG_Application &application)
 
void displayMessage (const ASCString &message)
 
void activateMapLayer (const ASCString &name, bool active)
 
void toggleMapLayer (const ASCString &name)
 
MapDisplayPGgetMapDisplay ()
 
OverviewMapPanelgetOverviewMapPanel ()
 

Protected Member Functions

bool clickOnMap (const MapCoordinate &field, const SPoint &pos, bool changed, int button, int prio)
 
void brushChanged (int i)
 
void selectionChanged (const Placeable *item)
 
bool eventKeyUp (const PG_MessageObject *o, const SDL_KeyboardEvent *key)
 
bool eventKeyDown (const PG_MessageObject *o, const SDL_KeyboardEvent *key)
 
void setupStatusBar ()
 
void playerChanged (int player)
 
ASCString getBackgroundImageFilename ()
 
bool eventMouseButtonDown (const SDL_MouseButtonEvent *button)
 
 ~Maped_MainScreenWidget ()
 
- Protected Member Functions inherited from MainScreenWidget
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 ()
 
void eventBlit (SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst)
 
 ~MainScreenWidget ()
 

Protected Attributes

NewGuiHostguiHost
 
Menumenu
 
- Protected Attributes inherited from MainScreenWidget
int lockOptions
 
MapDisplayPGmapDisplay
 
PG_Label * messageLine
 

Additional Inherited Members

- Public Attributes inherited from MainScreenWidget
sigc::signal< void, int > lockOptionsChanged
 

Detailed Description

Definition at line 75 of file maped-mainscreen.h.

Constructor & Destructor Documentation

Maped_MainScreenWidget::Maped_MainScreenWidget ( PG_Application &  application)
Maped_MainScreenWidget::~Maped_MainScreenWidget ( )
inlineprotected

Definition at line 128 of file maped-mainscreen.h.

Member Function Documentation

void Maped_MainScreenWidget::addContextAction ( ContextAction contextAction)

Definition at line 586 of file maped-mainscreen.cpp.

Referenced by Maped_MainScreenWidget().

void Maped_MainScreenWidget::brushChanged ( int  i)
protected

Definition at line 579 of file maped-mainscreen.cpp.

References SelectionHolder::brushSize, and selection.

Referenced by Maped_MainScreenWidget().

bool Maped_MainScreenWidget::clearSelection ( )

Definition at line 961 of file maped-mainscreen.cpp.

References SelectionHolder::clear(), and selection.

Referenced by Maped_MainScreenWidget().

bool Maped_MainScreenWidget::clickOnMap ( const MapCoordinate field,
const SPoint pos,
bool  changed,
int  button,
int  prio 
)
protected
bool Maped_MainScreenWidget::eventKeyDown ( const PG_MessageObject *  o,
const SDL_KeyboardEvent *  key 
)
protected
bool Maped_MainScreenWidget::eventKeyUp ( const PG_MessageObject *  o,
const SDL_KeyboardEvent *  key 
)
protected

Definition at line 650 of file maped-mainscreen.cpp.

References act_releaseControlPanel, and execaction_ev().

bool Maped_MainScreenWidget::eventMouseButtonDown ( const SDL_MouseButtonEvent *  button)
protected

Definition at line 533 of file maped-mainscreen.cpp.

ASCString Maped_MainScreenWidget::getBackgroundImageFilename ( )
inlineprotectedvirtual

Implements MainScreenWidget.

Definition at line 124 of file maped-mainscreen.h.

void Maped_MainScreenWidget::playerChanged ( int  player)
protected

Definition at line 519 of file maped-mainscreen.cpp.

Referenced by Maped_MainScreenWidget().

bool Maped_MainScreenWidget::selectBuilding ( )

Definition at line 975 of file maped-mainscreen.cpp.

References buildingTypeRepository, and showSelectionWindow().

Referenced by Maped_MainScreenWidget().

void Maped_MainScreenWidget::selectionChanged ( const Placeable item)
protected
bool Maped_MainScreenWidget::selectLuaBrush ( )

Definition at line 1015 of file maped-mainscreen.cpp.

References selectFile(), selection, and SelectionHolder::setSelection().

Referenced by Maped_MainScreenWidget().

bool Maped_MainScreenWidget::selectMine ( )

Definition at line 1009 of file maped-mainscreen.cpp.

References mineTypeRepository, and showSelectionWindow().

Referenced by Maped_MainScreenWidget().

bool Maped_MainScreenWidget::selectObject ( )

Definition at line 981 of file maped-mainscreen.cpp.

References act_switchmaps, and execaction_ev().

Referenced by Maped_MainScreenWidget().

bool Maped_MainScreenWidget::selectObjectList ( )

Definition at line 988 of file maped-mainscreen.cpp.

References objectTypeRepository, and showSelectionWindow().

Referenced by Maped_MainScreenWidget().

bool Maped_MainScreenWidget::selectTerrain ( )

Definition at line 995 of file maped-mainscreen.cpp.

References act_switchmaps, and execaction_ev().

Referenced by Maped_MainScreenWidget().

bool Maped_MainScreenWidget::selectTerrainList ( )

Definition at line 1002 of file maped-mainscreen.cpp.

References showSelectionWindow(), and terrainTypeRepository.

Referenced by Maped_MainScreenWidget().

bool Maped_MainScreenWidget::selectVehicle ( )

Definition at line 968 of file maped-mainscreen.cpp.

References showSelectionWindow(), and vehicleTypeRepository.

Referenced by Maped_MainScreenWidget().

void Maped_MainScreenWidget::setupStatusBar ( )
protected
void Maped_MainScreenWidget::showWeaponRange ( GameMap gamemap,
const MapCoordinate pos 
)

Definition at line 513 of file maped-mainscreen.cpp.

References UnitWeaponRangeLayer::operateField().

void Maped_MainScreenWidget::updateStatusBar ( )

Member Data Documentation

NewGuiHost* Maped_MainScreenWidget::guiHost
protected

Definition at line 113 of file maped-mainscreen.h.

Menu* Maped_MainScreenWidget::menu
protected

Definition at line 114 of file maped-mainscreen.h.

Referenced by Maped_MainScreenWidget().


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