Maped_MainScreenWidget Class Reference

#include <maped-mainscreen.h>

Inheritance diagram for Maped_MainScreenWidget:

Inheritance graph
[legend]
List of all members.

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)

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 SDL_KeyboardEvent *key)
bool eventKeyDown (const SDL_KeyboardEvent *key)
void setupStatusBar ()
void playerChanged (int player)
ASCString getBackgroundImageFilename ()
bool eventMouseButtonDown (const SDL_MouseButtonEvent *button)
 ~Maped_MainScreenWidget ()

Protected Attributes

NewGuiHostguiHost
Menumenu

Detailed Description

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


Constructor & Destructor Documentation

Maped_MainScreenWidget::Maped_MainScreenWidget ( PG_Application &  application  ) 

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

References addContextAction(), DropDownSelector::AddItem(), MapDisplayPG::addMapLayer(), brushChanged(), clearSelection(), clickOnMap(), cwettertypen, cwettertypennum, eventKeyDown(), BuildingItem::Height(), MainScreenWidget::mapDisplay, menu, MapDisplayPG::mouseButtonOnField, mouseDraggedToField(), MapDisplayPG::mouseDraggedToField, mousePressedOnField(), playerChanged(), selectBuilding(), selection, selectionChanged(), DropDownSelector::selectionSignal, selectLuaBrush(), selectMine(), selectObject(), selectObjectList(), selectTerrain(), selectTerrainList(), selectVehicle(), SelectionItemWidget::set(), SelectionHolder::setPlayer(), MainScreenWidget::setup(), setupStatusBar(), SelectionHolder::setWeather(), MainScreenWidget::spawnOverviewMapPanel(), ASCString::toString(), and BuildingItem::Width().

Maped_MainScreenWidget::~Maped_MainScreenWidget (  )  [inline, protected]

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


Member Function Documentation

bool Maped_MainScreenWidget::clearSelection (  ) 

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

References SelectionHolder::clear(), and selection.

Referenced by Maped_MainScreenWidget().

bool Maped_MainScreenWidget::selectVehicle (  ) 

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

References showSelectionWindow(), and vehicleTypeRepository.

Referenced by Maped_MainScreenWidget().

bool Maped_MainScreenWidget::selectBuilding (  ) 

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

References buildingTypeRepository, and showSelectionWindow().

Referenced by Maped_MainScreenWidget().

bool Maped_MainScreenWidget::selectObject (  ) 

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

References act_switchmaps, and execaction_ev().

Referenced by Maped_MainScreenWidget().

bool Maped_MainScreenWidget::selectObjectList (  ) 

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

References objectTypeRepository, and showSelectionWindow().

Referenced by Maped_MainScreenWidget().

bool Maped_MainScreenWidget::selectTerrain (  ) 

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

References act_switchmaps, and execaction_ev().

Referenced by Maped_MainScreenWidget().

bool Maped_MainScreenWidget::selectTerrainList (  ) 

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

References showSelectionWindow(), and terrainTypeRepository.

Referenced by Maped_MainScreenWidget().

bool Maped_MainScreenWidget::selectMine (  ) 

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

References mineTypeRepository, and showSelectionWindow().

Referenced by Maped_MainScreenWidget().

bool Maped_MainScreenWidget::selectLuaBrush (  ) 

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

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

Referenced by Maped_MainScreenWidget().

void Maped_MainScreenWidget::updateStatusBar (  ) 

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

References actmap, GameMap::getCursor(), ASCString::toString(), MapCoordinate::x, and MapCoordinate::y.

Referenced by setupStatusBar().

void Maped_MainScreenWidget::addContextAction ( ContextAction contextAction  ) 

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

Referenced by Maped_MainScreenWidget().

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

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

References UnitWeaponRangeLayer::operateField().

bool Maped_MainScreenWidget::clickOnMap ( const MapCoordinate field,
const SPoint pos,
bool  changed,
int  button,
int  prio 
) [protected]

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

References MapDisplayPG::cursor, MapDisplayPG::Cursor::goTo(), and MainScreenWidget::mapDisplay.

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

void Maped_MainScreenWidget::selectionChanged ( const Placeable item  )  [protected]

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

References MapItemType::getID(), MapComponent::getItemType(), Placeable::getName(), and ASCString::toString().

Referenced by Maped_MainScreenWidget().

bool Maped_MainScreenWidget::eventKeyUp ( const SDL_KeyboardEvent *  key  )  [protected]

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

References act_releaseControlPanel, and execaction_ev().

bool Maped_MainScreenWidget::eventKeyDown ( const SDL_KeyboardEvent *  key  )  [protected]

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

References act_changecargo, act_changemapvals, act_changeminestrength, act_changeplayers, act_changeproduction, act_changeresources, act_changeterraindir, act_changeunitdir, act_changeunitvals, act_clearSelection, act_copyToClipboard, act_createresources, act_cutToClipboard, act_decrease_zoom, act_deletething, act_end, act_events, act_help, act_import_bi_map, act_increase_zoom, act_loadmap, act_mapgenerator, act_maptopcx, act_mirrorcursorx, act_mirrorcursory, act_movebuilding, act_newmap, act_openControlPanel, act_pasteFromClipboard, act_placemine, act_polymode, act_primaryAction, act_resizemap, act_savemap, act_selbodentyp, act_selbodentypAll, act_selbuilding, act_selmine, act_selobject, act_selobjectAll, act_selunit, act_setactivefieldvals, act_setactweatherglobal, act_setunitfilter, act_setupalliances, act_setzoom, act_showpalette, act_showPipeNet, act_showweapnrange, act_switchmaps, act_terraininfo, act_toggleresourcemode, act_unitinfo, act_viewmap, actmap, execaction_ev(), getPGApplication(), helperFunction(), GameMap::player, ASC_PG_App::toggleFullscreen(), and Player::vehicleList.

Referenced by Maped_MainScreenWidget().

void Maped_MainScreenWidget::setupStatusBar (  )  [protected]

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

References cursorMoved, MainScreenWidget::mapDisplay, MainScreenWidget::messageLine, updateFieldInfo, and updateStatusBar().

Referenced by Maped_MainScreenWidget().

void Maped_MainScreenWidget::playerChanged ( int  player  )  [protected]

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

Referenced by Maped_MainScreenWidget().

ASCString Maped_MainScreenWidget::getBackgroundImageFilename (  )  [inline, protected, virtual]

Implements MainScreenWidget.

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

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

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


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