SUMO - Simulation of Urban MObility
GNERerouterIntervalDialog.h
Go to the documentation of this file.
1 /****************************************************************************/
8 /****************************************************************************/
9 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
10 // Copyright (C) 2001-2017 DLR (http://www.dlr.de/) and contributors
11 /****************************************************************************/
12 //
13 // This file is part of SUMO.
14 // SUMO is free software; you can redistribute it and/or modify
15 // it under the terms of the GNU General Public License as published by
16 // the Free Software Foundation; either version 3 of the License, or
17 // (at your option) any later version.
18 //
19 /****************************************************************************/
20 #ifndef GNERerouterIntervalDialog_h
21 #define GNERerouterIntervalDialog_h
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #include "GNEAdditionalDialog.h"
34 #include "GNERerouterInterval.h"
35 #include "GNEClosingLaneReroute.h"
36 #include "GNEClosingReroute.h"
37 #include "GNEDestProbReroute.h"
38 #include "GNERouteProbReroute.h"
39 
40 
41 // ===========================================================================
42 // class declarations
43 // ===========================================================================
44 
45 class GNERerouterDialog;
46 
47 
48 // ===========================================================================
49 // class definitions
50 // ===========================================================================
51 
59  FXDECLARE(GNERerouterIntervalDialog)
60 
61 public:
63  GNERerouterIntervalDialog(GNERerouterDialog* rerouterDialog, GNERerouterInterval& rerouterInterval);
64 
67 
71  long onCmdAccept(FXObject*, FXSelector, void*);
72 
74  long onCmdCancel(FXObject*, FXSelector, void*);
75 
77  long onCmdReset(FXObject*, FXSelector, void*);
78 
80  long onCmdAddClosingLaneReroute(FXObject*, FXSelector, void*);
81 
83  long onCmdAddClosingReroute(FXObject*, FXSelector, void*);
84 
86  long onCmdAddDestProbReroute(FXObject*, FXSelector, void*);
87 
89  long onCmdAddRouteProbReroute(FXObject*, FXSelector, void*);
90 
92  long onCmdClickedClosingLaneReroute(FXObject*, FXSelector, void*);
93 
95  long onCmdClickedClosingReroute(FXObject*, FXSelector, void*);
96 
98  long onCmdClickedDestProbReroute(FXObject*, FXSelector, void*);
99 
101  long onCmdClickedRouteProbReroute(FXObject*, FXSelector, void*);
102 
104  long onCmdEditClosingLaneReroute(FXObject*, FXSelector, void*);
105 
107  long onCmdEditClosingReroute(FXObject*, FXSelector, void*);
108 
110  long onCmdEditDestProbReroute(FXObject*, FXSelector, void*);
111 
113  long onCmdEditRouteProbReroute(FXObject*, FXSelector, void*);
114 
116  long onCmdChangeBegin(FXObject*, FXSelector, void*);
117 
119  long onCmdChangeEnd(FXObject*, FXSelector, void*);
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 
169  std::vector<GNEClosingLaneReroute> myCopyOfClosingLaneReroutes;
170 
173 
175  std::vector<GNEClosingReroute> myCopyOfClosingReroutes;
176 
179 
181  std::vector<GNEDestProbReroute> myCopyOfDestProbReroutes;
182 
185 
187  std::vector<GNERouteProbReroute> myCopyOfRouteProbReroutes;
188 
191 
194 
197 
200 
203 
204 private:
207 
210 };
211 
212 #endif
void updateDestProbReroutesTable()
update data of destiny probabilitry reroute table
FXTable * myRouteProbRerouteList
list with route probability reroute
long onCmdEditDestProbReroute(FXObject *, FXSelector, void *)
/edit dest prob reroute
Dialog for edit rerouter intervals.
std::vector< GNEClosingReroute > myCopyOfClosingReroutes
vector with a copy of the closingReroutes
bool myBeginEndValid
flag to check if begin an end are valid
long onCmdClickedDestProbReroute(FXObject *, FXSelector, void *)
remove dest prob reroute
FXTable * myDestProbRerouteList
list with destiny probability reroutes
FXTable * myClosingRerouteList
list with closing reroutes
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
std::vector< GNEClosingLaneReroute > myCopyOfClosingLaneReroutes
vector with the closingLaneReroutes
long onCmdClickedRouteProbReroute(FXObject *, FXSelector, void *)
remove route prob reroute
void updateClosingLaneReroutesTable()
update data of closing lane reroute table
FXButton * myAddClosingReroutes
button for add new closing reroutes
GNERerouterIntervalDialog & operator=(const GNERerouterIntervalDialog &)
Invalidated assignment operator.
bool myRouteProbReroutesValid
flag to check if route prob reroutes are valid
FXTextField * myBeginTextField
begin time text field
std::vector< GNERouteProbReroute > myCopyOfRouteProbReroutes
vector with a copy of the routeProbReroutes
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
Dialog for edit rerouters.
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
long onCmdChangeBegin(FXObject *, FXSelector, void *)
called when begin is changed
long onCmdAccept(FXObject *, FXSelector, void *)
GNERerouterDialog * myRerouterDialogParent
pointer to GNERerouterDialog parent
long onCmdClickedClosingLaneReroute(FXObject *, FXSelector, void *)
remove closing lane reroute
long onCmdChangeEnd(FXObject *, FXSelector, void *)
called when begin is changed
FXButton * myAddRouteProbReroute
button for add new route probability reroutes
bool myDestProbReroutesValid
flag to check if Destiny probability reroutes are valid
FXTable * myClosingLaneRerouteList
list with closing lane reroutes
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
long onCmdClickedClosingReroute(FXObject *, FXSelector, void *)
remove closing reroute
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
GNERerouterInterval * myRerouterInterval
pointer to rerouter interval
std::vector< GNEDestProbReroute > myCopyOfDestProbReroutes
vector with a copy of the destProbReroutes