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

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 MapComponentgetSelection ()
void setSelection (const MapComponent &component)
void pickup (tfield *fld)
void clear ()

Public Attributes

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


Constructor & Destructor Documentation

SelectionHolder::SelectionHolder  )  [inline]
 

Definition at line 154 of file edglobal.h.


Member Function Documentation

void SelectionHolder::clear  ) 
 

Definition at line 195 of file edglobal.cpp.

References selectionChanged.

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

int SelectionHolder::getPlayer void   )  [inline]
 

Definition at line 156 of file edglobal.h.

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

const MapComponent * SelectionHolder::getSelection  ) 
 

Definition at line 209 of file edglobal.cpp.

Referenced by placeCurrentItem(), and removeCurrentItem().

int SelectionHolder::getWeather  )  [inline]
 

Definition at line 161 of file edglobal.h.

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

void SelectionHolder::pickup tfield fld  ) 
 

Definition at line 214 of file edglobal.cpp.

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

Referenced by execaction().

void SelectionHolder::setPlayer int  player  ) 
 

Definition at line 187 of file edglobal.cpp.

References playerChanged, and selectionChanged.

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

void SelectionHolder::setSelection const MapComponent component  ) 
 

Definition at line 180 of file edglobal.cpp.

References MapComponent::clone(), and selectionChanged.

Referenced by MapItemTypeWidgetFactory< MapItemTypeWidget< Vehicletype > >::itemSelected(), and pickup().

void SelectionHolder::setWeather int  weather  ) 
 

Definition at line 201 of file edglobal.cpp.

References selectionChanged.

Referenced by Maped_MainScreenWidget::Maped_MainScreenWidget().


Member Data Documentation

int SelectionHolder::brushSize
 

Definition at line 161 of file edglobal.h.

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

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

Definition at line 158 of file edglobal.h.

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

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

Definition at line 168 of file edglobal.h.

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


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