Advanced Strategic Command
Classes | Functions
edselfnt.h File Reference
#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 ). More...
 
void addCargo (ContainerBase *container)
 Lets the user choose a unit and adds it to the cargo of container. More...
 
void editProduction (ContainerBase *container)
 

Function Documentation

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 
)
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 ).

Parameters
idThe value of this variable will set the item that is selected when opening the window. The selected item will also be written back here.
itemRepositorythe 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< VehicleType * > &  vec)
void sortItems ( vector< BuildingType * > &  vec)

Definition at line 80 of file edselfnt.cpp.

References buildingComp().

void sortItems ( vector< ObjectType * > &  vec)

Definition at line 85 of file edselfnt.cpp.

References objectComp().

void sortItems ( vector< TerrainType * > &  vec)

Definition at line 90 of file edselfnt.cpp.

References terrainComp().

void sortItems ( vector< MineType * > &  vec)

Definition at line 95 of file edselfnt.cpp.

References mineComp().