#include <guiiconhandler.h>
Inheritance diagram for GuiIconHandler:
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 | |
| NewGuiHost * | host |
Friends | |
| class | NewGuiHost |
Definition at line 118 of file guiiconhandler.h.
| GuiIconHandler::GuiIconHandler | ( | ) | [inline] |
Definition at line 131 of file guiiconhandler.h.
| GuiIconHandler::~GuiIconHandler | ( | ) | [virtual] |
Definition at line 247 of file guiiconhandler.cpp.
| 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().
friend class NewGuiHost [friend] |
Definition at line 125 of file guiiconhandler.h.
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().
1.5.1