50 myThreadEvent.setTarget(
this);
55 headerFrame->setPadLeft(0);
56 headerFrame->setPadRight(0);
62 myText =
new FXText(textFrame, 0, 0, (TEXT_READONLY | LAYOUT_FILL_X | LAYOUT_FILL_Y));
65 myText->setStyled(
true);
67 updateDialogButtons();
101 std::string line(
"-------------------------------------------\n");
102 myText->appendStyledText(line.c_str(), (
int)line.length(), 4, TRUE);
103 myText->appendStyledText(
"rerun tool\n", 1, TRUE);
144 dev <<
myText->getText().text();
153 bool toolFinished =
false;
179 myText->appendStyledText(ec->
getMsg().c_str(), (int)ec->
getMsg().length(), style, TRUE);
187 if (
myText->getText().find(
"Error") != -1) {
189 }
else if ((
myText->getText().find(
"Success") != -1) && (
myText->getText().find(
"Warning") == -1)) {
FXDEFMAP(GNERunDialog) GNERunDialogMap[]
@ MID_GNE_BUTTON_SAVE
save button
@ ID_LOADTHREAD_EVENT
The loading thread.
@ MID_GNE_POSTPROCESSINGNETGENERATE
postprocesing netgenerate
#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.
GNEExternalRunner * getExternalRunner() const
get external runner
GNEApplicationWindow * myApplicationWindow
FOX needs this.
FXButton * myAcceptButton
accept button
long closeDialogAccepting()
close dialog accepting the changes
OpenType
Open dialog type.
FXButton * myBackButton
back button
FXButton * myRunButton
run button
long closeDialogCanceling()
close dialog declining the changes
bool isRunning() const
check if is running
void runTool(GNERunDialog *runDialog)
run tool called from dialog
void abort()
abort running
void updateDialogButtons()
update dialog buttons
long onThreadEvent(FXObject *, FXSelector, void *)
called when the thread signals an event
bool myError
flag to check if there is an error
long onCmdSaveLog(FXObject *, FXSelector, void *)
event after press save button
~GNERunDialog()
destructor
virtual long onCmdAccept(FXObject *, FXSelector, void *)=0
event after press close button
void addEvent(GUIEvent *event, const bool signal)
add event in the queue
long onCmdAbort(FXObject *, FXSelector, void *)
event after press abort button
FXEX::MFXThreadEvent myThreadEvent
io-event with the runner thread
long onCmdRun(FXObject *, FXSelector, void *)
event after press rerun button
MFXSynchQue< GUIEvent * > myEvents
List of received events.
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.
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 StringBijection< TXTFileExtension > TXTFileExtensions
TXT file Extensions.