#include <algorithm>#include <paragui.h>#include <pgwidget.h>#include <pgwidgetlist.h>#include <pgwindow.h>#include <pgapplication.h>#include "dialogs/selectionwindow.h"#include "ed_mapcomponent.h"#include "edglobal.h"#include "events.h"#include "itemrepository.h"#include "objects.h"Include dependency graph for edselfnt.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Classes | |
| class | MapItemTypeWidget< MapItemType > |
| A MapItemTypeWidget show any kind of MapItemType in a SelectionWidget It is typically generated by a BaseMapItemTypeWidgetFactory. More... | |
| class | BaseMapItemTypeWidgetFactory< MapItemWidget > |
| The BaseMapItemTypeWidgetFactory iterates through all items of an ItemRepository and spawns a MapItemTypeWidget for it. More... | |
| class | MapItemTypeWidgetFactory< MapItemWidget > |
| Adds selection logic to a BaseMapItemTypeWidgetFactory. Selected items are registered as being the active "brush" for editing the map. More... | |
| class | MapItemTypeWidgetFactory_IDSelection< MapItemWidget > |
| Adds selection logic to a BaseMapItemTypeWidgetFactory. The ID is of the selected item is obtained and written to the variable which was passed on construction. More... | |
Functions | |
| void | selcargo (PG_Window *parentWindow, ContainerBase *container) |
| void | selbuildingproduction (Building *eht) |
| void | sortItems (vector< VehicleType * > &vec) |
| void | sortItems (vector< BuildingType * > &vec) |
| void | sortItems (vector< ObjectType * > &vec) |
| void | sortItems (vector< TerrainType * > &vec) |
| void | sortItems (vector< MineType * > &vec) |
| template<class ItemType> | |
| bool | selectItemID (int &id, const ItemRepository< ItemType > &itemRepository) |
| opens a window in which the user can select an item of the given type ( template parameter ItemType ). | |
| void | addCargo (ContainerBase *container) |
| Lets the user choose a unit and adds it to the cargo of container. | |
| void | editProduction (ContainerBase *container) |
| void addCargo | ( | ContainerBase * | container | ) |
Lets the user choose a unit and adds it to the cargo of container.
Definition at line 358 of file edselfnt.cpp.
References ItemSelectorWindow::RunModal().
| void editProduction | ( | ContainerBase * | container | ) |
Definition at line 556 of file edselfnt.cpp.
References ASC_PG_Dialog::RunModal().
Referenced by execaction_pg().
| void selbuildingproduction | ( | Building * | eht | ) |
| void selcargo | ( | PG_Window * | parentWindow, | |
| ContainerBase * | container | |||
| ) |
| bool selectItemID | ( | int & | id, | |
| const ItemRepository< ItemType > & | itemRepository | |||
| ) |
opens a window in which the user can select an item of the given type ( template parameter ItemType ).
| id | The value of this variable will set the item that is selected when opening the window. The selected item will also be written back here. | |
| itemRepository | the repository of items from which the user can choose one |
Definition at line 210 of file edselfnt.h.
References ItemSelectorWindow::RunModal().
Referenced by chooseObject(), chooseTerrain(), and chooseVehicleType().
| void sortItems | ( | vector< TerrainType * > & | vec | ) |
| void sortItems | ( | vector< ObjectType * > & | vec | ) |
| void sortItems | ( | vector< BuildingType * > & | vec | ) |
| void sortItems | ( | vector< VehicleType * > & | vec | ) |
1.5.1