Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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 "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 loaddata (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 89 of file edmain.cpp.

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

Referenced by mapeditorMainThread().

pfont load_font const char *  name  ) 
 

Definition at line 58 of file edmain.cpp.

References loadfont(), and tnstream::reading.

Referenced by loaddata(), and main().

void loaddata void   ) 
 

Definition at line 64 of file edmain.cpp.

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

Referenced by gamethread(), and mapeditorMainThread().

int main int  argc,
char *  argv[]
 

Definition at line 187 of file edmain.cpp.

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

int mapeditorMainThread void *  _mapname  ) 
 

Definition at line 100 of file edmain.cpp.

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

Referenced by main().

void setSaveNotification  ) 
 

Definition at line 182 of file edmain.cpp.

References mapsaved.

Referenced by main().


Generated on Tue Jun 24 01:41:07 2008 for Advanced Strategic Command by  doxygen 1.4.2