58 #ifdef CHECK_MEMORY_LEAKS 67 main(
int argc,
char** argv) {
92 FXApp application(
"Netedit",
"DLR");
94 application.init(argc, argv);
96 if (!FXGLVisual::supported(&application, major, minor)) {
97 throw ProcessError(
"This system has no OpenGL support. Exiting.");
105 application.addSignal(SIGINT, window,
MID_QUIT);
106 application.create();
115 ret = application.run();
117 }
catch (
const std::exception& e) {
118 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
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 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.
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)
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.
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.