58 myStepsValids(false) {
71 myStepsTable->setSelBackColor(FXRGBA(255, 255, 255, 255));
72 myStepsTable->setSelTextColor(FXRGBA(0, 0, 0, 255));
113 double time = GNEAttributeCarrier::parse<double>(
myStepsTable->getItem(i, 0)->getText().text());
114 double speed = GNEAttributeCarrier::parse<double>(
myStepsTable->getItem(i, 1)->getText().text());
158 WRITE_DEBUG(
"Opening FXMessageBox of type 'warning'");
163 WRITE_DEBUG(
"Closed FXMessageBox of type 'warning' with 'OK'");
171 getApp()->stopModal(
this, TRUE);
182 getApp()->stopModal(
this, FALSE);
215 FXTableItem* item =
nullptr;
225 item =
new FXTableItem(
"");
227 item->setJustify(FXTableItem::CENTER_X | FXTableItem::CENTER_Y);
228 item->setEnabled(
false);
232 item->setJustify(FXTableItem::CENTER_X | FXTableItem::CENTER_Y);
233 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 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
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
void sortAdditionalChilds()
sort childs (used by Rerouters and VSS)
#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[]
const std::vector< GNEAdditional * > & getAdditionalChilds() const
return vector of additionals that have as Parent this edge (For example, Calibrators) ...
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon
trigger: a step description