53main(
int argc,
char** argv) {
75 FXApp application(
"SUMO GUI",
"sumo-gui");
77 application.init(argc, argv);
79 if (!FXGLVisual::supported(&application, major, minor)) {
80 throw ProcessError(
TL(
"This system has no OpenGL support. Exiting."));
97 ret = application.run();
99 if (std::string(e.what()) != std::string(
"Process Error") && std::string(e.what()) != std::string(
"")) {
105 }
catch (
const std::exception& e) {
106 if (std::string(e.what()) != std::string(
"")) {
@ MID_HOTKEY_CTRL_Q_CLOSE
Main window closes.
GUICompleteSchemeStorage gSchemeStorage
The main window of the SUMO-gui.
void loadOnStartup(const bool wait=false)
void dependentBuild(const bool isLibsumo)
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 setupI18n(const std::string &locale="")
set up gettext stuff
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.
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)