#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 127 of file guiiconhandler.h. |
|
|
Definition at line 235 of file guiiconhandler.cpp. |
|
||||||||||||
|
Definition at line 210 of file guiiconhandler.cpp. References actmap, tfield::getContainer(), GameMap::getCursor(), and GameMap::getField(). |
|
||||||||||||
|
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(). |
|
|
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(). |
|
|
Definition at line 121 of file guiiconhandler.h. |
|
1.4.2