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-2024 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
33class GNEPythonTool;
34class GUIEvent;
35
36// ===========================================================================
37// class definitions
38// ===========================================================================
39
44class GNERunPythonToolDialog : protected FXDialogBox {
46 FXDECLARE(GNERunPythonToolDialog)
47
48public:
51
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*);
82
83protected:
86
88 void updateDialog();
89
90private:
93
96
99
101 FXText* myText = nullptr;
102
104 FXButton* myAbortButton = nullptr;
105
107 FXButton* myRerunButton = nullptr;
108
110 FXButton* myBackButton = nullptr;
111
113 FXButton* myCloseButton = nullptr;
114
117
120
123
126};
The main window of Netedit.
Abstract dialog for tools.
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.
long onCmdClose(FXObject *, FXSelector, void *)
event after press close button
FXButton * myAbortButton
abort button
Abstract dialog for tools.