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

various functions for the mapeditor More...

#include <stdarg.h>
#include "global.h"
#include "vehicletype.h"
#include "buildingtype.h"
#include "edmisc.h"
#include "loadbi3.h"
#include "edgen.h"
#include "edselfnt.h"
#include "edglobal.h"
#include "gameoptions.h"
#include "mapdisplay.h"
#include "itemrepository.h"
#include "clipboard.h"
#include "resourceplacementdialog.h"
#include "maped-mainscreen.h"
#include "attack.h"
#include "mapimageexport.h"
#include "viewcalculation.h"
#include "statistics.h"
#include "spfst-legacy.h"
#include "dialogs/unitinfodialog.h"
#include "dialogs/editmapparam.h"
#include "dialogs/alliancesetup.h"
#include "dialogs/playersetup.h"
#include "dialogs/editgameoptions.h"
#include "dialogs/admingame.h"
#include "dialogs/eventeditor.h"
#include "dialogs/newmap.h"
#include "dialogs/terraininfo.h"
#include "widgets/textrenderer.h"
#include "dialogs/exchangegraphics.h"
#include "dialogs/fileselector.h"
#include "dialogs/importbi3map.h"
#include "dialogs/unitguidedialog.h"
#include "dialogs/vehiclepropertyeditor.h"
#include "stack.h"
Include dependency graph for edglobal.cpp:

Go to the source code of this file.

Classes

class  PlayerColorPanel
 

Functions

int infomessage (char *formatstring,...)
 
ASCString getbipath (void)
 
void showPlayerPanel (bool open)
 
int countPlayersBinary (const ContainerBase *cont)
 
int countPlayers (const ContainerBase *cont)
 
void infoMessageClipboardPlayers (const ContainerBase *cont)
 
void execaction (int code)
 this executes all functions that use legacy Eventhandling More...
 
void execaction_pg (int code)
 this executes all functions that use Paragui Eventhandling More...
 
void execaction_ev (int code)
 

Variables

const char * execactionnames [execactionscount]
 
SelectionHolder selection
 

Detailed Description

various functions for the mapeditor

Definition in file edglobal.cpp.

Function Documentation

int countPlayers ( const ContainerBase cont)
int countPlayersBinary ( const ContainerBase cont)

Definition at line 398 of file edglobal.cpp.

References ContainerBase::getCargo(), and ContainerBase::getOwner().

Referenced by countPlayers().

void execaction ( int  code)

this executes all functions that use legacy Eventhandling

Definition at line 427 of file edglobal.cpp.

References GameMap::_resourcemode, act_about, act_aboutbox, act_asc_resource, act_bi_resource, act_changeminestrength, act_changeplayers, act_changeresources, act_changeunitdir, act_changeunitvals, act_copyToClipboard, act_createresources, act_cutToClipboard, act_deleteallobjects, act_deletebuilding, act_deletemine, act_deleteobject, act_deletething, act_deletetopmostobject, act_deleteunit, act_displayResourceComparison, act_editArchivalInformation, act_editResearch, act_editResearchPoints, act_editTechAdapter, act_generateTechTree, act_mapgenerator, act_mirrorcursorx, act_mirrorcursory, act_movebuilding, act_pasteFromClipboard, act_placething, act_playerStrengthSummary, act_primaryAction, act_readClipBoard, act_resizemap, act_saveClipboard, act_setactivefieldvals, act_setactweatherglobal, act_setTurnNumber, act_setunitfilter, act_showPipeNet, act_smoothcoasts, act_switchmaps, act_terraininfo, act_toggleresourcemode, act_unitGuideDialog, act_unitSetInformation, act_unitsettransformation, act_viewmap, MainScreenWidget::activateMapLayer(), actmap, MapField::building, calculateallobjects(), changebuildingvalues(), changeminestrength(), changeresource(), changeUnitPropertyDialog(), MapDisplayPG::cursor, Vehicle::direction, displaymap(), displaymessage(), tdialogbox::done(), editArchivalInformation(), editResearch(), editResearchPoints(), editTechAdapter(), execaction(), filtersChangedSignal, generateTechTree(), getactfield(), GameMap::getCursor(), MapSwitcher::getDefaultAction(), getid(), getMainScreenWidget(), MainScreenWidget::getMapDisplay(), getVersionAndCompilation(), SelectionHolder::getWeather(), MapDisplayPG::Cursor::goTo(), infoMessageClipboardPlayers(), tputresourcesdlg::init(), mainScreenWidget, mapChanged, mapgenerator(), mapsaved, mapSwitcher, maxint, MapField::mines, mouseparams, movebuilding(), MapField::objects, pbpplayerstatistics(), SelectionHolder::pickup(), placeCurrentItem(), playerchange(), MapDisplayPG::Cursor::pos(), readClipboard(), readtextmessage(), releasetimeslice(), removeCurrentItem(), MapField::removemine(), MapField::removeObject(), repaintMap, resizemap(), resourceComparison(), tputresourcesdlg::run(), ASC_PG_Dialog::RunModal(), saveClipboard(), MapSwitcher::select, selectunitsetfilter(), GameTime::set(), setweatherall(), sidenum, ForestCalculation::smooth(), tmousesettings::taste, GameMap::time, MapSwitcher::toggle(), MainScreenWidget::toggleMapLayer(), MapDisplayPG::toggleMapLayer(), GameTime::turn(), unitGuideWindow(), unitsettransformation(), updateFieldInfo, MapField::vehicle, viewterraininfo(), viewUnitSetinfo(), MapCoordinate::x, GameMap::xsize, MapCoordinate::y, and GameMap::ysize.

