39 #ifdef CHECK_MEMORY_LEAKS 65 myVariableSpeedSignParent(variableSpeedSignParent) {
69 myDataList->setEditable(
false);
84 myVSSValues = myVariableSpeedSignParent->getVariableSpeedSignSteps();
132 for (
int i = 0; i <
myDataList->getNumRows(); i++) {
133 if (
myDataList->getItem(i, 2)->isSelected()) {
151 getApp()->stopModal(
this, TRUE);
159 getApp()->stopModal(
this, FALSE);
181 myDataList->setColumnWidth(0, getWidth() / 3);
182 myDataList->setColumnWidth(1, getWidth() / 3);
183 myDataList->setColumnWidth(2, getWidth() / 3 - 10);
190 FXTableItem* item = 0;
194 item =
new FXTableItem(
toString(i->first).c_str());
197 item =
new FXTableItem(
toString(i->second).c_str());
201 item->setJustify(FXTableItem::CENTER_X | FXTableItem::CENTER_Y);
FXTextField * myRowStep
Text field with step
std::map< SUMOReal, SUMOReal > getVariableSpeedSignSteps() const
get values of variable speed signal
static SUMOReal _str2SUMOReal(const std::string &sData)
converts a string into the SUMOReal value described by it by calling the char-type converter ...
#define GUIDesignTableLimitedHeight
design for table extended over frame but with limited Height
Dialog to edit sequences, parameters, etc.. of Additionals.
FXTextField * myRowSpeed
Text field with speed.
long onCmdAddRow(FXObject *, FXSelector, void *)
void updateTable()
update data table
void setVariableSpeedSignSteps(const std::map< SUMOReal, SUMOReal > &vssValues)
set values of variable speed signal
~GNEVariableSpeedSignDialog()
destructor
long onCmdRemoveRow(FXObject *, FXSelector, void *)
event called after press remove row
GNEVariableSpeedSign * myVariableSpeedSignParent
Pointer to Variable Speed Signal.
#define GUIDesignTextField
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
Variable Speed Signal dialog.
#define GUIDesignAuxiliarHorizontalFrame
design for auxiliar (Without borders) horizontal frame used to pack another frames ...
FXTable * myDataList
Table with the data.
long onCmdAccept(FXObject *, FXSelector, void *)
event called after press accept button
#define GUIDesignButtonIcon
button only with icon with the same size as a Label
static int _2int(const E *const data)
converts a char-type array into the integer value described by it
long onCmdCancel(FXObject *, FXSelector, void *)
event called after press cancel button
std::map< SUMOReal, SUMOReal > myVSSValues
Map with the temporal VSSValues.
static bool _str2SUMOReal(const std::string &data)
check if a String can be parsed into a SUMOReal check overflows
long onCmdReset(FXObject *, FXSelector, void *)
event called after press cancel button
FXDEFMAP(GNEVariableSpeedSignDialog) GNERerouterDialogMap[]
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon