#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 "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 | |
| void | execaction_pg (int code) |
| this executes all functions that use Paragui Eventhandling | |
| void | execaction_ev (int code) |
Variables | |
| const char * | execactionnames [execactionscount] |
| SelectionHolder | selection |
Definition in file edglobal.cpp.
| int countPlayers | ( | const ContainerBase * | cont | ) |
Definition at line 413 of file edglobal.cpp.
References countPlayersBinary(), ContainerBase::getMap(), and GameMap::getPlayerCount().
Referenced by infoMessageClipboardPlayers().
| int countPlayersBinary | ( | const ContainerBase * | cont | ) |
Definition at line 404 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 433 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(), changeunitvalues(), 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, selection, selectunitsetfilter(), GameTime::set(), setweatherall(), sidenum, ForestCalculation::smooth(), tmousesettings::taste, GameMap::time, MapSwitcher::toggle(), 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 | ) |
Definition at line 1032 of file edglobal.cpp.
References execaction(), and execaction_pg().
Referenced by Maped_MainScreenWidget::eventKeyDown(), Maped_MainScreenWidget::eventKeyUp(), mouseDraggedToField(), mousePressedOnField(), Maped_MainScreenWidget::selectObject(), and Maped_MainScreenWidget::selectTerrain().
| void execaction_pg | ( | int | code | ) |
this executes all functions that use Paragui Eventhandling
Definition at line 772 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(), 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(), VehicleType::runTextIO(), BuildingType::runTextIO(), MapSwitcher::select, selectAndRunLuaScript(), selectFile(), selectgraphicset(), selection, 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 | ) |
Definition at line 293 of file edglobal.cpp.
References appendbackslash(), CGameOptions::BI3directory, displaymessage(), editString(), exist(), getbi3path(), CGameOptions::Instance(), pathdelimitterstring, and CGameOptions::setChanged().
| int infomessage | ( | char * | formatstring, | |
| ... | ||||
| ) |
Definition at line 250 of file edglobal.cpp.
References actdisplayedmessage, activefontsettings, agmp, tfontsettings::background, tfontsettings::color, tfontsettings::font, tfontsettings::justify, lastdisplayedmessageticker, lefttext, tfontsettings::length, lightgray, tfontsettings::markcolor, npop, npush, red, tgraphmodeparameters::resolutionx, tgraphmodeparameters::resolutiony, schriften, showtext3c(), Schriften::smallarial, and ticker.
| void infoMessageClipboardPlayers | ( | const ContainerBase * | cont | ) |
Definition at line 423 of file edglobal.cpp.
References countPlayers(), and infoMessage().
Referenced by execaction().
| void showPlayerPanel | ( | bool | open | ) |
Definition at line 387 of file edglobal.cpp.
References PlayerColorPanel::Hide(), and PlayerColorPanel::Show().
Referenced by execaction_pg().
| const char* execactionnames[execactionscount] |
Definition at line 67 of file edglobal.cpp.
Referenced by ContextMenu::AutoTextContextAction::getText().
Definition at line 188 of file edglobal.cpp.
Referenced by Maped_MainScreenWidget::brushChanged(), Maped_MainScreenWidget::clearSelection(), BuildingItem::display(), VehicleItem::display(), PlayerColorPanel::eventKeyDown(), execaction(), execaction_pg(), EditingEnvironment::getBrushSize(), EditingEnvironment::getSelectedPlayerPosition(), MapItemTypeWidgetFactory< MapItemTypeWidget< VehicleType > >::itemSelected(), MapComponent::MapComponent(), Maped_MainScreenWidget::Maped_MainScreenWidget(), ItemSelectorWidget::nameMatch(), MineItem::place(), TerrainItem::place(), BuildingItem::place(), VehicleItem::place(), placeCurrentItem(), removeCurrentItem(), and Maped_MainScreenWidget::selectLuaBrush().
1.5.1