SUMO - Simulation of Urban MObility
GNEVariableSpeedSignDialog.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 // A class for edit phases of Variable Speed Signals
18 /****************************************************************************/
19 #ifndef GNEVariableSpeedSignDialog_h
20 #define GNEVariableSpeedSignDialog_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 <map>
33 #include "GNEAdditionalDialog.h"
35 
36 
37 // ===========================================================================
38 // class declarations
39 // ===========================================================================
40 
42 
43 // ===========================================================================
44 // class definitions
45 // ===========================================================================
46 
54 
55 public:
57  GNEVariableSpeedSignDialog(GNEVariableSpeedSign* editedVariableSpeedSign);
58 
61 
64 
68  long onCmdAddStep(FXObject*, FXSelector, void*);
69 
71  long onCmdEditStep(FXObject*, FXSelector, void*);
72 
74  long onCmdClickedStep(FXObject*, FXSelector, void*);
75 
77  long onCmdAccept(FXObject*, FXSelector, void*);
78 
80  long onCmdCancel(FXObject*, FXSelector, void*);
81 
83  long onCmdReset(FXObject*, FXSelector, void*);
85 
86 protected:
89 
92 
94  FXTable* myStepsTable;
95 
97  FXHorizontalFrame* myAddStepFrame;
98 
100  FXButton* myAddStepButton;
101 
103 
104 private:
106  void updateTableSteps();
107 
110 
113 };
114 
115 #endif
GNEVariableSpeedSignDialog & operator=(const GNEVariableSpeedSignDialog &)=delete
Invalidated assignment operator.
GNEVariableSpeedSign * myEditedVariableSpeedSign
Pointer to Variable Speed Signal.
void updateTableSteps()
update data table
Dialog to edit sequences, parameters, etc.. of Additionals.
FXTable * myStepsTable
Table with the data.
FXHorizontalFrame * myAddStepFrame
Horizontal frame for row elements.
FXButton * myAddStepButton
Button for insert row.
long onCmdClickedStep(FXObject *, FXSelector, void *)
event called after clicked a row
GNEVariableSpeedSign * getEditedVariableSpeedSign() const
get edited Variable Speed Sign
long onCmdAccept(FXObject *, FXSelector, void *)
event called after press accept button
long onCmdCancel(FXObject *, FXSelector, void *)
event called after press cancel button
long onCmdAddStep(FXObject *, FXSelector, void *)
long onCmdReset(FXObject *, FXSelector, void *)
event called after press cancel button
long onCmdEditStep(FXObject *, FXSelector, void *)
event called after edit row