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
23
#include <
netedit/dialogs/GNEDialog.h
>
24
#include <
utils/foxtools/MFXSynchQue.h
>
25
#include <
utils/foxtools/MFXThreadEvent.h
>
26
27
// ===========================================================================
28
// class declarations
29
// ===========================================================================
30
31
class
GNERunPythonTool;
32
class
GNEPythonTool
;
33
class
GUIEvent
;
34
35
// ===========================================================================
36
// class definitions
37
// ===========================================================================
38
39
class
GNERunPythonToolDialog
:
public
GNEDialog
{
41
FXDECLARE(
GNERunPythonToolDialog
)
42
43
public
:
45
GNERunPythonToolDialog
(
GNEApplicationWindow
* applicationWindow,
GNEPythonTool
* tool);
46
48
~GNERunPythonToolDialog
();
49
51
void
runInternalTest
(
const
InternalTestStep::DialogArgument
* dialogArgument);
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
79
protected
:
81
FOX_CONSTRUCTOR
(
GNERunPythonToolDialog
);
82
84
void
updateDialog
();
85
86
private
:
88
GNEPythonTool
*
myPythonTool
=
nullptr
;
89
91
GNERunPythonTool*
myRunTool
=
nullptr
;
92
94
FXText*
myText
=
nullptr
;
95
97
MFXSynchQue<GUIEvent*>
myEvents
;
98
100
FXEX::MFXThreadEvent
myThreadEvent
;
101
103
GNERunPythonToolDialog
(
const
GNERunPythonToolDialog
&) =
delete
;
104
106
GNERunPythonToolDialog
&
operator=
(
const
GNERunPythonToolDialog
&) =
delete
;
107
};
GNEDialog.h
MFXSynchQue.h
MFXThreadEvent.h
FXEX::MFXThreadEvent
Definition
MFXThreadEvent.h:101
GNEApplicationWindow
The main window of Netedit.
Definition
GNEApplicationWindow.h:50
GNEDialog
Definition
GNEDialog.h:38
GNEPythonTool
Definition
GNEPythonTool.h:36
GNERunPythonToolDialog
Definition
run/GNERunPythonToolDialog.h:35
GNERunPythonToolDialog::myText
FXText * myText
text
Definition
tools/GNERunPythonToolDialog.h:94
GNERunPythonToolDialog::runInternalTest
void runInternalTest(const InternalTestStep::DialogArgument *dialogArgument)
run internal test
GNERunPythonToolDialog::updateDialog
void updateDialog()
update toolDialog
Definition
tools/GNERunPythonToolDialog.cpp:106
GNERunPythonToolDialog::onCmdRerun
long onCmdRerun(FXObject *, FXSelector, void *)
event after press rerun button
Definition
tools/GNERunPythonToolDialog.cpp:149
GNERunPythonToolDialog::myThreadEvent
FXEX::MFXThreadEvent myThreadEvent
io-event with the runner thread
Definition
tools/GNERunPythonToolDialog.h:100
GNERunPythonToolDialog::onCmdBack
long onCmdBack(FXObject *, FXSelector, void *)
event after press back button
GNERunPythonToolDialog::operator=
GNERunPythonToolDialog & operator=(const GNERunPythonToolDialog &)=delete
Invalidated assignment operator.
GNERunPythonToolDialog::~GNERunPythonToolDialog
~GNERunPythonToolDialog()
destructor
GNERunPythonToolDialog::GNERunPythonToolDialog
GNERunPythonToolDialog(const GNERunPythonToolDialog &)=delete
Invalidated copy constructor.
GNERunPythonToolDialog::onThreadEvent
long onThreadEvent(FXObject *, FXSelector, void *)
called when the thread signals an event
Definition
tools/GNERunPythonToolDialog.cpp:193
GNERunPythonToolDialog::myRunTool
GNERunPythonTool * myRunTool
thread for running tool
Definition
tools/GNERunPythonToolDialog.h:91
GNERunPythonToolDialog::FOX_CONSTRUCTOR
FOX_CONSTRUCTOR(GNERunPythonToolDialog)
FOX needs this.
GNERunPythonToolDialog::myPythonTool
const GNEPythonTool * myPythonTool
python tool to run
Definition
run/GNERunPythonToolDialog.h:63
GNERunPythonToolDialog::onCmdSaveLog
long onCmdSaveLog(FXObject *, FXSelector, void *)
event after press save button
Definition
tools/GNERunPythonToolDialog.cpp:127
GNERunPythonToolDialog::onCmdAbort
long onCmdAbort(FXObject *, FXSelector, void *)
event after press abort button
Definition
tools/GNERunPythonToolDialog.cpp:141
GNERunPythonToolDialog::myEvents
MFXSynchQue< GUIEvent * > myEvents
List of received events.
Definition
tools/GNERunPythonToolDialog.h:97
GNERunPythonToolDialog::onCmdAccept
long onCmdAccept(FXObject *, FXSelector, void *)
event after press close button
GNERunPythonToolDialog::GNERunPythonToolDialog
GNERunPythonToolDialog(GNEApplicationWindow *applicationWindow, GNEPythonTool *tool)
FOX-declaration.
GNERunPythonToolDialog::onCmdCancel
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
Definition
tools/GNERunPythonToolDialog.cpp:171
GUIEvent
Definition
GUIEvent.h:86
InternalTestStep::DialogArgument
dialog arguments, used for certain modal dialogs that can not be edited using tab
Definition
InternalTestStep.h:48
MFXSynchQue
Definition
MFXSynchQue.h:39
src
netedit
dialogs
tools
GNERunPythonToolDialog.h
Generated on Tue Oct 28 2025 00:11:01 for Eclipse SUMO - Simulation of Urban MObility by
1.9.8