43main(
int argc,
char** argv) {
68 FXApp application(
"SUMO netedit",
"netedit");
70 application.init(argc, argv);
72 if (!FXGLVisual::supported(&application, major, minor)) {
73 throw ProcessError(
"This system has no OpenGL support. Exiting.");
93 ret = application.run();
95 }
catch (
const std::exception& e) {
96 if (std::string(e.what()) != std::string(
"")) {
@ MID_HOTKEY_CTRL_Q_CLOSE
Main window closes.
GUICompleteSchemeStorage gSchemeStorage
The main window of the Netedit.
void loadOptionOnStartup()
load net on startup
void dependentBuild()
build dependent
static void fillOptions(OptionsCont &oc)
clears and initializes the OptionsCont
void init(FXApp *app, bool netedit=false)
Initialises the storage with some default settings.
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 init()
Initialises the xml-subsystem.
int main(int argc, char **argv)