Advanced Strategic Command
Classes | Functions | Variables
edselfnt.cpp File Reference

Selecting units, buildings, objects, weather etc. in the mapeditor. More...

#include "vehicletype.h"
#include "buildingtype.h"
#include "edmisc.h"
#include "edselfnt.h"
#include "mapdisplay.h"
#include "itemrepository.h"
#include "edglobal.h"
#include "graphics/blitter.h"
#include "paradialog.h"
#include "dialogs/vehicletypeselector.h"
#include "unitset.h"
#include "spfst-legacy.h"
Include dependency graph for edselfnt.cpp:

Go to the source code of this file.


class  CargoItemFactory
class  ProductionItemFactory
class  AvailableProductionItemFactory
class  ProductionEditorWindow


bool buildingComp (const BuildingType *v1, const BuildingType *v2)
bool objectComp (const ObjectType *v1, const ObjectType *v2)
bool terrainComp (const TerrainType *v1, const TerrainType *v2)
bool mineComp (const MineType *v1, const MineType *v2)
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)
void addCargo (ContainerBase *container)
 Lets the user choose a unit and adds it to the cargo of container. More...
void editProduction (ContainerBase *container)


sigc::signal< void > filtersChangedSignal

Detailed Description

Selecting units, buildings, objects, weather etc. in the mapeditor.

Definition in file edselfnt.cpp.

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

bool buildingComp ( const BuildingType v1,
const BuildingType v2 

Definition at line 48 of file edselfnt.cpp.

References getUnitSetID(), and ContainerBaseType::name.

Referenced by sortItems().

void editProduction ( ContainerBase container)

Definition at line 556 of file edselfnt.cpp.

References ASC_PG_Dialog::RunModal().

Referenced by execaction_pg().

bool mineComp ( const MineType v1,
const MineType v2 

Definition at line 69 of file edselfnt.cpp.

References MineType::id.

Referenced by sortItems().

bool objectComp ( const ObjectType v1,
const ObjectType v2 

Definition at line 56 of file edselfnt.cpp.

References ObjectType::name.

Referenced by sortItems().

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

bool terrainComp ( const TerrainType v1,
const TerrainType v2 

Definition at line 61 of file edselfnt.cpp.

References TerrainType::Weather::art, TerrainType::name, and TerrainType::weather.

Referenced by sortItems().

Variable Documentation

sigc::signal<void> filtersChangedSignal

Definition at line 42 of file edselfnt.cpp.

Referenced by execaction(), selectunitsetfilter(), and showSelectionWindow().