SUMO - Simulation of Urban MObility
GNERerouterIntervalDialog.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-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
17 // Dialog for edit rerouter intervals
18 /****************************************************************************/
19 #ifndef GNERerouterIntervalDialog_h
20 #define GNERerouterIntervalDialog_h
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 
26 #ifdef _MSC_VER
27 #include <windows_config.h>
28 #else
29 #include <config.h>
30 #endif
31 
32 #include "GNEAdditionalDialog.h"
33 #include "GNERerouterInterval.h"
34 #include "GNEClosingLaneReroute.h"
35 #include "GNEClosingReroute.h"
36 #include "GNEDestProbReroute.h"
37 #include "GNERouteProbReroute.h"
38 
39 
40 // ===========================================================================
41 // class declarations
42 // ===========================================================================
43 
45 
46 
47 // ===========================================================================
48 // class definitions
49 // ===========================================================================
50 
58  FXDECLARE(GNERerouterIntervalDialog)
59 
60 public:
62  GNERerouterIntervalDialog(GNERerouterInterval* rerouterInterval, bool updatingElement);
63 
66 
69 
73  long onCmdAccept(FXObject*, FXSelector, void*);
74 
76  long onCmdCancel(FXObject*, FXSelector, void*);
77 
79  long onCmdReset(FXObject*, FXSelector, void*);
80 
82  long onCmdAddClosingLaneReroute(FXObject*, FXSelector, void*);
83 
85  long onCmdAddClosingReroute(FXObject*, FXSelector, void*);
86 
88  long onCmdAddDestProbReroute(FXObject*, FXSelector, void*);
89 
91  long onCmdAddRouteProbReroute(FXObject*, FXSelector, void*);
92 
94  long onCmdClickedClosingLaneReroute(FXObject*, FXSelector, void*);
95 
97  long onCmdClickedClosingReroute(FXObject*, FXSelector, void*);
98 
100  long onCmdClickedDestProbReroute(FXObject*, FXSelector, void*);
101 
103  long onCmdClickedRouteProbReroute(FXObject*, FXSelector, void*);
104 
106  long onCmdEditClosingLaneReroute(FXObject*, FXSelector, void*);
107 
109  long onCmdEditClosingReroute(FXObject*, FXSelector, void*);
110 
112  long onCmdEditDestProbReroute(FXObject*, FXSelector, void*);
113 
115  long onCmdEditRouteProbReroute(FXObject*, FXSelector, void*);
116 
118  long onCmdChangeBeginEnd(FXObject*, FXSelector, void*);
119 
121 
122 protected:
125 
128 
131 
133  FXTextField* myBeginTextField;
134 
136  FXTextField* myEndTextField;
137 
139  FXLabel* myCheckLabel;
140 
143 
146 
149 
152 
155 
158 
161 
164 
167 
170 
173 
176 
179 
180 private:
183 
186 
189 
192 
195 
198 };
199 
200 #endif
void updateDestProbReroutesTable()
update data of destiny probabilitry reroute table
long onCmdEditDestProbReroute(FXObject *, FXSelector, void *)
/edit dest prob reroute
Dialog for edit rerouter intervals.
bool myBeginEndValid
flag to check if begin an end are valid
long onCmdClickedDestProbReroute(FXObject *, FXSelector, void *)
remove dest prob reroute
GNERerouterInterval * getEditedRerouterInterval() const
get edited Rerouter Interval
bool myClosingReroutesValid
flag to check if closing reroutes are valid
Dialog to edit sequences, parameters, etc.. of Additionals.
void updateRouteProbReroutesTable()
update data of probabilitry reroutes table
long onCmdClickedRouteProbReroute(FXObject *, FXSelector, void *)
remove route prob reroute
void updateClosingLaneReroutesTable()
update data of closing lane reroute table
FXTable * myClosingLaneRerouteTable
list with closing lane reroutes
FXButton * myAddClosingReroutes
button for add new closing reroutes
bool myRouteProbReroutesValid
flag to check if route prob reroutes are valid
FXTextField * myBeginTextField
begin time text field
bool myClosingLaneReroutesValid
flag to check if closing lane reroutes are valid
long onCmdAddClosingLaneReroute(FXObject *, FXSelector, void *)
add closing lane reroute
long onCmdEditRouteProbReroute(FXObject *, FXSelector, void *)
/edit route prob reroute
long onCmdReset(FXObject *, FXSelector, void *)
event after press reset button
long onCmdAddRouteProbReroute(FXObject *, FXSelector, void *)
add route prob reroute
FXButton * myAddClosingLaneReroutes
button for add new closing lane reroutes
void updateClosingReroutesTable()
update data of closing reroute table
long onCmdAddClosingReroute(FXObject *, FXSelector, void *)
add closing reroute
long onCmdEditClosingReroute(FXObject *, FXSelector, void *)
/edit closing reroute
long onCmdEditClosingLaneReroute(FXObject *, FXSelector, void *)
/edit closing lane reroute
bool myUpdatingElement
flag to indicate if rerouter interval is being created or modified
long onCmdAccept(FXObject *, FXSelector, void *)
long onCmdClickedClosingLaneReroute(FXObject *, FXSelector, void *)
remove closing lane reroute
FXButton * myAddRouteProbReroute
button for add new route probability reroutes
FXTable * myDestProbRerouteTable
list with destiny probability reroutes
bool myDestProbReroutesValid
flag to check if Destiny probability reroutes are valid
FXTable * myRouteProbRerouteTable
list with route probability reroute
FXTextField * myEndTextField
end time text field
long onCmdAddDestProbReroute(FXObject *, FXSelector, void *)
add dest prob reroute
FXLabel * myCheckLabel
begin/end time check label
FXButton * myAddDestProbReroutes
button for add new destiny probability reroutes
GNERerouterInterval * myEditedRerouterInterval
pointer to rerouter interval
long onCmdClickedClosingReroute(FXObject *, FXSelector, void *)
remove closing reroute
FXTable * myClosingRerouteTable
list with closing reroutes
GNERerouterIntervalDialog & operator=(const GNERerouterIntervalDialog &)=delete
Invalidated assignment operator.
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
long onCmdChangeBeginEnd(FXObject *, FXSelector, void *)
called when begin or endis changed