48FXIMPLEMENT(
GNERunPythonToolDialog, FXDialogBox, GNERunPythonToolDialogMap, ARRAYNUMBER(GNERunPythonToolDialogMap))
58 myThreadEvent.setTarget(
this);
69 headerFrame->setPadLeft(0);
70 headerFrame->setPadRight(0);
71 new FXButton(headerFrame, (std::string(
"\t\t") +
TL(
"Save output")).c_str(),
76 myText =
new FXText(textFrame, 0, 0, (TEXT_READONLY | LAYOUT_FILL_X | LAYOUT_FILL_Y));
79 myText->setStyled(
true);
83 myAbortButton =
new FXButton(buttonsFrame, (
TL(
"Abort") + std::string(
"\t\t") +
TL(
"abort running")).c_str(),
85 myRerunButton =
new FXButton(buttonsFrame, (
TL(
"Rerun") + std::string(
"\t\t") +
TL(
"rerun tool")).c_str(),
87 myBackButton =
new FXButton(buttonsFrame, (
TL(
"Back") + std::string(
"\t\t") +
TL(
"back to tool dialog")).c_str(),
91 new FXSeparator(contentFrame);
95 myCloseButton =
new FXButton(buttonsFrame, (
TL(
"Close") + std::string(
"\t\t") +
TL(
"close dialog")).c_str(),
115 setTitle((tool->
getToolName() +
" output").c_str());
121 FXDialogBox::show(PLACEMENT_SCREEN);
144 FXDialogBox::update();
153 if (logFile.size() > 0) {
155 dev <<
myText->getText().text();
173 std::string line(
"-------------------------------------------\n");
174 myText->appendStyledText(line.c_str(), (
int)line.length(), 4, TRUE);
175 myText->appendStyledText(
"rerun tool\n", 1, TRUE);
231 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
@ MID_GNE_BUTTON_ACCEPT
accept button
#define GUIDesignFrameThick
Thick frame extended over frame parent.
#define GUIDesignButtonIcon
button only with icon
#define GUIDesignButtonAccept
Accept Button.
#define GUIDesignAuxiliarHorizontalFrame
design for auxiliar (Without borders) horizontal frame used to pack another frames
#define GUIDesignLabelThick(justify)
label extended over frame with thick and with text justify to left
#define GUIDesignAuxiliarDialogBoxResizable
design for standard dialog box (for example, about dialog)
#define GUIDesignButtonReset
Reset Button.
#define GUIDesignAuxiliarFrame
design for auxiliar (Without borders) frame extended in all directions
#define GUIDesignHorizontalFrame
Horizontal frame extended over frame parent with padding and spacing.
@ MESSAGE_OCCURRED
send when a message occured
@ ERROR_OCCURRED
send when a error occured
@ OUTPUT_OCCURRED
send when a tool produces output
@ TOOL_ENDED
send when a tool finishes
The main window of Netedit.
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.
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.
static std::string saveToolLog(FXWindow *window)
open tool file dialog