33 netgenerateOptions->getBool(
"close-dialog-automatic")),
55 const std::string exePath =
"netgenerate.exe";
57 const std::string exePath =
"netgenerate";
59 const char* sumoHomeEnv = getenv(
"SUMO_HOME");
60 std::string sumoHome =
"";
61 if (sumoHomeEnv !=
nullptr && sumoHomeEnv != std::string(
"")) {
62 sumoHome = std::string(sumoHomeEnv);
64 if (sumoHome.back() ==
'\\') {
65 sumoHome = sumoHome.substr(0, sumoHome.size() - 1);
68 if (sumoHome.front() ==
'"') {
69 sumoHome.erase(sumoHome.begin());
71 if (sumoHome.size() > 0 && sumoHome.back() ==
'"') {
78 std::string runCommand =
"\"" + sumoHome + exePath +
"\"";
83 if (topic !=
"Configuration") {
85 for (
const auto& entry : entries) {
@ MID_GNE_NETGENERATE
netgenerate dialog
@ MID_GNE_POSTPROCESSINGNETGENERATE
postprocesing netgenerate
GUIIcon
An enumeration of icons used by the gui applications.
The main window of Netedit.
GNEExternalRunner * getExternalRunner() const
get external runner
GNEApplicationWindow * myApplicationWindow
FOX needs this.
void openDialog(FXWindow *focusableElement=nullptr)
open dialog
long closeDialogCanceling()
close dialog declining the changes
GNERunDialog(GNEApplicationWindow *applicationWindow, const std::string &name, GUIIcon titleIcon, const bool closeIfSucess)
FOX-declaration.
~GNERunNetgenerateDialog()
destructor
void runInternalTest(const InternalTestStep::DialogArgument *dialogArgument)
run internal test
bool myError
flag to check if there is an error
GNERunNetgenerateDialog(GNEApplicationWindow *applicationWindow, const OptionsCont *netgenerateOptions)
Constructor.
long onCmdAccept(FXObject *, FXSelector, void *)
event after press close button
long onCmdBack(FXObject *, FXSelector, void *)
event after press back button
std::string getRunCommand() const
get run command
const OptionsCont * myNetgenerateOptions
netgenerate options
dialog arguments, used for certain modal dialogs that can not be edited using tab
A storage for options typed value containers).
static std::string escapeShell(const std::string &orig)
Escape special characters with backslash.