GuiIconHandler Class Reference

#include <guiiconhandler.h>

Inheritance diagram for GuiIconHandler:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 GuiIconHandler ()
void registerUserFunction (GuiFunction *function)
 registers a user function.
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
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

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().

bool GuiIconHandler::checkForKey ( const SDL_KeyboardEvent *  key,
int  modifier 
) [virtual]

Definition at line 222 of file guiiconhandler.cpp.

References actmap, GameMap::getCursor(), GameMap::getField(), and MapCoordinate::valid().

Referenced by NewGuiHost::eventKeyDown().

void GuiIconHandler::eval ( const MapCoordinate pos,
ContainerBase subject 
) [virtual]

checks evaluates the field on which the cursor resides

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

Definition at line 190 of file guiiconhandler.cpp.

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

Referenced by NewGuiHost::eval().


Friends And Related Function Documentation

friend class NewGuiHost [friend]

Definition at line 125 of file guiiconhandler.h.


Member Data Documentation

NewGuiHost* GuiIconHandler::host [protected]

Definition at line 126 of file guiiconhandler.h.

Referenced by GuiFunctions::ObjectBuildingGui::addButton(), eval(), GuiFunctions::ObjectBuildingGui::eval(), and GuiFunctions::AttackGui::eval().


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