MapItemTypeWidgetFactory_IDSelection< MapItemWidget > Class Template Reference

Adds selection logic to a BaseMapItemTypeWidgetFactory. The ID is of the selected item is obtained and written to the variable which was passed on construction. More...

#include <edselfnt.h>

Inheritance diagram for MapItemTypeWidgetFactory_IDSelection< MapItemWidget >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 MapItemTypeWidgetFactory_IDSelection (const ItemRepository< ItemType > &itemRepository, int &id)
SelectionWidgetgetDefaultItem ()
void itemSelected (const SelectionWidget *widget, bool mouse)

Protected Member Functions

virtual void registerItem (MapItemWidget *itemWidget)

Detailed Description

template<class MapItemWidget>
class MapItemTypeWidgetFactory_IDSelection< MapItemWidget >

Adds selection logic to a BaseMapItemTypeWidgetFactory. The ID is of the selected item is obtained and written to the variable which was passed on construction.

Definition at line 166 of file edselfnt.h.


Constructor & Destructor Documentation

template<class MapItemWidget>
MapItemTypeWidgetFactory_IDSelection< MapItemWidget >::MapItemTypeWidgetFactory_IDSelection ( const ItemRepository< ItemType > &  itemRepository,
int &  id 
) [inline]

Definition at line 179 of file edselfnt.h.


Member Function Documentation

template<class MapItemWidget>
virtual void MapItemTypeWidgetFactory_IDSelection< MapItemWidget >::registerItem ( MapItemWidget *  itemWidget  )  [inline, protected, virtual]

Reimplemented from BaseMapItemTypeWidgetFactory< MapItemWidget >.

Definition at line 172 of file edselfnt.h.

template<class MapItemWidget>
SelectionWidget* MapItemTypeWidgetFactory_IDSelection< MapItemWidget >::getDefaultItem (  )  [inline, virtual]

Reimplemented from SelectionItemFactory.

Definition at line 183 of file edselfnt.h.

template<class MapItemWidget>
void MapItemTypeWidgetFactory_IDSelection< MapItemWidget >::itemSelected ( const SelectionWidget widget,
bool  mouse 
) [inline, virtual]

Implements SelectionItemFactory.

Definition at line 192 of file edselfnt.h.


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