#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) |
| ~SelectFromMap () | |
Protected Member Functions | |
| bool | ProcessEvent (const SDL_Event *event, bool bModal=false) |
| 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) |
| void | updateList () |
| bool | listItemClicked (PG_ListBoxBaseItem *item) |
| virtual bool | isOk () |
| bool | closeDialog () |
Protected Attributes | |
| GameMap * | actmap |
| CoordinateList & | coordinateList |
Definition at line 31 of file fieldmarker.h.
Definition at line 44 of file fieldmarker.h.
| SelectFromMap::SelectFromMap | ( | CoordinateList & | list, | |
| GameMap * | map, | |||
| bool | justOne = false, |
|||
| bool | readOnly = false | |||
| ) |
Definition at line 43 of file fieldmarker.cpp.
References actmap, closeDialog(), coordinateList, MapDisplayPG::cursor, cursorMoved, GameMap::getCursor(), getMainScreenWidget(), MainScreenWidget::getMapDisplay(), MainScreenWidget::getOverviewMapPanel(), MapDisplayPG::Cursor::goTo(), listItemClicked(), mark(), MapDisplayPG::mouseButtonOnField, MapDisplayPG::setSignalPriority(), showFieldMarking(), and updateList().
| SelectFromMap::~SelectFromMap | ( | ) |
Definition at line 189 of file fieldmarker.cpp.
References actmap, GameMap::cleartemps(), getMainScreenWidget(), repaintMap, and MapDisplayPG::setSignalPriority().
| bool SelectFromMap::ProcessEvent | ( | const SDL_Event * | event, | |
| bool | bModal = false | |||
| ) | [protected] |
Definition at line 78 of file fieldmarker.cpp.
| bool SelectFromMap::accept | ( | const MapCoordinate & | pos | ) | [protected, virtual] |
Reimplemented in SelectBuildingFromMap, and SelectUnitFromMap.
Definition at line 89 of file fieldmarker.cpp.
References actmap, and GameMap::getField().
Referenced by ReinforcementSelector::mark(), and markField().
| void SelectFromMap::showFieldMarking | ( | const CoordinateList & | coordinateList | ) | [protected, virtual] |
Definition at line 93 of file fieldmarker.cpp.
References MapField::a, actmap, GameMap::cleartemps(), GameMap::getField(), and repaintMap.
Referenced by ReinforcementSelector::mark(), markField(), and SelectFromMap().
| bool SelectFromMap::mark | ( | ) | [protected, virtual] |
Reimplemented in ReinforcementSelector.
Definition at line 134 of file fieldmarker.cpp.
References actmap, GameMap::getCursor(), and markField().
Referenced by eventKeyDown(), and SelectFromMap().
| bool SelectFromMap::markField | ( | const MapCoordinate & | pos | ) | [protected, virtual] |
Definition at line 112 of file fieldmarker.cpp.
References accept(), coordinateList, showFieldMarking(), and updateList().
Referenced by mark().
| bool SelectFromMap::eventKeyDown | ( | const SDL_KeyboardEvent * | key | ) | [protected, virtual] |
Reimplemented from ASC_PG_Dialog.
Definition at line 140 of file fieldmarker.cpp.
References ASC_PG_Dialog::eventKeyDown(), isOk(), and mark().
| void SelectFromMap::updateList | ( | ) | [protected] |
Definition at line 156 of file fieldmarker.cpp.
References coordinateList.
Referenced by ReinforcementSelector::mark(), markField(), and SelectFromMap().
| bool SelectFromMap::listItemClicked | ( | PG_ListBoxBaseItem * | item | ) | [protected] |
Definition at line 165 of file fieldmarker.cpp.
References actmap, MapDisplayPG::cursor, cursorMoved, GameMap::getCursor(), CoordinateItem::getPos(), and MapDisplayPG::Cursor::goTo().
Referenced by SelectFromMap().
| virtual bool SelectFromMap::isOk | ( | ) | [inline, protected, virtual] |
Reimplemented in SelectBuildingFromMap, SelectUnitFromMap, and ReinforcementSelector.
Definition at line 57 of file fieldmarker.h.
Referenced by closeDialog(), and eventKeyDown().
| bool SelectFromMap::closeDialog | ( | ) | [inline, protected] |
| void SelectFromMap::Show | ( | bool | fade = false |
) |
Definition at line 180 of file fieldmarker.cpp.
References getMainScreenWidget(), and repaintMap.
Referenced by editpolygon(), TargetCoordinateLocator::eventMouseButtonDown(), getxy_building(), selectFields(), selectPosition(), selectunit(), selectUnitFromMap(), Reinforcements::setup(), and showAllUnitPositions().
GameMap* SelectFromMap::actmap [protected] |
Definition at line 46 of file fieldmarker.h.
Referenced by SelectUnitFromMap::accept(), SelectBuildingFromMap::accept(), accept(), listItemClicked(), ReinforcementSelector::mark(), mark(), SelectFromMap(), showFieldMarking(), and ~SelectFromMap().
CoordinateList& SelectFromMap::coordinateList [protected] |
Definition at line 47 of file fieldmarker.h.
Referenced by ReinforcementSelector::isOk(), SelectUnitFromMap::isOk(), SelectBuildingFromMap::isOk(), ReinforcementSelector::mark(), markField(), SelectFromMap(), PolygonEditor::showFieldMarking(), and updateList().
1.5.1