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
23
#include <
utils/foxtools/fxheader.h
>
24
#include <
utils/foxtools/MFXSynchQue.h
>
25
#include <
utils/foxtools/MFXThreadEvent.h
>
26
27
// ===========================================================================
28
// class declarations
29
// ===========================================================================
30
31
class
GNEApplicationWindow
;
32
class
GNERunPythonTool
;
33
class
GNEPythonTool
;
34
class
GUIEvent
;
35
36
// ===========================================================================
37
// class definitions
38
// ===========================================================================
39
44
class
GNERunPythonToolDialog
:
protected
FXDialogBox {
46
FXDECLARE(
GNERunPythonToolDialog
)
47
48
public
:
50
GNERunPythonToolDialog
(
GNEApplicationWindow
* GNEApp);
51
53
~GNERunPythonToolDialog
();
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
*);
82
83
protected
:
85
GNERunPythonToolDialog
();
86
88
void
updateDialog
();
89
90
private
:
92
GNEApplicationWindow
*
myGNEApp
;
93
95
GNEPythonTool
*
myPythonTool
=
nullptr
;
96
98
GNERunPythonTool
*
myRunTool
=
nullptr
;
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
116
MFXSynchQue<GUIEvent*>
myEvents
;
117
119
FXEX::MFXThreadEvent
myThreadEvent
;
120
122
GNERunPythonToolDialog
(
const
GNERunPythonToolDialog
&) =
delete
;
123
125
GNERunPythonToolDialog
&
operator=
(
const
GNERunPythonToolDialog
&) =
delete
;
126
};
MFXSynchQue.h
MFXThreadEvent.h
FXEX::MFXThreadEvent
Definition
MFXThreadEvent.h:101
GNEApplicationWindow
The main window of Netedit.
Definition
GNEApplicationWindow.h:39
GNEPythonTool
Definition
GNEPythonTool.h:36
GNERunPythonToolDialog
Abstract dialog for tools.
Definition
GNERunPythonToolDialog.h:44
GNERunPythonToolDialog::myText
FXText * myText
text
Definition
GNERunPythonToolDialog.h:101
GNERunPythonToolDialog::GNERunPythonToolDialog
GNERunPythonToolDialog()
FOX needs this.
Definition
GNERunPythonToolDialog.cpp:242
GNERunPythonToolDialog::myPythonTool
GNEPythonTool * myPythonTool
tool
Definition
GNERunPythonToolDialog.h:95
GNERunPythonToolDialog::myRerunButton
FXButton * myRerunButton
rerun button
Definition
GNERunPythonToolDialog.h:107
GNERunPythonToolDialog::updateDialog
void updateDialog()
update toolDialog
Definition
GNERunPythonToolDialog.cpp:130
GNERunPythonToolDialog::myGNEApp
GNEApplicationWindow * myGNEApp
pointer to GNEApplicationWindow
Definition
GNERunPythonToolDialog.h:92
GNERunPythonToolDialog::onCmdRerun
long onCmdRerun(FXObject *, FXSelector, void *)
event after press rerun button
Definition
GNERunPythonToolDialog.cpp:171
GNERunPythonToolDialog::myThreadEvent
FXEX::MFXThreadEvent myThreadEvent
io-event with the runner thread
Definition
GNERunPythonToolDialog.h:119
GNERunPythonToolDialog::onCmdBack
long onCmdBack(FXObject *, FXSelector, void *)
event after press back button
Definition
GNERunPythonToolDialog.cpp:185
GNERunPythonToolDialog::operator=
GNERunPythonToolDialog & operator=(const GNERunPythonToolDialog &)=delete
Invalidated assignment operator.
GNERunPythonToolDialog::getGNEApp
GNEApplicationWindow * getGNEApp() const
get to GNEApplicationWindow
Definition
GNERunPythonToolDialog.cpp:107
GNERunPythonToolDialog::~GNERunPythonToolDialog
~GNERunPythonToolDialog()
destructor
Definition
GNERunPythonToolDialog.cpp:103
GNERunPythonToolDialog::GNERunPythonToolDialog
GNERunPythonToolDialog(const GNERunPythonToolDialog &)=delete
Invalidated copy constructor.
GNERunPythonToolDialog::myCloseButton
FXButton * myCloseButton
close button
Definition
GNERunPythonToolDialog.h:113
GNERunPythonToolDialog::onThreadEvent
long onThreadEvent(FXObject *, FXSelector, void *)
called when the thread signals an event
Definition
GNERunPythonToolDialog.cpp:207
GNERunPythonToolDialog::myRunTool
GNERunPythonTool * myRunTool
thread for running tool
Definition
GNERunPythonToolDialog.h:98
GNERunPythonToolDialog::onCmdSaveLog
long onCmdSaveLog(FXObject *, FXSelector, void *)
event after press save button
Definition
GNERunPythonToolDialog.cpp:149
GNERunPythonToolDialog::myBackButton
FXButton * myBackButton
back button
Definition
GNERunPythonToolDialog.h:110
GNERunPythonToolDialog::onCmdAbort
long onCmdAbort(FXObject *, FXSelector, void *)
event after press abort button
Definition
GNERunPythonToolDialog.cpp:163
GNERunPythonToolDialog::runTool
void runTool(GNEPythonTool *tool)
run tool (this open windows)
Definition
GNERunPythonToolDialog.cpp:113
GNERunPythonToolDialog::myEvents
MFXSynchQue< GUIEvent * > myEvents
List of received events.
Definition
GNERunPythonToolDialog.h:116
GNERunPythonToolDialog::onCmdClose
long onCmdClose(FXObject *, FXSelector, void *)
event after press close button
Definition
GNERunPythonToolDialog.cpp:193
GNERunPythonToolDialog::myAbortButton
FXButton * myAbortButton
abort button
Definition
GNERunPythonToolDialog.h:104
GNERunPythonTool
Abstract dialog for tools.
Definition
GNERunPythonTool.h:39
GUIEvent
Definition
GUIEvent.h:86
MFXSynchQue
Definition
MFXSynchQue.h:39
fxheader.h
src
netedit
dialogs
tools
GNERunPythonToolDialog.h
Generated on Sat Nov 9 2024 00:10:27 for Eclipse SUMO - Simulation of Urban MObility by
1.9.8