45 main(
int argc,
char** argv) {
69 FXApp application(
"SUMO netedit",
"Eclipse");
71 application.init(argc, argv);
73 if (!FXGLVisual::supported(&application, major, minor)) {
74 throw ProcessError(
"This system has no OpenGL support. Exiting.");
94 ret = application.run();
96 }
catch (
const std::exception& e) {
97 if (std::string(e.what()) != std::string(
"")) {
void init(FXApp *app, bool netedit=false)
Initialises the storage with some default settings.
static void init()
Initialises the xml-subsystem.
static MsgHandler * getErrorInstance()
Returns the instance to add errors to.
GUICompleteSchemeStorage gSchemeStorage
static void getOptions(const bool commandLineOnly=false)
Parses the command line arguments and loads the configuration.
The main window of the Netedit.
void setApplicationDescription(const std::string &appDesc)
Sets the application description.
static void close()
Closes all of an applications subsystems.
static void setArgs(int argc, char **argv)
Stores the command line arguments for later parsing.
static OptionsCont & getOptions()
Retrieves the options.
static MsgHandler * create(MsgType type)
bool processMetaOptions(bool missingOptions)
Checks for help and configuration output, returns whether we should exit.
void loadOptionOnStartup()
load net on startup
int main(int argc, char **argv)
virtual void inform(std::string msg, bool addType=true)
adds a new error to the list
A storage for options typed value containers)
static void setFactory(Factory func)
Sets the factory function to use for new MsgHandlers.
void dependentBuild()
build dependent
static void fillOptions(OptionsCont &oc)
clears and initializes the OptionsCont
void setApplicationName(const std::string &appName, const std::string &fullName)
Sets the application name.