Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNENetgenerateDialog.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 netgenerate
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
25
26// ===========================================================================
27// class declarations
28// ===========================================================================
29
31
32// ===========================================================================
33// class definitions
34// ===========================================================================
35
40class GNENetgenerateDialog : protected FXDialogBox {
42 FXDECLARE(GNENetgenerateDialog)
43
44
46
47public:
50
53
55 void openDialog();
56
59
61 long onCmdOpenOutputFile(FXObject*, FXSelector, void*);
62
64 long onCmdSetOutput(FXObject*, FXSelector, void*);
65
67 long onCmdSetGrid(FXObject*, FXSelector, void*);
68
70 long onCmdSetSpider(FXObject*, FXSelector, void*);
71
73 long onCmdSetRandomGrid(FXObject*, FXSelector, void*);
74
76 long onCmdSetRandom(FXObject*, FXSelector, void*);
77
79 long onCmdRun(FXObject*, FXSelector, void*);
80
82 long onCmdAdvanced(FXObject*, FXSelector, void*);
83
85 long onUpdSettingsConfigured(FXObject*, FXSelector, void*);
86
88 long onCmdCancel(FXObject*, FXSelector, void*);
89
91
92protected:
95
96private:
99
101 FXLabel* myGridNetworkLabel = nullptr;
102
104 FXLabel* mySpiderNetworkLabel = nullptr;
105
107 FXLabel* myRandomGridNetworkLabel = nullptr;
108
110 FXLabel* myRandomNetworkLabel = nullptr;
111
114
117
120
123
125 FXTextField* myOutputTextField = nullptr;
126
128 FXButton* myRunButton = nullptr;
129
131 FXButton* myAdvancedButton = nullptr;
132
135
137 GNENetgenerateDialog& operator=(const GNENetgenerateDialog&) = delete;
138};
The main window of Netedit.
Dialog for netgenerate tool dialog.
long onCmdSetRandom(FXObject *, FXSelector, void *)
set random
long onCmdSetRandomGrid(FXObject *, FXSelector, void *)
set random grid
FXLabel * mySpiderNetworkLabel
grid network
long onCmdSetOutput(FXObject *, FXSelector, void *)
set output file
MFXCheckableButton * myRandomNetworkButton
grid network
long onCmdOpenOutputFile(FXObject *, FXSelector, void *)
open output file
long onCmdSetGrid(FXObject *, FXSelector, void *)
set grid mode
long onCmdAdvanced(FXObject *, FXSelector, void *)
event after press advanced button
FXLabel * myGridNetworkLabel
grid network
friend class GNENetgenerateDialogElements
FOX-declaration.
long onCmdSetSpider(FXObject *, FXSelector, void *)
set spider
FXButton * myAdvancedButton
advanced button
MFXCheckableButton * myGridNetworkButton
grid network
MFXCheckableButton * mySpiderNetworkButton
grid network
long onCmdRun(FXObject *, FXSelector, void *)
event after press run button
GNEApplicationWindow * myGNEApp
pointer to GNEApplicationWindow
FXButton * myRunButton
run button
MFXCheckableButton * myRandomGridNetworkButton
random grid network
long onUpdSettingsConfigured(FXObject *, FXSelector, void *)
check if settings are enabled
FXLabel * myRandomGridNetworkLabel
random grid network
FXLabel * myRandomNetworkLabel
grid network
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
FXTextField * myOutputTextField
output text field
every row value