Eclipse SUMO - Simulation of Urban MObility
GNERerouterDialog.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 rerouters
15 /****************************************************************************/
16 #ifndef GNERerouterDialog_h
17 #define GNERerouterDialog_h
18 
19 // ===========================================================================
20 // included modules
21 // ===========================================================================
22 
23 #include <config.h>
24 
25 #include "GNEAdditionalDialog.h"
26 
27 
28 // ===========================================================================
29 // class declarations
30 // ===========================================================================
31 
32 class GNERerouter;
35 
36 // ===========================================================================
37 // class definitions
38 // ===========================================================================
39 
46  FXDECLARE(GNERerouterDialog)
47 
48 public:
50  GNERerouterDialog(GNERerouter* rerouterParent);
51 
54 
58  long onCmdAccept(FXObject*, FXSelector, void*);
59 
61  long onCmdCancel(FXObject*, FXSelector, void*);
62 
64  long onCmdReset(FXObject*, FXSelector, void*);
65 
67  long onCmdAddInterval(FXObject*, FXSelector, void*);
68 
70  long onCmdSortIntervals(FXObject*, FXSelector, void*);
71 
73  long onCmdClickedInterval(FXObject*, FXSelector, void*);
75 
76 protected:
78 
79 
80  FXButton* myAddInterval;
81 
83  FXButton* mySortIntervals;
84 
86  FXTable* myIntervalTable;
87 
88 private:
90  void updateIntervalTable();
91 
94 
96  GNERerouterDialog& operator=(const GNERerouterDialog&) = delete;
97 };
98 
99 #endif
GNERerouterInterval
Definition: GNERerouterInterval.h:45
GNERerouterDialog::onCmdCancel
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
Definition: GNERerouterDialog.cpp:106
GNERerouterDialog
Dialog for edit rerouters.
Definition: GNERerouterDialog.h:44
GNERerouterDialog::updateIntervalTable
void updateIntervalTable()
update data table
Definition: GNERerouterDialog.cpp:173
GNEAdditionalDialog
Dialog to edit sequences, parameters, etc.. of Additionals.
Definition: GNEAdditionalDialog.h:44
GNERerouter
Definition: GNERerouter.h:39
GNERerouterDialog::GNERerouterDialog
GNERerouterDialog(GNERerouter *rerouterParent)
FOX-declaration.
Definition: GNERerouterDialog.cpp:52
GNERerouterDialog::onCmdReset
long onCmdReset(FXObject *, FXSelector, void *)
event after press reset button
Definition: GNERerouterDialog.cpp:116
GNERerouterDialog::onCmdAddInterval
long onCmdAddInterval(FXObject *, FXSelector, void *)
add new interval
Definition: GNERerouterDialog.cpp:126
GNERerouterDialog::myAddInterval
FXButton * myAddInterval
button for add new interval
Definition: GNERerouterDialog.h:80
GNEAdditionalDialog.h
FOX_CONSTRUCTOR
#define FOX_CONSTRUCTOR(classname)
Definition: config.h:13
GNERerouterDialog::onCmdSortIntervals
long onCmdSortIntervals(FXObject *, FXSelector, void *)
sort current intervals
Definition: GNERerouterDialog.cpp:136
GNERerouterDialog::onCmdClickedInterval
long onCmdClickedInterval(FXObject *, FXSelector, void *)
remove or edit interval
Definition: GNERerouterDialog.cpp:146
GNERerouterDialog::~GNERerouterDialog
~GNERerouterDialog()
destructor
Definition: GNERerouterDialog.cpp:81
GNERerouterDialog::onCmdAccept
long onCmdAccept(FXObject *, FXSelector, void *)
Definition: GNERerouterDialog.cpp:85
GNERerouterDialog::mySortIntervals
FXButton * mySortIntervals
button for sort interval
Definition: GNERerouterDialog.h:83
config.h
GNERerouterDialog::myIntervalTable
FXTable * myIntervalTable
list with intervals
Definition: GNERerouterDialog.h:86
GNERerouterIntervalDialog
Dialog for edit rerouter intervals.
Definition: GNERerouterIntervalDialog.h:49