38 #ifdef CHECK_MEMORY_LEAKS 64 myVariableSpeedSignalParent(variableSpeedSignalParent) {
68 myDataList->setEditable(
false);
71 myRowFrame =
new FXHorizontalFrame(myContentFrame, LAYOUT_FILL_X);
83 myVSSValues = myVariableSpeedSignalParent->getVariableSpeedSignalSteps();
133 for (
int i = 0; i <
myDataList->getNumRows(); i++) {
134 if (
myDataList->getItem(i, 2)->isSelected()) {
153 getApp()->stopModal(
this, TRUE);
161 getApp()->stopModal(
this, FALSE);
183 myDataList->setColumnWidth(0, getWidth() * 0.35);
184 myDataList->setColumnWidth(1, getWidth() * 0.35);
185 myDataList->setColumnWidth(2, (getWidth() * 0.3) - 10);
192 FXTableItem* item = 0;
196 item =
new FXTableItem(
toString(i->first).c_str());
199 item =
new FXTableItem(
toString(i->second).c_str());
203 item->setJustify(FXTableItem::CENTER_X | FXTableItem::CENTER_Y);
std::map< SUMOTime, SUMOReal > myVSSValues
Map with the temporal VSSValues.
static SUMOReal _str2SUMOReal(const std::string &sData)
converts a string into the SUMOReal value described by it by calling the char-type converter ...
long onCmdReset(FXObject *, FXSelector, void *)
event called after press cancel button
long onCmdCancel(FXObject *, FXSelector, void *)
event called after press cancel button
long onCmdAccept(FXObject *, FXSelector, void *)
event called after press accept button
static bool _str2SUMOTime(const std::string &data)
check if a String can be parsed into a SUMOTime check overflows
Dialog to edit sequences, parameters, etc.. of Additionals.
void updateTable()
update data table
void setVariableSpeedSignalSteps(const std::map< SUMOTime, SUMOReal > &vssValues)
set values of variable speed signal
FXTextField * myRowSpeed
Text field with speed.
Variable Speed Signal dialog.
long onCmdRemoveRow(FXObject *, FXSelector, void *)
event called after press remove row
FXTable * myDataList
Table with the data.
FXDEFMAP(GNEVariableSpeedSignalDialog) GNERerouterDialogMap[]
static int _str2int(const std::string &sData)
converts a string into the integer value described by it by calling the char-type converter...
std::map< SUMOTime, SUMOReal > getVariableSpeedSignalSteps() const
get values of variable speed signal
long onCmdAddRow(FXObject *, FXSelector, void *)
std::string toString(const T &t, std::streamsize accuracy=OUTPUT_ACCURACY)
static int _2int(const E *const data)
converts a char-type array into the integer value described by it
static bool _str2SUMOReal(const std::string &data)
check if a String can be parsed into a SUMOReal check overflows
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon
GNEVariableSpeedSignal * myVariableSpeedSignalParent
Pointer to Variable Speed Signal.
FXTextField * myRowStep
Text field with step
~GNEVariableSpeedSignalDialog()