Referenced by execaction(), execaction_ev(), and execaction_pg().

void execaction_ev ( int  code)
void execaction_pg ( int  code)

this executes all functions that use Paragui Eventhandling

Definition at line 766 of file edglobal.cpp.

References act_changecargo, act_changemapvals, act_changeproduction, act_clearresources, act_clearSelection, act_copyArea, act_createresources2, act_decrease_zoom, act_dumpAllBuildings, act_dumpAllObjects, act_dumpAllTerrain, act_dumpAllVehicleDefinitions, act_dumpBuilding, act_dumpObject, act_dumpVehicle, act_editpreferences, act_end, act_events, act_exchangeGraphics, act_help, act_import_bi_map, act_increase_zoom, act_insert_bi_map, act_loadmap, act_locateItemByID, act_maptopcx, act_mirrorMap, act_newmap, act_openControlPanel, act_pasteArea, act_pbpstatistics, act_releaseControlPanel, act_resetPlayerData, act_runLuaScript, act_runTranslationScript, act_savemap, act_savemapas, act_selbodentyp, act_selbodentypAll, act_selbuilding, act_selectgraphicset, act_selmine, act_selobject, act_selobjectAll, act_selunit, act_setactivefieldvals, act_setactnewweather, act_setmapparameters, act_setupalliances, act_setupplayers, act_showweapnrange, act_switchmaps, act_transformMap, act_unitinfo, actmap, adminGame(), asc_nullPointerCrash, asc_testFunction, buildingTypeRepository, cargoEditor(), MapDisplayPG::changeZoom(), choice_dlg(), SelectionHolder::clear(), computeview(), copyArea(), displaymap(), editGameOptions(), editMap(), editProduction(), errorMessage(), eventEditor(), exchangeGraphics(), execaction(), MapField::fuel, getactfield(), GameMap::getbuildingtype_byid(), MapField::getContainer(), GameMap::getCursor(), MapSwitcher::getDefaultAction(), GameMap::getField(), MainScreenWidget::getMapDisplay(), ASCmsgException::getMessage(), GameMap::getobjecttype_byid(), getPGApplication(), GameMap::getvehicletype_byid(), help(), importBI3Map(), ContainerBaseType::InternalVehicleProduction, k_loadmap(), k_savemap(), locateItemByID(), mainScreenWidget, mapsaved, mapSwitcher, MapField::material, mirrorMap(), newmap(), objectTypeRepository, pasteArea(), pbpplayerstatistics(), ASC_PG_App::Quit(), repaintMap, resourcePlacementDialog(), BuildingType::runTextIO(), TerrainType::runTextIO(), ObjectType::runTextIO(), VehicleType::runTextIO(), MapSwitcher::select, selectAndRunLuaScript(), selectFile(), selectgraphicset(), setmapparameters(), StatusMessageWindowHolder::SetText(), setupalliances(), setupPlayers(), showPlayerPanel(), ASC_MainScreenWidget::showWeaponRange(), terrainTypeRepository, testDebugFunction(), ASCString::toString(), transformMap(), MapField::typ, unitInfoDialog(), vehicleTypeRepository, viewChanged, warningMessage(), weatherConfigurationDialog(), writemaptopcx(), tnstream::writing, GameMap::xsize, and GameMap::ysize.

Referenced by execaction_ev().

ASCString getbipath ( void  )
int infomessage ( char *  formatstring,
  ... 
)
void infoMessageClipboardPlayers ( const ContainerBase cont)

Definition at line 417 of file edglobal.cpp.

References countPlayers(), and infoMessage().

Referenced by execaction().

void showPlayerPanel ( bool  open)

Definition at line 381 of file edglobal.cpp.

References PlayerColorPanel::Hide(), and PlayerColorPanel::Show().

Referenced by execaction_pg().

Variable Documentation

const char* execactionnames[execactionscount]

Definition at line 68 of file edglobal.cpp.

Referenced by ContextMenu::AutoTextContextAction::getText().

SelectionHolder selection