SUMO - Simulation of Urban MObility
GNERerouterDialog.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 GNERerouterDialog_h
21 #define GNERerouterDialog_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 
35 
36 // ===========================================================================
37 // class declarations
38 // ===========================================================================
39 
40 class GNERerouter;
43 
44 // ===========================================================================
45 // class definitions
46 // ===========================================================================
47 
54  FXDECLARE(GNERerouterDialog)
55 
56 public:
58  GNERerouterDialog(GNERerouter* rerouterParent);
59 
62 
65 
67  bool findInterval(double begin, double end) const;
68 
70  bool checkModifyInterval(const GNERerouterInterval& rerouterInterval, double newBegin, double newEnd) const;
71 
75  long onCmdAccept(FXObject*, FXSelector, void*);
76 
78  long onCmdCancel(FXObject*, FXSelector, void*);
79 
81  long onCmdReset(FXObject*, FXSelector, void*);
82 
84  long onCmdAddInterval(FXObject*, FXSelector, void*);
85 
87  long onCmdClickedInterval(FXObject*, FXSelector, void*);
89 
90 protected:
93 
96 
98  FXButton* myAddInterval;
99 
101  FXTable* myIntervalList;
102 
104  std::vector<GNERerouterInterval> myCopyOfRerouterIntervals;
105 
107  void updateIntervalTable();
108 
109 private:
112 
115 };
116 
117 #endif
GNERerouter * myRerouterParent
pointer to rerouter parent
FXButton * myAddInterval
button for add new interval
Dialog for edit rerouter intervals.
bool checkModifyInterval(const GNERerouterInterval &rerouterInterval, double newBegin, double newEnd) const
check if begin and end of an existent interval can be modified
Dialog to edit sequences, parameters, etc.. of Additionals.
long onCmdClickedInterval(FXObject *, FXSelector, void *)
remove or edit interval
GNERerouterDialog()
FOX needs this.
GNERerouter * getRerouterParent() const
get rerouter parent
Dialog for edit rerouters.
std::vector< GNERerouterInterval > myCopyOfRerouterIntervals
set with a copy of rerouter intervals
long onCmdReset(FXObject *, FXSelector, void *)
event after press reset button
long onCmdAddInterval(FXObject *, FXSelector, void *)
add new interval
FXTable * myIntervalList
list with intervals
bool findInterval(double begin, double end) const
check if a interval exists
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
~GNERerouterDialog()
destructor
void updateIntervalTable()
update data table
long onCmdAccept(FXObject *, FXSelector, void *)
GNERerouterDialog & operator=(const GNERerouterDialog &)
Invalidated assignment operator.