55 myStepsValids(false) {
68 myStepsTable->setSelBackColor(FXRGBA(255, 255, 255, 255));
69 myStepsTable->setSelTextColor(FXRGBA(0, 0, 0, 255));
110 double time = GNEAttributeCarrier::parse<double>(
myStepsTable->getItem(i, 0)->getText().text());
111 double speed = GNEAttributeCarrier::parse<double>(
myStepsTable->getItem(i, 1)->getText().text());
155 WRITE_DEBUG(
"Opening FXMessageBox of type 'warning'");
160 WRITE_DEBUG(
"Closed FXMessageBox of type 'warning' with 'OK'");
168 getApp()->stopModal(
this, TRUE);
179 getApp()->stopModal(
this, FALSE);
212 FXTableItem* item =
nullptr;
222 item =
new FXTableItem(
"");
224 item->setJustify(FXTableItem::CENTER_X | FXTableItem::CENTER_Y);
225 item->setEnabled(
false);
229 item->setJustify(FXTableItem::CENTER_X | FXTableItem::CENTER_Y);
230 item->setEnabled(
false);
virtual bool isValid(SumoXMLAttr key, const std::string &value)=0
method for checking if the key and their conrrespond attribute are valids
#define GUIDesignTableIconCellWidth
width of cells that only contains an Icon
void resetChanges()
reset changes did in this dialog.
void sortAdditionalChildren()
sort children (used by Rerouters, VSS, TAZs...)
void updateTableSteps()
update data table
Dialog to edit sequences, parameters, etc.. of Additionals.
FXTable * myStepsTable
Table with the data.
virtual void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)=0
method for setting the attribute and letting the object perform additional changes ...
long onCmdSortSteps(FXObject *, FXSelector, void *)
event called after clicked over sort step button
const std::vector< GNEAdditional * > & getAdditionalChildren() const
return vector of additionals that have as Parent this edge (For example, Calibrators) ...
GNEUndoList * getUndoList() const
get the undoList object
~GNEVariableSpeedSignDialog()
destructor
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
#define GUIDesignAuxiliarHorizontalFrame
design for auxiliar (Without borders) horizontal frame used to pack another frames ...
long onCmdClickedStep(FXObject *, FXSelector, void *)
event called after clicked a row
#define GUIDesignTableAdditionals
design for tables used in additional dialogs
long onCmdAccept(FXObject *, FXSelector, void *)
event called after press accept button
#define GUIDesignButtonIcon
button only with icon (23x23)
GNEAdditional * myEditedAdditional
pointer to edited aditional
trigger: the time of the step
void acceptChanges()
Accept changes did in this dialog.
GNEViewNet * getViewNet() const
Returns a pointer to GNEViewNet in which additional element is located.
An Element which don't belongs to GNENet but has influency in the simulation.
void cancelChanges()
Cancel changes did in this dialog.
#define GUIDesignLabelThick
label extended over frame with thick and with text justify to left and height of 23 ...
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
FXDEFMAP(GNEVariableSpeedSignDialog) GNERerouterDialogMap[]
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon
trigger: a step description