Advanced Strategic Command
Public Member Functions | Protected Types | List of all members
MapItemTypeWidgetFactory< MapItemWidget > Class Template Reference

Adds selection logic to a BaseMapItemTypeWidgetFactory. Selected items are registered as being the active "brush" for editing the map. More...

#include <edselfnt.h>

Inheritance diagram for MapItemTypeWidgetFactory< MapItemWidget >:
Inheritance graph
[legend]

Public Member Functions

 MapItemTypeWidgetFactory (const ItemRepository< ItemType > &itemRepository)
 
void itemSelected (const SelectionWidget *widget, bool mouse)
 
- Public Member Functions inherited from BaseMapItemTypeWidgetFactory< MapItemWidget >
 BaseMapItemTypeWidgetFactory (const ItemRepository< ItemType > &itemRepository)
 
void restart ()
 
SelectionWidgetspawnNextItem (PG_Widget *parent, const PG_Point &pos)
 
- Public Member Functions inherited from SelectionItemFactory
virtual void itemMarked (const SelectionWidget *widget)
 
virtual SelectionWidgetgetDefaultItem ()
 
virtual ~SelectionItemFactory ()
 

Protected Types

typedef MapItemWidget::ItemType ItemType
 
- Protected Types inherited from BaseMapItemTypeWidgetFactory< MapItemWidget >
typedef MapItemWidget::ItemType ItemType
 
typedef vector< ItemType * > Items
 

Additional Inherited Members

- Protected Member Functions inherited from BaseMapItemTypeWidgetFactory< MapItemWidget >
virtual bool isFiltered (const ItemType &item)
 
virtual void registerItem (MapItemWidget *item)
 
- Protected Attributes inherited from BaseMapItemTypeWidgetFactory< MapItemWidget >
Items::iterator it
 

Detailed Description

template<class MapItemWidget>
class MapItemTypeWidgetFactory< MapItemWidget >

Adds selection logic to a BaseMapItemTypeWidgetFactory. Selected items are registered as being the active "brush" for editing the map.

Definition at line 142 of file edselfnt.h.

Member Typedef Documentation

template<class MapItemWidget>
typedef MapItemWidget::ItemType MapItemTypeWidgetFactory< MapItemWidget >::ItemType
protected

Definition at line 144 of file edselfnt.h.

Constructor & Destructor Documentation

template<class MapItemWidget>
MapItemTypeWidgetFactory< MapItemWidget >::MapItemTypeWidgetFactory ( const ItemRepository< ItemType > &  itemRepository)
inline

Definition at line 147 of file edselfnt.h.

Member Function Documentation

template<class MapItemWidget>
void MapItemTypeWidgetFactory< MapItemWidget >::itemSelected ( const SelectionWidget widget,
bool  mouse 
)
inlinevirtual

Implements SelectionItemFactory.

Definition at line 149 of file edselfnt.h.


The documentation for this class was generated from the following file: