53main(
int argc,
char** argv) {
61 FXRegistry reg(
"SUMO GUI",
"sumo-gui");
76 FXApp application(
"SUMO GUI",
"sumo-gui");
78 application.init(argc, argv);
80 if (!FXGLVisual::supported(&application, major, minor)) {
81 throw ProcessError(
TL(
"This system has no OpenGL support. Exiting."));
98 ret = application.run();
100 if (std::string(e.what()) != std::string(
"Process Error") && std::string(e.what()) != std::string(
"")) {
106 }
catch (
const std::exception& e) {
107 if (std::string(e.what()) != std::string(
"")) {
@ MID_HOTKEY_CTRL_Q_CLOSE
Main window closes.
GUICompleteSchemeStorage gSchemeStorage
std::string gLanguage
the language for GUI elements and messages
The main window of the SUMO-gui.
void loadOnStartup(const bool wait=false)
config or net on startup
void dependentBuild(const bool isLibsumo)
build dependt
void init(FXApp *app, bool netedit=false)
Initialises the storage with some default settings.
static void fillOptions()
Inserts options used by the simulation into the OptionsCont-singleton.
static MsgHandler * getErrorInstance()
Returns the instance to add errors to.
virtual void inform(std::string msg, bool addType=true)
adds a new error to the list
static void setFactory(Factory func)
Sets the factory function to use for new MsgHandlers.
static MsgHandler * create(MsgType type)
A storage for options typed value containers)
void setApplicationName(const std::string &appName, const std::string &fullName)
Sets the application name.
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
void setApplicationDescription(const std::string &appDesc)
Sets the application description.
static OptionsCont & getOptions()
Retrieves the options.
bool processMetaOptions(bool missingOptions)
Checks for help and configuration output, returns whether we should exit.
static void setArgs(int argc, char **argv)
Stores the command line arguments for later parsing.
static void getOptions(const bool commandLineOnly=false)
Parses the command line arguments and loads the configuration.
static void close()
Closes all of an applications subsystems.
static void close()
request termination of connection
static void init()
Initialises the xml-subsystem.
int main(int argc, char **argv)