edmain.cpp File Reference

The map editor's main program. More...

#include <algorithm>
#include <memory>
#include <SDL_image.h>
#include <signal.h>
#include "edmisc.h"
#include "loadbi3.h"
#include "edselfnt.h"
#include "edglobal.h"
#include "errors.h"
#include "gameoptions.h"
#include "mapdisplay.h"
#include "itemrepository.h"
#include "loadimage.h"
#include "graphicset.h"
#include "paradialog.h"
#include "soundList.h"
#include "maped-mainscreen.h"
#include "cannedmessages.h"
#include "stdio-errorhandler.h"
#include "unitset.h"
#include "widgets/textrenderer-addons.h"
#include "spfst-legacy.h"
#include "dataversioncheck.h"
#include "tasks/taskhibernatingcontainer.h"
#include "memorycheck.cpp"
#include "clparser/mapedit.cpp"

Include dependency graph for edmain.cpp:

Go to the source code of this file.

Functions

pfont load_font (const char *name)
void loadEditordata (void)
void buildemptymap (void)
int mapeditorMainThread (void *_mapname)
void setSaveNotification ()
int main (int argc, char *argv[])


Detailed Description

The map editor's main program.

Definition in file edmain.cpp.


Function Documentation

void buildemptymap ( void   ) 

Definition at line 95 of file edmain.cpp.

References actmap, GameMap::allocateFields(), and terrainTypeRepository.

Referenced by mapeditorMainThread().

pfont load_font ( const char *  name  ) 

Definition at line 62 of file edmain.cpp.

References loadfont(), and tnstream::reading.

Referenced by loadEditordata(), loadLegacyFonts(), and main().

void loadEditordata ( void   ) 

Definition at line 69 of file edmain.cpp.

References Schriften::arial8, dataLoaderTicker, Schriften::large, load_font(), loadAllData(), loadmessages(), loadUnitSets(), Schriften::monogui, registerDataLoader(), schriften, Schriften::smallarial, Schriften::smallsystem, and uselessCallToTextRenderAddons().

Referenced by mapeditorMainThread().

int main ( int  argc,
char *  argv[] 
)

Definition at line 193 of file edmain.cpp.

References checkDataVersion(), MapSwitcher::deleteMaps(), exit_asc(), fatalError(), tvirtualscreenbuf::init(), initFileIO(), initializeEventHandling(), ASC_PG_App::InitScreen(), CGameOptions::Instance(), kgetstartupmessage(), mapChanged, CGameOptions::mapeditor_xresolution, CGameOptions::mapeditor_yresolution, mapeditorMainThread(), CGameOptions::mapeditWindowedMode, mapSwitcher, TaskHibernatingContainer::registerHooks(), repaintMap, ASC_PG_App::setIcon(), setSaveNotification(), setWindowCaption(), updateFieldInfo, virtualscreenbuf, and writegameoptions().

Referenced by checkDataFileVersion().

int mapeditorMainThread ( void *  _mapname  ) 

Definition at line 106 of file edmain.cpp.

References activefontsettings, actmap, Schriften::arial8, tfontsettings::background, buildemptymap(), choice_dlg(), tfontsettings::color, dataLoaderTicker, exist(), fatalError(), tfontsettings::font, tfileerror::getFileName(), ASCmsgException::getMessage(), getPGApplication(), tfontsettings::justify, k_savemap(), lefttext, tfontsettings::length, lightblue, loadEditordata(), tmaploaders::loadmap(), loadpalette(), mainScreenWidget, mapextension, mapLoadingExceptionChecker(), GameMap::PreferredFilenames::mapname, mapsaved, mapSwitcher, mousevisible(), patimat(), GameMap::preferredFileNames, ASC_PG_App::Run(), schriften, setstartvariables(), and MapSwitcher::toggle().

Referenced by main().

void setSaveNotification (  ) 

Definition at line 188 of file edmain.cpp.

References mapsaved.

Referenced by main().


Generated on Mon May 21 01:34:07 2012 for Advanced Strategic Command by  doxygen 1.5.1