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
23
#include <
utils/foxtools/fxheader.h
>
24
#include <
utils/foxtools/MFXDialogBox.h
>
25
#include <
utils/foxtools/MFXSynchQue.h
>
26
#include <
utils/foxtools/MFXThreadEvent.h
>
27
28
// ===========================================================================
29
// class declarations
30
// ===========================================================================
31
32
class
GNEApplicationWindow
;
33
class
GNERunPythonTool
;
34
class
GNEPythonTool
;
35
class
GUIEvent
;
36
37
// ===========================================================================
38
// class definitions
39
// ===========================================================================
40
41
class
GNERunPythonToolDialog
:
protected
MFXDialogBox
{
43
FXDECLARE(
GNERunPythonToolDialog
)
44
45
public
:
47
GNERunPythonToolDialog
(
GNEApplicationWindow
* GNEApp);
48
50
~GNERunPythonToolDialog
();
51
53
void
runInternalTest
(
const
InternalTestStep::DialogTest
* modalArguments);
54
56
GNEApplicationWindow
*
getGNEApp
()
const
;
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
84
protected
:
86
GNERunPythonToolDialog
();
87
89
void
updateDialog
();
90
91
private
:
93
GNEApplicationWindow
*
myGNEApp
;
94
96
GNEPythonTool
*
myPythonTool
=
nullptr
;
97
99
GNERunPythonTool
*
myRunTool
=
nullptr
;
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
117
MFXSynchQue<GUIEvent*>
myEvents
;
118
120
FXEX::MFXThreadEvent
myThreadEvent
;
121
123
GNERunPythonToolDialog
(
const
GNERunPythonToolDialog
&) =
delete
;
124
126
GNERunPythonToolDialog
&
operator=
(
const
GNERunPythonToolDialog
&) =
delete
;
127
};
MFXDialogBox.h
MFXSynchQue.h
MFXThreadEvent.h
FXEX::MFXThreadEvent
Definition
MFXThreadEvent.h:101
GNEApplicationWindow
The main window of Netedit.
Definition
GNEApplicationWindow.h:49
GNEPythonTool
Definition
GNEPythonTool.h:36
GNERunPythonToolDialog
Definition
GNERunPythonToolDialog.h:41
GNERunPythonToolDialog::myText
FXText * myText
text
Definition
GNERunPythonToolDialog.h:102
GNERunPythonToolDialog::GNERunPythonToolDialog
GNERunPythonToolDialog()
FOX needs this.
Definition
GNERunPythonToolDialog.cpp:252
GNERunPythonToolDialog::myPythonTool
GNEPythonTool * myPythonTool
tool
Definition
GNERunPythonToolDialog.h:96
GNERunPythonToolDialog::myRerunButton
FXButton * myRerunButton
rerun button
Definition
GNERunPythonToolDialog.h:108
GNERunPythonToolDialog::updateDialog
void updateDialog()
update toolDialog
Definition
GNERunPythonToolDialog.cpp:140
GNERunPythonToolDialog::myGNEApp
GNEApplicationWindow * myGNEApp
pointer to GNEApplicationWindow
Definition
GNERunPythonToolDialog.h:93
GNERunPythonToolDialog::onCmdRerun
long onCmdRerun(FXObject *, FXSelector, void *)
event after press rerun button
Definition
GNERunPythonToolDialog.cpp:181
GNERunPythonToolDialog::myThreadEvent
FXEX::MFXThreadEvent myThreadEvent
io-event with the runner thread
Definition
GNERunPythonToolDialog.h:120
GNERunPythonToolDialog::onCmdBack
long onCmdBack(FXObject *, FXSelector, void *)
event after press back button
Definition
GNERunPythonToolDialog.cpp:195
GNERunPythonToolDialog::operator=
GNERunPythonToolDialog & operator=(const GNERunPythonToolDialog &)=delete
Invalidated assignment operator.
GNERunPythonToolDialog::getGNEApp
GNEApplicationWindow * getGNEApp() const
get to GNEApplicationWindow
Definition
GNERunPythonToolDialog.cpp:117
GNERunPythonToolDialog::~GNERunPythonToolDialog
~GNERunPythonToolDialog()
destructor
Definition
GNERunPythonToolDialog.cpp:107
GNERunPythonToolDialog::GNERunPythonToolDialog
GNERunPythonToolDialog(const GNERunPythonToolDialog &)=delete
Invalidated copy constructor.
GNERunPythonToolDialog::myCloseButton
FXButton * myCloseButton
close button
Definition
GNERunPythonToolDialog.h:114
GNERunPythonToolDialog::onThreadEvent
long onThreadEvent(FXObject *, FXSelector, void *)
called when the thread signals an event
Definition
GNERunPythonToolDialog.cpp:217
GNERunPythonToolDialog::myRunTool
GNERunPythonTool * myRunTool
thread for running tool
Definition
GNERunPythonToolDialog.h:99
GNERunPythonToolDialog::onCmdSaveLog
long onCmdSaveLog(FXObject *, FXSelector, void *)
event after press save button
Definition
GNERunPythonToolDialog.cpp:159
GNERunPythonToolDialog::myBackButton
FXButton * myBackButton
back button
Definition
GNERunPythonToolDialog.h:111
GNERunPythonToolDialog::onCmdAbort
long onCmdAbort(FXObject *, FXSelector, void *)
event after press abort button
Definition
GNERunPythonToolDialog.cpp:173
GNERunPythonToolDialog::runTool
void runTool(GNEPythonTool *tool)
run tool (this open windows)
Definition
GNERunPythonToolDialog.cpp:123
GNERunPythonToolDialog::myEvents
MFXSynchQue< GUIEvent * > myEvents
List of received events.
Definition
GNERunPythonToolDialog.h:117
GNERunPythonToolDialog::runInternalTest
void runInternalTest(const InternalTestStep::DialogTest *modalArguments)
run internal test
Definition
GNERunPythonToolDialog.cpp:111
GNERunPythonToolDialog::onCmdClose
long onCmdClose(FXObject *, FXSelector, void *)
event after press close button
Definition
GNERunPythonToolDialog.cpp:203
GNERunPythonToolDialog::myAbortButton
FXButton * myAbortButton
abort button
Definition
GNERunPythonToolDialog.h:105
GNERunPythonTool
Abstract dialog for tools.
Definition
GNERunPythonTool.h:39
GUIEvent
Definition
GUIEvent.h:86
InternalTestStep::DialogTest
dialog arguments (used for certain functions that opens modal dialogs)
Definition
InternalTestStep.h:47
MFXDialogBox
Definition
MFXDialogBox.h:31
MFXSynchQue
Definition
MFXSynchQue.h:39
fxheader.h
src
netedit
dialogs
tools
GNERunPythonToolDialog.h
Generated on Wed Nov 12 2025 21:14:15 for Eclipse SUMO - Simulation of Urban MObility by
1.9.8