33 netgenerateOptions->getBool(
"close-dialog-automatic")),
34 myNetgenerateOptions(netgenerateOptions) {
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
void runTool(GNERunDialog *runDialog)
run tool called from dialog
void abort()
abort running
~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)
const std::vector< std::string > & getSubTopics() const
return the list of subtopics
bool isDefault(const std::string &name) const
Returns the information whether the named option has still the default value.
std::string getValueString(const std::string &name) const
Returns the string-value of the named option (all options)
std::vector< std::string > getSubTopicsEntries(const std::string &subtopic) const
return the list of entries for the given subtopic
static std::string escapeShell(const std::string &orig)
Escape special characters with backslash.