23#include <netedit/tools/GNERunPythonTool.h>
58 GNEDialog::Buttons::ABORT_RERUN_BACK_CLOSE,
59 OpenType::MODAL, ResizeMode::RESIZABLE, 640, 480) {
61 myThreadEvent.setTarget(
this);
64 myRunTool =
new GNERunPythonTool(
this, myEvents, myThreadEvent);
68 headerFrame->setPadLeft(0);
69 headerFrame->setPadRight(0);
75 myText =
new FXText(textFrame, 0, 0, (TEXT_READONLY | LAYOUT_FILL_X | LAYOUT_FILL_Y));
78 myText->setStyled(
true);
80 setTitle((tool->
getToolName() +
" output").c_str());
86 GNEDialog::show(PLACEMENT_SCREEN);
92 myRunTool->runTool(tool);
129 const auto logFile = GNEApplicationWindowHelper::saveToolLog(
this);
131 if (logFile.size() > 0) {
133 dev <<
myText->getText().text();
151 std::string line(
"-------------------------------------------\n");
152 myText->appendStyledText(line.c_str(), (
int)line.length(), 4, TRUE);
153 myText->appendStyledText(
"rerun tool\n", 1, TRUE);
165 onCmdClose(
nullptr, 0,
nullptr);
217 myText->appendStyledText(ec->
getMsg().c_str(), (int)ec->
getMsg().length(), style, TRUE);
@ MID_GNE_OPENPYTHONTOOLDIALOG
call tool
@ MID_GNE_POSTPROCESSINGPYTHONTOOL
call tool for post processing
@ MID_GNE_BUTTON_RERUN
rerun button
@ MID_GNE_BUTTON_ABORT
abort button
@ MID_GNE_BUTTON_SAVE
save button
@ ID_LOADTHREAD_EVENT
The loading thread.
@ MID_GNE_BUTTON_BACK
back button
#define GUIDesignFrameThick
Thick frame extended over frame parent.
#define GUIDesignButtonIcon
button only with icon
#define GUIDesignLabelThick(justify)
label extended over frame with thick and with text justify to left
#define GUIDesignHorizontalFrame
Horizontal frame extended over frame parent with padding and spacing.
@ MESSAGE_OCCURRED
send when a message occurred
@ ERROR_OCCURRED
send when a error occurred
@ OUTPUT_OCCURRED
send when a tool produces output
@ TOOL_ENDED
send when a tool finishes
GUIIcon
An enumeration of icons used by the gui applications.
The main window of Netedit.
GNEApplicationWindow * myApplicationWindow
FOX needs this.
static FXButton * buildFXButton(FXComposite *p, const std::string &text, const std::string &tip, const std::string &help, FXIcon *ic, FXObject *tgt, FXSelector sel, FXuint opts=BUTTON_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD)
build button
const std::string & getMsg() const
Returns the message.
GUIEventType getOwnType() const
returns the event type
static FXIcon * getIcon(const GUIIcon which)
returns a icon previously defined in the enum GUIIcon
static FXHiliteStyle * getStyles()
The text colors used.
dialog arguments, used for certain modal dialogs that can not be edited using tab
Static storage of an output device and its base (abstract) implementation.
void close()
Closes the device and removes it from the dictionary.
static OutputDevice & getDevice(const std::string &name, bool usePrefix=true)
Returns the described OutputDevice.