MapItemTypeWidget< MapItemType > Class Template Reference

A MapItemTypeWidget show any kind of MapItemType in a SelectionWidget It is typically generated by a BaseMapItemTypeWidgetFactory. More...

#include <edselfnt.h>

Inheritance diagram for MapItemTypeWidget< MapItemType >:

Inheritance graph
[legend]
List of all members.

Public Types

typedef MapItemType ItemType

Public Member Functions

 MapItemTypeWidget (PG_Widget *parent, const PG_Point &pos, const MapItemType *mapItemType)
ASCString getName () const
const ItemTypegetItem () const
void display (SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst)

Detailed Description

template<class MapItemType>
class MapItemTypeWidget< MapItemType >

A MapItemTypeWidget show any kind of MapItemType in a SelectionWidget It is typically generated by a BaseMapItemTypeWidgetFactory.

Definition at line 56 of file edselfnt.h.


Member Typedef Documentation

template<class MapItemType>
typedef MapItemType MapItemTypeWidget< MapItemType >::ItemType

Definition at line 59 of file edselfnt.h.


Constructor & Destructor Documentation

template<class MapItemType>
MapItemTypeWidget< MapItemType >::MapItemTypeWidget ( PG_Widget *  parent,
const PG_Point &  pos,
const MapItemType mapItemType 
) [inline]

Definition at line 61 of file edselfnt.h.


Member Function Documentation

template<class MapItemType>
ASCString MapItemTypeWidget< MapItemType >::getName (  )  const [inline, virtual]

Implements SelectionWidget.

Definition at line 66 of file edselfnt.h.

References MapItemType::getName().

template<class MapItemType>
const ItemType* MapItemTypeWidget< MapItemType >::getItem (  )  const [inline]

Definition at line 71 of file edselfnt.h.

Referenced by ProductionItemFactory::itemMarked(), and CargoItemFactory::itemSelected().

template<class MapItemType>
void MapItemTypeWidget< MapItemType >::display ( SDL_Surface *  surface,
const PG_Rect &  src,
const PG_Rect &  dst 
) [inline, virtual]

Implements SelectionWidget.

Definition at line 76 of file edselfnt.h.


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