#include <string.h>#include <stdlib.h>#include <cstdlib>#include <ctype.h>#include "pgpopupmenu.h"#include "typen.h"#include "basegfx.h"#include "mappolygons.h"#include "misc.h"#include "newfont.h"#include "events.h"#include "loaders.h"#include "dlg_box.h"#include "spfst.h"#include "dialog.h"#include "strtmesg.h"#include "palette.h"#include "mapalgorithms.h"Include dependency graph for edmisc.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Functions | |
| bool | mousePressedOnField (const MapCoordinate &pos, const SPoint &mousePos, bool cursorChanged, int button, int prio) |
| bool | mouseDraggedToField (const MapCoordinate &pos, const SPoint &mousePos, bool cursorChanged, int prio) |
| void | setstartvariables (void) |
| void | exchg (int *a1, int *a2) |
| void | k_savemap (char saveas) |
| void | k_loadmap (void) |
| void | lines (int x1, int y, int x2, int y2) |
| void | changeunitvalues (Vehicle *ae) |
| void | changeresource (void) |
| void | changebuildingvalues (Building &b) |
| void | changeminestrength (void) |
| void | newmap (void) |
| void | cargoEditor (ContainerBase *container) |
| void | playerchange (void) |
| void | editpolygon (Poly_gon &poly) |
| tfield * | getactfield () |
| void | selectunitsetfilter (void) |
| void | movebuilding () |
| void | unitsettransformation (void) |
| void | transformMap () |
| replaces the terrain and the objects on a map according to a translation table | |
| void | editArchivalInformation () |
| void | resourceComparison () |
| displays a textmessage comparing the resources of all players | |
| void | unitProductionLimitation () |
| the function to edit the vehicle type that are allowed to be build by units | |
| void | saveClipboard () |
| void | readClipboard () |
| void | setweatherall (int weather) |
| void | editResearch () |
| void | editResearchPoints () |
| void | generateTechTree () |
| void | editTechAdapter () |
| void | placeCurrentItem () |
| bool | removeCurrentItem () |
| void | locateItemByID () |
| void | mirrorMap () |
| void | copyArea () |
| void | pasteArea () |
| void | testDebugFunction () |
Variables | |
| bool | mapsaved |
| MapSwitcher | mapSwitcher |
|
|
Definition at line 201 of file cargoeditor.cpp. References ContainerBase::baseType, ContainerBaseType::maxLoadableUnits, PG_Widget::RunModal(), and PG_Widget::Show(). Referenced by execaction_pg(). |
|
|
Definition at line 1176 of file edmisc.cpp. References displaymap(), tdialogbox::done(), BuildingValues::init(), and BuildingValues::run(). Referenced by execaction(). |
|
|
Definition at line 1920 of file edmisc.cpp. References tdialogbox::done(), getactfield(), tminestrength::init(), and tminestrength::run(). Referenced by execaction(). |
|
|
Definition at line 1846 of file edmisc.cpp. References tdialogbox::done(), tres::init(), and tres::run(). Referenced by execaction(). |
|
|
Definition at line 1765 of file edmisc.cpp. References tdialogbox::done(), UnitPropertyEditor::init(), and UnitPropertyEditor::run(). Referenced by execaction(). |
|
|
Definition at line 4684 of file edmisc.cpp. Referenced by execaction_pg(). |
|
|
Definition at line 3311 of file edmisc.cpp. References actmap, tdialogbox::done(), EditArchivalInformation::init(), and EditArchivalInformation::run(). Referenced by execaction(). |
|
|
Definition at line 849 of file edmisc.cpp. |
|
|
Definition at line 3399 of file edmisc.cpp. References actmap, chooseString(), Research::developedTechnologies, Player::getName(), Technology::id, infoMessage(), ItemFiltrationSystem::isFiltered(), GameMap::player, printTech(), Player::research, strrr(), ItemFiltrationSystem::Technology, and technologyRepository. Referenced by execaction(). |
|
|
Definition at line 3468 of file edmisc.cpp. References actmap, chooseString(), editInt(), Player::getName(), GameMap::player, Research::progress, Player::research, and strrr(). Referenced by execaction(). |
|
|
Definition at line 3591 of file edmisc.cpp. References actmap, chooseString(), editString(), Player::getName(), GameMap::player, Research::predefinedTechAdapter, Player::research, strrr(), and ASCString::toLower(). Referenced by execaction(). |
|
||||||||||||
|
Definition at line 483 of file edmisc.cpp. |
|
|
Definition at line 3490 of file edmisc.cpp. References choice_dlg(), chooseString(), TechDependency::findInheritanceLevel(), Technology::id, ItemFiltrationSystem::isFiltered(), Technology::name, printTech(), selectFile(), Technology::techDependency, ItemFiltrationSystem::Technology, technologyRepository, tnstream::writeString(), TechDependency::writeTreeOutput(), and tnstream::writing. Referenced by execaction(). |
|
|
Definition at line 3721 of file edmisc.cpp. References actmap, GameMap::getCursor(), and GameMap::getField(). Referenced by changeminestrength(), execaction(), execaction_pg(), tres::init(), tminestrength::init(), movebuilding(), and CopyMap::paste(). |
|
|
Definition at line 613 of file edmisc.cpp. References actmap, GameMap::Campaign::avail, GameMap::campaign, GameMap::codeWord, GameMap::Campaign::directaccess, displaymap(), enterpassword(), tmaploaders::loadmap(), mapextension, mapLoadingExceptionChecker(), mapsaved, removemessage(), s1, selectFile(), and Password::setUnencoded(). Referenced by execaction_pg(). |
|
|
Definition at line 591 of file edmisc.cpp. References actmap, displaymap(), mapextension, GameMap::PreferredFilenames::mapname, mapsaved, GameMap::preferredFileNames, savemap(), and selectFile(). Referenced by execaction_pg(), and mapeditorMainThread(). |
|
||||||||||||||||||||
|
Definition at line 212 of file edmisc.cpp. |
|
|
Definition at line 3815 of file edmisc.cpp. References ASC_PG_Dialog::RunModal(), and PG_Widget::Show(). Referenced by execaction_pg(). |
|
|
Definition at line 4184 of file edmisc.cpp. References actmap, displaymap(), tdialogbox::done(), MirrorMap::init(), mapChanged, and MirrorMap::run(). Referenced by execaction_pg(). |
|
||||||||||||||||||||
|
Definition at line 96 of file edmisc.cpp. References act_primaryAction, and execaction_ev(). Referenced by Maped_MainScreenWidget::Maped_MainScreenWidget(). |
|
||||||||||||||||||||||||
|
Definition at line 84 of file edmisc.cpp. References act_primaryAction, and execaction_ev(). Referenced by Maped_MainScreenWidget::Maped_MainScreenWidget(). |
|
|
Definition at line 2544 of file edmisc.cpp. References tfield::building, Building::chainbuildingtofield(), displaymap(), displaymessage(), getactfield(), Building::getEntry(), getfield(), mapsaved, selectfield(), Vehicle::setnewposition(), terrainaccessible(), Building::unchainbuildingfromfield(), tfield::vehicle, warning(), MapCoordinate::x, Vehicle::xpos, MapCoordinate::y, and Vehicle::ypos. Referenced by execaction(). |
|
|
Definition at line 869 of file edmisc.cpp. References actmap, createNewMap(), and mapChanged. Referenced by execaction_pg(). |
|
|
Definition at line 4694 of file edmisc.cpp. References actmap, displaymap(), and mapChanged. Referenced by execaction_pg(). |
|
|
Definition at line 63 of file edmisc.cpp. References actmap, SelectionHolder::brushSize, circularFieldIterator(), GameMap::getCursor(), SelectionHolder::getSelection(), mapChanged, selection, and MapComponent::vPlace(). Referenced by execaction(). |
|
|
Definition at line 472 of file edmisc.cpp. References tdialogbox::done(), tplayerchange::init(), and tplayerchange::run(). Referenced by execaction(). |
|
|
Definition at line 3362 of file edmisc.cpp. References clipboardFileExtension, tnstream::reading, and selectFile(). Referenced by execaction(). |
|
|
Definition at line 75 of file edmisc.cpp. References actmap, GameMap::getCursor(), SelectionHolder::getSelection(), and selection. Referenced by execaction(). |
|
|
displays a textmessage comparing the resources of all players
Definition at line 3319 of file edmisc.cpp. References GameMap::_resourcemode, actmap, Player::buildingList, displaymessage(), Resources::fuel, GameMap::getField(), Resources::material, GameMap::player, Resources::resource(), resourceNames, resourceTypeNum, and strrr(). Referenced by execaction(). |
|
|
Definition at line 3371 of file edmisc.cpp. References clipboardFileExtension, selectFile(), and tnstream::writing. Referenced by execaction(). |
|
|
Definition at line 2677 of file edmisc.cpp. References chooseString(), displaymessage(), filter(), filtersChangedSignal, and ItemFiltrationSystem::itemFilters. Referenced by execaction(). |
|
|
Definition at line 664 of file edmisc.cpp. References activefontsettings, tfontsettings::color, tfontsettings::font, mapsaved, schriften, and Schriften::smallarial. Referenced by mapeditorMainThread(). |
|
|
Definition at line 3380 of file edmisc.cpp. References actmap, and GameMap::getField(). Referenced by execaction(). |
|
|
Definition at line 4714 of file edmisc.cpp. References tfield::a, actmap, GameMap::cleartemps(), GameMap::getField(), tfield::getVisibility(), repaintMap, and visible_now. Referenced by execaction_pg(). |
|
|
replaces the terrain and the objects on a map according to a translation table
Definition at line 3036 of file edmisc.cpp. References actmap, PropertyContainer::addIntegerArray(), tfield::addobject(), tfield::bdt, tfield::building, buildingTypeRepository, calculateallobjects(), cbbuildingentry, Building::chainbuildingtofield(), displaymap(), displaymessage(), PropertyContainer::find(), Building::getEntry(), GameMap::getField(), getNeighbouringFieldCoordinate(), GameMap::getPlayer(), GameMap::getPlayerCount(), getTerrainBitType(), tfield::getweather(), ContainerBaseType::id, TerrainType::id, tfield::objects, objectTypeRepository, tnstream::reading, tfield::removeobject(), TextFormatParser::run(), selectFile(), tfield::setparams(), tfield::sortobjects(), TerrainType::Weather::terraintype, terrainTypeRepository, transform(), Building::typ, tfield::typ, Building::unchainbuildingfromfield(), and TerrainType::weather. Referenced by execaction_pg(). |
|
|
the function to edit the vehicle type that are allowed to be build by units
|
|
|
Definition at line 2950 of file edmisc.cpp. References UnitTypeTransformation::run(). Referenced by execaction(). |
|
|
|
Definition at line 3025 of file edmisc.cpp. Referenced by execaction(), execaction_pg(), main(), and mapeditorMainThread(). |
1.4.2