Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
tools/GNERunPythonToolDialog.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// Dialog for running tools
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
26
27// ===========================================================================
28// class declarations
29// ===========================================================================
30
31class GNERunPythonTool;
32class GNEPythonTool;
33class GUIEvent;
34
35// ===========================================================================
36// class definitions
37// ===========================================================================
38
39class GNERunPythonToolDialog : public GNEDialog {
41 FXDECLARE(GNERunPythonToolDialog)
42
43public:
46
49
52
55
57 long onCmdSaveLog(FXObject*, FXSelector, void*);
58
60 long onCmdAbort(FXObject*, FXSelector, void*);
61
63 long onCmdRerun(FXObject*, FXSelector, void*);
64
66 long onCmdBack(FXObject*, FXSelector, void*);
67
69 long onCmdCancel(FXObject*, FXSelector, void*);
70
72 long onCmdAccept(FXObject*, FXSelector, void*);
73
75 long onThreadEvent(FXObject*, FXSelector, void*);
76
78
79protected:
82
84 void updateDialog();
85
86private:
89
91 GNERunPythonTool* myRunTool = nullptr;
92
94 FXText* myText = nullptr;
95
98
101
104
107};
The main window of Netedit.
void runInternalTest(const InternalTestStep::DialogArgument *dialogArgument)
run internal test
long onCmdRerun(FXObject *, FXSelector, void *)
event after press rerun button
FXEX::MFXThreadEvent myThreadEvent
io-event with the runner thread
long onCmdBack(FXObject *, FXSelector, void *)
event after press back button
GNERunPythonToolDialog & operator=(const GNERunPythonToolDialog &)=delete
Invalidated assignment operator.
~GNERunPythonToolDialog()
destructor
GNERunPythonToolDialog(const GNERunPythonToolDialog &)=delete
Invalidated copy constructor.
long onThreadEvent(FXObject *, FXSelector, void *)
called when the thread signals an event
GNERunPythonTool * myRunTool
thread for running tool
FOX_CONSTRUCTOR(GNERunPythonToolDialog)
FOX needs this.
const GNEPythonTool * myPythonTool
python tool to run
long onCmdSaveLog(FXObject *, FXSelector, void *)
event after press save button
long onCmdAbort(FXObject *, FXSelector, void *)
event after press abort button
MFXSynchQue< GUIEvent * > myEvents
List of received events.
long onCmdAccept(FXObject *, FXSelector, void *)
event after press close button
GNERunPythonToolDialog(GNEApplicationWindow *applicationWindow, GNEPythonTool *tool)
FOX-declaration.
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
dialog arguments, used for certain modal dialogs that can not be edited using tab