Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNERunNetgenerateDialog.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
27
28// ===========================================================================
29// class declarations
30// ===========================================================================
31
34class OptionsCont;
35class GUIEvent;
36
37// ===========================================================================
38// class definitions
39// ===========================================================================
40
45class GNERunNetgenerateDialog : protected FXDialogBox {
48
49public:
52
55
58
60 void run(const OptionsCont* netgenerateOptions);
61
64
66 long onCmdSaveLog(FXObject*, FXSelector, void*);
67
69 long onCmdAbort(FXObject*, FXSelector, void*);
70
72 long onCmdRerun(FXObject*, FXSelector, void*);
73
75 long onCmdBack(FXObject*, FXSelector, void*);
76
78 long onCmdClose(FXObject*, FXSelector, void*);
79
81 long onCmdCancel(FXObject*, FXSelector, void*);
82
84 long onThreadEvent(FXObject*, FXSelector, void*);
86
87protected:
90
92 void updateDialog();
93
94private:
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
126 bool myError = false;
127
130
133};
The main window of Netedit.
Abstract dialog for tools.
long onCmdAbort(FXObject *, FXSelector, void *)
event after press abort button
FXButton * myBackButton
back button
GNEApplicationWindow * getGNEApp() const
get to GNEApplicationWindow
MFXSynchQue< GUIEvent * > myEvents
List of received events.
FXButton * myAbortButton
abort button
long onCmdSaveLog(FXObject *, FXSelector, void *)
event after press save button
bool myError
flag to check if there is an error
FXButton * myCloseButton
close button
FXButton * myRerunButton
rerun button
void updateDialog()
update toolDialog
GNERunNetgenerateDialog(const GNERunNetgenerateDialog &)=delete
Invalidated copy constructor.
long onCmdRerun(FXObject *, FXSelector, void *)
event after press rerun button
GNERunNetgenerateDialog & operator=(const GNERunNetgenerateDialog &)=delete
Invalidated assignment operator.
FXEX::MFXThreadEvent myThreadEvent
io-event with the runner thread
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
long onCmdClose(FXObject *, FXSelector, void *)
event after press close button
GNERunNetgenerate * myRunNetgenerate
thread for running tool
void run(const OptionsCont *netgenerateOptions)
run tool (this open windows)
GNEApplicationWindow * myGNEApp
pointer to GNEApplicationWindow
long onThreadEvent(FXObject *, FXSelector, void *)
called when the thread signals an event
const OptionsCont * myNetgenerateOptions
netgenerate options
long onCmdBack(FXObject *, FXSelector, void *)
event after press back button
thread for running netgenerate
A storage for options typed value containers)
Definition OptionsCont.h:89