Advanced Strategic Command
Public Member Functions | Protected Attributes | Friends | List of all members
GuiIconHandler Class Reference

#include <guiiconhandler.h>

Inheritance diagram for GuiIconHandler:
Inheritance graph
[legend]

Public Member Functions

 GuiIconHandler ()
 
void registerUserFunction (GuiFunction *function)
 registers a user function. More...
 
virtual bool checkForKey (const SDL_KeyboardEvent *key, int modifier)
 
virtual void eval (const MapCoordinate &pos, ContainerBase *subject)
 checks evaluates the field on which the cursor resides More...
 
virtual ~GuiIconHandler ()
 

Protected Attributes

NewGuiHosthost
 

Friends

class NewGuiHost
 

Detailed Description

Definition at line 118 of file guiiconhandler.h.

Constructor & Destructor Documentation

GuiIconHandler::GuiIconHandler ( )
inline

Definition at line 131 of file guiiconhandler.h.

GuiIconHandler::~GuiIconHandler ( )
virtual

Definition at line 247 of file guiiconhandler.cpp.

Member Function Documentation

bool GuiIconHandler::checkForKey ( const SDL_KeyboardEvent *  key,
int  modifier 
)
virtual
void GuiIconHandler::eval ( const MapCoordinate pos,
ContainerBase subject 
)
virtual

checks evaluates the field on which the cursor resides

Reimplemented in GuiFunctions::ObjectBuildingGui, and GuiFunctions::AttackGui.

Definition at line 190 of file guiiconhandler.cpp.

References NewGuiHost::disableButtons(), NewGuiHost::getButton(), host, and GuiButton::registerFunc().

Referenced by NewGuiHost::eval().

void GuiIconHandler::registerUserFunction ( GuiFunction function)

registers a user function.

Icons are displayed in the order that they were registered. By passing an object here, the GuiIconHandler will obtain ownership of the object and delete it on his destruction

Definition at line 241 of file guiiconhandler.cpp.

Referenced by CargoGuiFunctions::Movement::execute(), registerGuiFunctions(), and registerReplayGuiFunctions().

Friends And Related Function Documentation

friend class NewGuiHost
friend

Definition at line 125 of file guiiconhandler.h.

Member Data Documentation

NewGuiHost* GuiIconHandler::host
protected

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