58 #ifdef CHECK_MEMORY_LEAKS 72 main(
int argc,
char** argv) {
108 FXApp application(
"Netedit",
"DLR");
110 application.init(argc, argv);
112 if (!FXGLVisual::supported(&application, major, minor)) {
113 throw ProcessError(
"This system has no OpenGL support. Exiting.");
121 window->dependentBuild();
126 application.addSignal(SIGINT, window,
MID_QUIT);
127 application.create();
129 if (oc.
isSet(
"configuration-file") || oc.
isSet(
"sumo-net-file")) {
130 window->loadOnStartup();
133 ret = application.run();
135 }
catch (
const std::exception& e) {
136 if (std::string(e.what()) != std::string(
"")) {
static void init()
Initialises the xml-subsystem.
static MsgHandler * getErrorInstance()
Returns the instance to add errors to.
GUICompleteSchemeStorage gSchemeStorage
The main window of the Netedit.
static void setValidation(const std::string &validationScheme, const std::string &netValidationScheme)
Enables or disables validation.
void setApplicationDescription(const std::string &appDesc)
Sets the application description.
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
static void assignLock(AbstractMutex *lock)
Sets the lock to use The lock will not be deleted.
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.
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
bool processMetaOptions(bool missingOptions)
Checks for help and configuration output, returns whether we should exit.
static void getOptions()
Parses the command line arguments and loads the configuration.
int main(int argc, char **argv)
void inform(std::string msg, bool addType=true)
adds a new error to the list
A storage for options typed value containers)
void init(FXApp *app)
Initialises the storage with some default settings.
static void allowTextures(const bool val)
switch texture drawing on and off
static void fillOptions(OptionsCont &oc)
clears and initializes the OptionsCont
bool isSet(const std::string &name, bool failOnNonExistant=true) const
Returns the information whether the named option is set.
void setApplicationName(const std::string &appName, const std::string &fullName)
Sets the application name.