Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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
27
28// ===========================================================================
29// class declarations
30// ===========================================================================
31
34class GNEPythonTool;
35class GUIEvent;
36
37// ===========================================================================
38// class definitions
39// ===========================================================================
40
43 FXDECLARE(GNERunPythonToolDialog)
44
45public:
48
51
53 void runInternalTest(const InternalTestStep::DialogTest* modalArguments);
54
57
59 void runTool(GNEPythonTool* tool);
60
63
65 long onCmdSaveLog(FXObject*, FXSelector, void*);
66
68 long onCmdAbort(FXObject*, FXSelector, void*);
69
71 long onCmdRerun(FXObject*, FXSelector, void*);
72
74 long onCmdBack(FXObject*, FXSelector, void*);
75
77 long onCmdClose(FXObject*, FXSelector, void*);
78
80 long onThreadEvent(FXObject*, FXSelector, void*);
81
83
84protected:
87
89 void updateDialog();
90
91private:
94
97
100
102 FXText* myText = nullptr;
103
105 FXButton* myAbortButton = nullptr;
106
108 FXButton* myRerunButton = nullptr;
109
111 FXButton* myBackButton = nullptr;
112
114 FXButton* myCloseButton = nullptr;
115
118
121
124
127};
The main window of Netedit.
GNEPythonTool * myPythonTool
tool
FXButton * myRerunButton
rerun button
void updateDialog()
update toolDialog
GNEApplicationWindow * myGNEApp
pointer to GNEApplicationWindow
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.
GNEApplicationWindow * getGNEApp() const
get to GNEApplicationWindow
GNERunPythonToolDialog(const GNERunPythonToolDialog &)=delete
Invalidated copy constructor.
FXButton * myCloseButton
close button
long onThreadEvent(FXObject *, FXSelector, void *)
called when the thread signals an event
GNERunPythonTool * myRunTool
thread for running tool
long onCmdSaveLog(FXObject *, FXSelector, void *)
event after press save button
FXButton * myBackButton
back button
long onCmdAbort(FXObject *, FXSelector, void *)
event after press abort button
void runTool(GNEPythonTool *tool)
run tool (this open windows)
MFXSynchQue< GUIEvent * > myEvents
List of received events.
void runInternalTest(const InternalTestStep::DialogTest *modalArguments)
run internal test
long onCmdClose(FXObject *, FXSelector, void *)
event after press close button
FXButton * myAbortButton
abort button
Abstract dialog for tools.
dialog arguments (used for certain functions that opens modal dialogs)