SUMO - Simulation of Urban MObility
GNEVariableSpeedSignDialog.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 GNEVariableSpeedSignDialog_h
21 #define GNEVariableSpeedSignDialog_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 <map>
34 #include "GNEAdditionalDialog.h"
36 
37 
38 // ===========================================================================
39 // class declarations
40 // ===========================================================================
41 
43 
44 // ===========================================================================
45 // class definitions
46 // ===========================================================================
47 
55 
56 public:
58  GNEVariableSpeedSignDialog(GNEVariableSpeedSign* variableSpeedSignParent);
59 
62 
66  long onCmdAddRow(FXObject*, FXSelector, void*);
67 
69  long onCmdRemoveRow(FXObject*, FXSelector, void*);
70 
72  long onCmdAccept(FXObject*, FXSelector, void*);
73 
75  long onCmdCancel(FXObject*, FXSelector, void*);
76 
78  long onCmdReset(FXObject*, FXSelector, void*);
80 
81 protected:
84 
87 
89  std::vector<GNEVariableSpeedSignStep> mySteps;
90 
92  FXTable* myDataList;
93 
95  FXHorizontalFrame* myRowFrame;
96 
98  FXTextField* myRowStep;
99 
101  FXTextField* myRowSpeed;
102 
104  FXButton* myAddRow;
105 
106 private:
108  void updateTable();
109 
112 
115 };
116 
117 #endif
FXTextField * myRowStep
Text field with step
Dialog to edit sequences, parameters, etc.. of Additionals.
FXTextField * myRowSpeed
Text field with speed.
FXButton * myAddRow
Button for insert row.
long onCmdAddRow(FXObject *, FXSelector, void *)
long onCmdRemoveRow(FXObject *, FXSelector, void *)
event called after press remove row
GNEVariableSpeedSign * myVariableSpeedSignParent
Pointer to Variable Speed Signal.
FXTable * myDataList
Table with the data.
long onCmdAccept(FXObject *, FXSelector, void *)
event called after press accept button
std::vector< GNEVariableSpeedSignStep > mySteps
Map with the temporal VSSValues.
GNEVariableSpeedSignDialog & operator=(const GNEVariableSpeedSignDialog &)
Invalidated assignment operator.
long onCmdCancel(FXObject *, FXSelector, void *)
event called after press cancel button
long onCmdReset(FXObject *, FXSelector, void *)
event called after press cancel button
FXHorizontalFrame * myRowFrame
Horizontal frame for row elements.