SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GNEVariableSpeedSignalDialog.h
Go to the documentation of this file.
1 /****************************************************************************/
8 /****************************************************************************/
9 // SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
10 // Copyright (C) 2001-2013 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 GNEVariableSpeedSignalDialog_h
21 #define GNEVariableSpeedSignalDialog_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 <utils/common/SUMOTime.h>
35 #include "GNEAdditionalDialog.h"
36 
37 
38 // ===========================================================================
39 // class declarations
40 // ===========================================================================
41 
43 
44 // ===========================================================================
45 // class definitions
46 // ===========================================================================
47 
55 
56 public:
57  // Constructor
58  GNEVariableSpeedSignalDialog(GNEVariableSpeedSignal* variableSpeedSignalParent);
59 
60  // destructor
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::map<SUMOTime, SUMOReal> myVSSValues;
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
std::map< SUMOTime, SUMOReal > myVSSValues
Map with the temporal VSSValues.
long onCmdReset(FXObject *, FXSelector, void *)
event called after press cancel button
long onCmdCancel(FXObject *, FXSelector, void *)
event called after press cancel button
FXButton * myAddRow
Button for insert row.
long onCmdAccept(FXObject *, FXSelector, void *)
event called after press accept button
Dialog to edit sequences, parameters, etc.. of Additionals.
FXHorizontalFrame * myRowFrame
Horizontal frame for row elements.
FXTextField * myRowSpeed
Text field with speed.
long onCmdRemoveRow(FXObject *, FXSelector, void *)
event called after press remove row
FXTable * myDataList
Table with the data.
long onCmdAddRow(FXObject *, FXSelector, void *)
GNEVariableSpeedSignalDialog & operator=(const GNEVariableSpeedSignalDialog &)
Invalidated assignment operator.
GNEVariableSpeedSignal * myVariableSpeedSignalParent
Pointer to Variable Speed Signal.
FXTextField * myRowStep
Text field with step