#include <guiiconhandler.h>
Inheritance diagram for NewGuiHost:

Public Member Functions | |
| NewGuiHost (MainScreenWidget *parent, MapDisplayPG *mapDisplay, const PG_Rect &r) | |
| void | eval (const MapCoordinate &pos, ContainerBase *subject) |
| bool | showSmallIcons (PG_Widget *parent, const SPoint &pos, bool cursorChanged) |
| bool | clearSmallIcons () |
| GuiButton * | getButton (int i) |
| void | disableButtons (int i) |
| disables all button from i onward | |
| bool | ProcessEvent (const SDL_Event *event, bool bModal) |
| Process a native PG_ event. | |
| ~NewGuiHost () | |
Static Public Member Functions | |
| static void | pushIconHandler (GuiIconHandler *iconHandler) |
| static GuiIconHandler * | getIconHandler () |
| static void | popIconHandler () |
Protected Types | |
| typedef vector< GuiButton * > | Buttons |
| typedef vector< SmallGuiButton * > | SmallButtons |
Protected Member Functions | |
| bool | mapIconProcessing (const MapCoordinate &pos, const SPoint &mousePos, bool cursorChanged, int button, int prio) |
| SmallGuiButton * | getSmallButton (int i) |
| bool | eventKeyDown (const SDL_KeyboardEvent *key) |
| Overridable Eventhandler for a SDL_KeyboardEvent message. | |
| bool | eventKeyUp (const SDL_KeyboardEvent *key) |
| Overridable Eventhandler for a SDL_KeyboardEvent message. | |
| bool | setNewButtonPressed (int i) |
| when operated by keyboard, set a new button as the pressed one | |
| void | evalCursor () |
Protected Attributes | |
| Buttons | buttons |
| SmallButtons | smallButtons |
Static Protected Attributes | |
| static SmallButtonHolder * | smallButtonHolder = NULL |
|
|
Definition at line 161 of file guiiconhandler.h. |
|
|
Definition at line 164 of file guiiconhandler.h. |
|
||||||||||||||||
|
Definition at line 248 of file guiiconhandler.cpp. References clearSmallIcons(), cursorMoved, evalCursor(), eventKeyDown(), eventKeyUp(), PG_Application::GetApp(), MainScreenWidget::lockOptionsChanged, mapIconProcessing(), MapDisplayPG::mouseButtonOnField, PG_ThemeWidget::SetTransparency(), GameMap::sigMapDeletion, and updateFieldInfo. |
|
|
Definition at line 682 of file guiiconhandler.cpp. References GuiIconHandler::registerHost(). |
|
|
Definition at line 672 of file guiiconhandler.cpp. References PG_Widget::Hide(), PG_Widget::IsVisible(), smallButtonHolder, and SmallButtonHolder::Unlock(). Referenced by NewGuiHost(), popIconHandler(), showSmallIcons(), and SmallGuiButton::SmallGuiButton(). |
|
|
disables all button from i onward
Definition at line 412 of file guiiconhandler.cpp. References buttons, getButton(), PG_Widget::Hide(), and GuiButton::unregisterFunc(). Referenced by GuiIconHandler::eval(), GuiFunctions::BuildingConstruction::eval(), GuiFunctions::VehicleBuildingGui::eval(), GuiFunctions::ObjectBuildingGui::eval(), GuiFunctions::AttackGui::eval(), and GuiFunctions::BuildingConstruction::setup(). |
|
||||||||||||
|
Definition at line 352 of file guiiconhandler.cpp. References GuiIconHandler::eval(). |
|
|
Definition at line 325 of file guiiconhandler.cpp. References actmap, DashboardPanel::eval(), GameMap::getCursor(), GameMap::getField(), MapCoordinate::valid(), MapCoordinate::x, GameMap::xsize, MapCoordinate::y, and GameMap::ysize. Referenced by NewGuiHost(). |
|
|
Overridable Eventhandler for a SDL_KeyboardEvent message. This handler is called when a key changed it's state from unpressed to pressed. The default implementation returns 'false' which indicates that this message is not processed by this object.
Reimplemented from PG_MessageObject. Definition at line 567 of file guiiconhandler.cpp. References buttons, getButton(), guiIconColumnNum, PG_Widget::IsVisible(), MapDisplayPG::keyboadCursorMovement(), and setNewButtonPressed(). Referenced by NewGuiHost(). |
|
|
Overridable Eventhandler for a SDL_KeyboardEvent message. This handler is called when a key changed it's state from pressed to unpressed. The default implementation returns 'false' which indicates that this message is not processed by this object.
Reimplemented from PG_MessageObject. Definition at line 624 of file guiiconhandler.cpp. References GuiButton::exec(), getButton(), MapDisplayPG::keyboadCursorMovement(), and setNewButtonPressed(). Referenced by NewGuiHost(). |
|
|
|
Definition at line 374 of file guiiconhandler.cpp. References handler. Referenced by ReplayGuiIconHandleHandler::ReplayGuiIconHandleHandler(). |
|
|
Definition at line 460 of file guiiconhandler.cpp. References assert, getButton(), PG_Widget::Hide(), PG_Rect::PG_Rect(), smallButtonHolder, smallButtons, smallGuiIconSizeX, smallGuiIconSizeY, and smallGuiIconSpace. Referenced by showSmallIcons(). |
|
||||||||||||||||||||||||
|
Definition at line 423 of file guiiconhandler.cpp. References tfield::a, actmap, tfield::building, fieldvisiblenow(), GameMap::getField(), CGameOptions::Instance(), mainScreenWidget, showSmallIcons(), smallGuiIconSizeX, smallGuiIconSizeY, and tfield::vehicle. Referenced by NewGuiHost(). |
|
|
||||||||||||
|
Process a native PG_ event.
Reimplemented from PG_Widget. Definition at line 474 of file guiiconhandler.cpp. References PG_Widget::ProcessEvent(), SmallButtonHolder::ProcessEvent(), and smallButtonHolder. |
|
|
|
when operated by keyboard, set a new button as the pressed one
Definition at line 538 of file guiiconhandler.cpp. References buttons, getButton(), PG_Button::SetPressed(), PG_Button::SetToggle(), and GuiButton::showInfoText(). Referenced by eventKeyDown(), and eventKeyUp(). |
|
||||||||||||||||
|
|
Definition at line 162 of file guiiconhandler.h. Referenced by disableButtons(), eventKeyDown(), getButton(), setNewButtonPressed(), and showSmallIcons(). |
|
|
Definition at line 322 of file guiiconhandler.cpp. Referenced by clearSmallIcons(), getSmallButton(), ProcessEvent(), and showSmallIcons(). |
|
|
Definition at line 165 of file guiiconhandler.h. Referenced by getSmallButton(). |
1.4.2