Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNERouteDialog.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-2023 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 edit calibrator routes
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
24
25// ===========================================================================
26// class declarations
27// ===========================================================================
28
29class GNERoute;
30
31// ===========================================================================
32// class definitions
33// ===========================================================================
34
45 FXDECLARE(GNERouteDialog)
46
47public:
49 GNERouteDialog(GNEDemandElement* editedCalibratorRoute, bool updatingElement);
50
53
57 long onCmdAccept(FXObject*, FXSelector, void*);
58
60 long onCmdCancel(FXObject*, FXSelector, void*);
61
63 long onCmdReset(FXObject*, FXSelector, void*);
64
66 long onCmdSetVariable(FXObject*, FXSelector, void*);
68
69protected:
70 FOX_CONSTRUCTOR(GNERouteDialog)
71
72
74
77
79 FXTextField* myTextFieldRouteID;
80
82 FXTextField* myTextFieldEdges;
83
85 FXTextField* myTextFieldColor;
86
89
90private:
93
95 GNERouteDialog& operator=(const GNERouteDialog&) = delete;
96};
97
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
Dialog to edit sequences, parameters, etc.. of DemandElements.
An Element which don't belong to GNENet but has influence in the simulation.
Dialog for editing Calibrator Routes.
SumoXMLAttr myInvalidAttr
current sumo attribute invalid
FXTextField * myTextFieldRouteID
route ID
long onCmdReset(FXObject *, FXSelector, void *)
event after press reset button
long onCmdSetVariable(FXObject *, FXSelector, void *)
event after change value
bool myCalibratorRouteValid
flag to check if current calibrator vehicleType is valid
FXTextField * myTextFieldEdges
list of edges (string)
long onCmdAccept(FXObject *, FXSelector, void *)
FXTextField * myTextFieldColor
color of route
void updateCalibratorRouteValues()
update data fields
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
~GNERouteDialog()
destructor