Eclipse SUMO - Simulation of Urban MObility
GNERouteDialog.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
14 // Dialog for edit calibrator routes
15 /****************************************************************************/
16 #ifndef GNERouteDialog_h
17 #define GNERouteDialog_h
18 
19 // ===========================================================================
20 // included modules
21 // ===========================================================================
22 
23 #include <config.h>
24 
25 #include "GNEDemandElementDialog.h"
26 
27 // ===========================================================================
28 // class declarations
29 // ===========================================================================
30 
31 class GNERoute;
32 
33 // ===========================================================================
34 // class definitions
35 // ===========================================================================
36 
44  FXDECLARE(GNERouteDialog)
45 
46 public:
48  GNERouteDialog(GNEDemandElement* editedCalibratorRoute, bool updatingElement);
49 
52 
56  long onCmdAccept(FXObject*, FXSelector, void*);
57 
59  long onCmdCancel(FXObject*, FXSelector, void*);
60 
62  long onCmdReset(FXObject*, FXSelector, void*);
63 
65  long onCmdSetVariable(FXObject*, FXSelector, void*);
67 
68 protected:
70 
71 
73 
76 
78  FXTextField* myTextFieldRouteID;
79 
81  FXTextField* myTextFieldEdges;
82 
84  FXTextField* myTextFieldColor;
85 
88 
89 private:
91  GNERouteDialog(const GNERouteDialog&) = delete;
92 
94  GNERouteDialog& operator=(const GNERouteDialog&) = delete;
95 };
96 
97 #endif
GNEDemandElement
An Element which don't belongs to GNENet but has influency in the simulation.
Definition: GNEDemandElement.h:55
GNERoute
Definition: GNERoute.h:41
GNERouteDialog::onCmdAccept
long onCmdAccept(FXObject *, FXSelector, void *)
Definition: GNERouteDialog.cpp:94
GNEDemandElementDialog
Dialog to edit sequences, parameters, etc.. of DemandElements.
Definition: GNEDemandElementDialog.h:44
GNERouteDialog::onCmdCancel
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
Definition: GNERouteDialog.cpp:119
GNERouteDialog::myTextFieldRouteID
FXTextField * myTextFieldRouteID
route ID
Definition: GNERouteDialog.h:78
FOX_CONSTRUCTOR
#define FOX_CONSTRUCTOR(classname)
Definition: config.h:13
GNERouteDialog::myTextFieldColor
FXTextField * myTextFieldColor
color of route
Definition: GNERouteDialog.h:84
GNERouteDialog::myInvalidAttr
SumoXMLAttr myInvalidAttr
current sumo attribute invalid
Definition: GNERouteDialog.h:75
GNERouteDialog::onCmdReset
long onCmdReset(FXObject *, FXSelector, void *)
event after press reset button
Definition: GNERouteDialog.cpp:129
GNERouteDialog::updateCalibratorRouteValues
void updateCalibratorRouteValues()
update data fields
Definition: GNERouteDialog.cpp:178
GNERouteDialog
Dialog for edit Calibrator Routes.
Definition: GNERouteDialog.h:42
GNERouteDialog::~GNERouteDialog
~GNERouteDialog()
destructor
Definition: GNERouteDialog.cpp:90
GNERouteDialog::onCmdSetVariable
long onCmdSetVariable(FXObject *, FXSelector, void *)
event after change value
Definition: GNERouteDialog.cpp:139
GNEDemandElementDialog.h
config.h
GNERouteDialog::myTextFieldEdges
FXTextField * myTextFieldEdges
list of edges (string)
Definition: GNERouteDialog.h:81
GNERouteDialog::myCalibratorRouteValid
bool myCalibratorRouteValid
flag to check if current calibrator vehicleType is valid
Definition: GNERouteDialog.h:72
SumoXMLAttr
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
Definition: SUMOXMLDefinitions.h:372
GNERouteDialog::GNERouteDialog
GNERouteDialog(GNEDemandElement *editedCalibratorRoute, bool updatingElement)
FOX-declaration.
Definition: GNERouteDialog.cpp:47