Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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.

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 chose a unit and adds it to the cargo of container.
void editProduction (ContainerBase *container)


Function Documentation

void addCargo ContainerBase container  ) 
 

Lets the user chose a unit and adds it to the cargo of container.

Definition at line 351 of file edselfnt.cpp.

References ItemSelectorWindow::RunModal(), and PG_Widget::Show().

void editProduction ContainerBase container  ) 
 

Definition at line 549 of file edselfnt.cpp.

References ASC_PG_Dialog::RunModal(), and PG_Widget::Show().

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:
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 chose one

Definition at line 210 of file edselfnt.h.

References PG_Application::GetScreenHeight(), ItemSelectorWindow::RunModal(), and PG_Widget::Show().

Referenced by chooseObject(), chooseTerrain(), and chooseVehicleType().

void sortItems vector< MineType * > &  vec  ) 
 

Definition at line 94 of file edselfnt.cpp.

References mineComp().

void sortItems vector< TerrainType * > &  vec  ) 
 

Definition at line 89 of file edselfnt.cpp.

References terrainComp().

void sortItems vector< ObjectType * > &  vec  ) 
 

Definition at line 84 of file edselfnt.cpp.

References objectComp().

void sortItems vector< BuildingType * > &  vec  ) 
 

Definition at line 79 of file edselfnt.cpp.

References buildingComp().

void sortItems vector< Vehicletype * > &  vec  ) 
 

Definition at line 74 of file edselfnt.cpp.

References vehicleComp().


Generated on Tue Jun 24 01:41:36 2008 for Advanced Strategic Command by  doxygen 1.4.2