Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNERunDialog.h
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2001-2025 German Aerospace Center (DLR) and others.
4// This program and the accompanying materials are made available under the
5// terms of the Eclipse Public License 2.0 which is available at
6// https://www.eclipse.org/legal/epl-2.0/
7// This Source Code may also be made available under the following Secondary
8// Licenses when the conditions for such availability set forth in the Eclipse
9// Public License 2.0 are satisfied: GNU General Public License, version 2
10// or later which is available at
11// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13/****************************************************************************/
18// Abstract dialog for running tools
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
26
27// ===========================================================================
28// class declarations
29// ===========================================================================
30
31class GUIEvent;
32
33// ===========================================================================
34// class definitions
35// ===========================================================================
36
37class GNERunDialog : public GNEDialog {
39 FXDECLARE_ABSTRACT(GNERunDialog)
40
41public:
43 GNERunDialog(GNEApplicationWindow* applicationWindow,
44 const std::string& name, GUIIcon titleIcon);
45
48
50 virtual void runInternalTest(const InternalTestStep::DialogArgument* dialogArgument) = 0;
51
53 virtual std::string getRunCommand() const = 0;
54
56 void addEvent(GUIEvent* event, const bool signal);
57
60
62 long onCmdAbort(FXObject*, FXSelector, void*);
63
65 long onCmdRun(FXObject*, FXSelector, void*);
66
68 virtual long onCmdBack(FXObject*, FXSelector, void*) = 0;
69
71 virtual long onCmdAccept(FXObject*, FXSelector, void*) = 0;
72
74 long onCmdSaveLog(FXObject*, FXSelector, void*);
75
77 long onThreadEvent(FXObject*, FXSelector, void*);
78
80
81protected:
84
86 FXText* myText = nullptr;
87
90
93
95 bool myError = false;
96
99
100private:
102 GNERunDialog(const GNERunDialog&) = delete;
103
106};
GUIIcon
An enumeration of icons used by the gui applications.
Definition GUIIcons.h:33
The main window of Netedit.
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
FOX_CONSTRUCTOR(GNERunDialog)
FOX needs this.
GNERunDialog(const GNERunDialog &)=delete
Invalidated copy constructor.
long onCmdAbort(FXObject *, FXSelector, void *)
event after press abort button
FXEX::MFXThreadEvent myThreadEvent
io-event with the runner thread
virtual std::string getRunCommand() const =0
get run command
FXText * myText
text
virtual void runInternalTest(const InternalTestStep::DialogArgument *dialogArgument)=0
run internal test
GNERunDialog & operator=(const GNERunDialog &)=delete
Invalidated assignment operator.
virtual long onCmdBack(FXObject *, FXSelector, void *)=0
event after press back button
long onCmdRun(FXObject *, FXSelector, void *)
event after press rerun button
MFXSynchQue< GUIEvent * > myEvents
List of received events.
dialog arguments, used for certain modal dialogs that can not be edited using tab