SelectionHolder Class Reference

#include <edglobal.h>

List of all members.

Public Member Functions

 SelectionHolder ()
int getPlayer ()
void setPlayer (int player)
void setWeather (int weather)
int getWeather ()
const PlaceablegetSelection ()
void setSelection (const Placeable &component)
void pickup (MapField *fld)
void clear ()

Public Attributes

SigC::Signal1< void, int > playerChanged
int brushSize
SigC::Signal1< void, const
Placeable * > 
selectionChanged


Detailed Description

Definition at line 154 of file edglobal.h.


Constructor & Destructor Documentation

SelectionHolder::SelectionHolder (  )  [inline]

Definition at line 160 of file edglobal.h.


Member Function Documentation

int SelectionHolder::getPlayer ( void   )  [inline]

Definition at line 162 of file edglobal.h.

Referenced by BuildingItem::display(), VehicleItem::display(), EditingEnvironment::getSelectedPlayerPosition(), MineItem::place(), BuildingItem::place(), and VehicleItem::place().

void SelectionHolder::setPlayer ( int  player  ) 

Definition at line 197 of file edglobal.cpp.

References playerChanged, and selectionChanged.

Referenced by PlayerColorPanel::eventKeyDown(), and Maped_MainScreenWidget::Maped_MainScreenWidget().

void SelectionHolder::setWeather ( int  weather  ) 

Definition at line 211 of file edglobal.cpp.

References selectionChanged.

Referenced by Maped_MainScreenWidget::Maped_MainScreenWidget().

int SelectionHolder::getWeather (  )  [inline]

Definition at line 167 of file edglobal.h.

Referenced by execaction(), and TerrainItem::place().

const Placeable * SelectionHolder::getSelection (  ) 

Definition at line 219 of file edglobal.cpp.

Referenced by placeCurrentItem(), and removeCurrentItem().

void SelectionHolder::setSelection ( const Placeable component  ) 

Definition at line 190 of file edglobal.cpp.

References Placeable::clone(), and selectionChanged.

Referenced by MapItemTypeWidgetFactory< MapItemTypeWidget< VehicleType > >::itemSelected(), pickup(), and Maped_MainScreenWidget::selectLuaBrush().

void SelectionHolder::pickup ( MapField fld  ) 

Definition at line 224 of file edglobal.cpp.

References MapField::building, ContainerBase::getOwner(), MapField::objects, setSelection(), TerrainType::Weather::terraintype, MapField::typ, Building::typ, Vehicle::typ, and MapField::vehicle.

Referenced by execaction().

void SelectionHolder::clear (  ) 

Definition at line 205 of file edglobal.cpp.

References selectionChanged.

Referenced by Maped_MainScreenWidget::clearSelection(), and execaction_pg().


Member Data Documentation

SigC::Signal1<void,int> SelectionHolder::playerChanged

Definition at line 164 of file edglobal.h.

Referenced by MapComponent::MapComponent(), and setPlayer().

int SelectionHolder::brushSize

Definition at line 167 of file edglobal.h.

Referenced by Maped_MainScreenWidget::brushChanged(), EditingEnvironment::getBrushSize(), and placeCurrentItem().

SigC::Signal1<void,const Placeable*> SelectionHolder::selectionChanged

Definition at line 174 of file edglobal.h.

Referenced by clear(), setPlayer(), setSelection(), and setWeather().


The documentation for this class was generated from the following files:
Generated on Mon May 21 01:47:26 2012 for Advanced Strategic Command by  doxygen 1.5.1