#include <fieldmarker.h>
Inheritance diagram for SelectFromMap:

Public Types | |
| typedef vector< MapCoordinate > | CoordinateList |
Public Member Functions | |
| SelectFromMap (CoordinateList &list, GameMap *map, bool justOne=false, bool readOnly=false) | |
| void | Show (bool fade=false) |
| Make a widget visible (if you want a widget to show up the first time, use this method). | |
| ~SelectFromMap () | |
Protected Member Functions | |
| bool | ProcessEvent (const SDL_Event *event, bool bModal=false) |
| Process a native PG_ event. | |
| virtual bool | accept (const MapCoordinate &pos) |
| virtual void | showFieldMarking (const CoordinateList &coordinateList) |
| virtual bool | mark () |
| virtual bool | markField (const MapCoordinate &pos) |
| bool | eventKeyDown (const SDL_KeyboardEvent *key) |
| Overridable Eventhandler for a SDL_KeyboardEvent message. | |
| void | updateList () |
| bool | listItemClicked (PG_ListBoxBaseItem *item) |
| virtual bool | isOk () |
| bool | closeDialog () |
Protected Attributes | |
| GameMap * | actmap |
| CoordinateList & | coordinateList |
|
|
Definition at line 44 of file fieldmarker.h. |
|
||||||||||||||||||||
|
|
Definition at line 183 of file fieldmarker.cpp. References actmap, GameMap::cleartemps(), getMainScreenWidget(), repaintMap, and MapDisplayPG::setSignalPriority(). |
|
|
Reimplemented in SelectBuildingFromMap, and SelectUnitFromMap. Definition at line 86 of file fieldmarker.cpp. References actmap, and GameMap::getField(). Referenced by ReinforcementSelector::mark(), and markField(). |
|
|
Definition at line 58 of file fieldmarker.h. References isOk(), and PG_Widget::QuitModal(). Referenced by SelectFromMap(). |
|
|
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 ASC_PG_Dialog. Definition at line 137 of file fieldmarker.cpp. References ASC_PG_Dialog::eventKeyDown(), isOk(), mark(), and PG_Widget::QuitModal(). |
|
|
Reimplemented in SelectBuildingFromMap, and SelectUnitFromMap. Definition at line 57 of file fieldmarker.h. Referenced by closeDialog(), and eventKeyDown(). |
|
|
Definition at line 162 of file fieldmarker.cpp. References MapDisplayPG::cursor, and MapDisplayPG::Cursor::goTo(). Referenced by SelectFromMap(). |
|
|
Reimplemented in ReinforcementSelector. Definition at line 131 of file fieldmarker.cpp. References actmap, GameMap::getCursor(), and markField(). Referenced by eventKeyDown(), and SelectFromMap(). |
|
|
Definition at line 109 of file fieldmarker.cpp. References accept(), coordinateList, showFieldMarking(), and updateList(). Referenced by mark(). |
|
||||||||||||
|
Process a native PG_ event.
Reimplemented from PG_Widget. Definition at line 75 of file fieldmarker.cpp. References PG_Widget::ProcessEvent(). |
|
|
Make a widget visible (if you want a widget to show up the first time, use this method).
Reimplemented from PG_Widget. Definition at line 174 of file fieldmarker.cpp. References PG_Widget::BringToFront(), getMainScreenWidget(), repaintMap, and PG_Widget::Show(). Referenced by editpolygon(), TargetCoordinateLocator::eventMouseButtonDown(), getxy_building(), selectFields(), selectunit(), selectUnitFromMap(), Reinforcements::setup(), and showAllUnitPositions(). |
|
|
Reimplemented in PolygonEditor. Definition at line 90 of file fieldmarker.cpp. References actmap, GameMap::cleartemps(), GameMap::getField(), and repaintMap. Referenced by ReinforcementSelector::mark(), markField(), and SelectFromMap(). |
|
|
Definition at line 153 of file fieldmarker.cpp. References coordinateList, PG_ListBox::DeleteAll(), and PG_Widget::Show(). Referenced by ReinforcementSelector::mark(), markField(), and SelectFromMap(). |
|
|
Definition at line 46 of file fieldmarker.h. Referenced by SelectUnitFromMap::accept(), SelectBuildingFromMap::accept(), accept(), ReinforcementSelector::mark(), mark(), showFieldMarking(), and ~SelectFromMap(). |
|
|
Definition at line 47 of file fieldmarker.h. Referenced by SelectUnitFromMap::isOk(), SelectBuildingFromMap::isOk(), ReinforcementSelector::mark(), markField(), SelectFromMap(), and updateList(). |
1.4.2