Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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

Constructor & Destructor Documentation

GuiIconHandler::GuiIconHandler  )  [inline]
 

Definition at line 127 of file guiiconhandler.h.

GuiIconHandler::~GuiIconHandler  )  [virtual]
 

Definition at line 235 of file guiiconhandler.cpp.


Member Function Documentation

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

Definition at line 210 of file guiiconhandler.cpp.

References actmap, tfield::getContainer(), GameMap::getCursor(), and GameMap::getField().

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

checks evaluates the field on which the cursor resides

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

Definition at line 178 of file guiiconhandler.cpp.

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

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 229 of file guiiconhandler.cpp.

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


Friends And Related Function Documentation

friend class NewGuiHost [friend]
 

Definition at line 121 of file guiiconhandler.h.


Member Data Documentation

NewGuiHost* GuiIconHandler::host [protected]
 

Definition at line 122 of file guiiconhandler.h.

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


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:17:38 2008 for Advanced Strategic Command by  doxygen 1.4.2