44main(
int argc,
char** argv) {
49 neteditOptions.setApplicationDescription(
TL(
"Graphical editor for SUMO networks, demand and additional infrastructure."));
50 neteditOptions.setApplicationName(
"netedit",
"Eclipse SUMO netedit Version " VERSION_STRING);
52 FXRegistry reg(
"SUMO GUI",
"sumo-gui");
70 if (neteditOptions.processMetaOptions(
false)) {
74 if (neteditOptions.isSet(
"attribute-help-output")) {
80 FXApp application(
"SUMO netedit",
"netedit");
82 application.init(argc, argv);
84 if (!FXGLVisual::supported(&application, major, minor)) {
85 throw ProcessError(
TL(
"This system has no OpenGL support. Exiting."));
89 gLanguage = neteditOptions.getString(
"language");
105 ret = application.run();
107 }
catch (
const std::exception& e) {
108 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 Netedit.
void loadOptionOnStartup()
load net on startup
void dependentBuild()
build dependent
static void writeAttributeHelp()
write machine readable attribute help to file
static void fillOptions(OptionsCont &neteditOptions)
clears and initializes the OptionsCont
static void setDefaultOptions(OptionsCont &neteditOptions)
sets required options for proper functioning
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 setFactory(Factory func)
Sets the factory function to use for new MsgHandlers.
static MsgHandler * create(MsgType type)
static OptionsCont & getOptions()
Retrieves the options.
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)