67 myIntervalTable->setSelBackColor(FXRGBA(255, 255, 255, 255));
68 myIntervalTable->setSelTextColor(FXRGBA(0, 0, 0, 255));
69 myIntervalTable->setEditable(
false);
72 updateIntervalTable();
90 WRITE_DEBUG(
"Opening FXMessageBox of type 'warning'");
92 FXMessageBox::warning(getApp(), MBOX_OK,
"Overlapping detected",
"%s", (
"Values of '" +
myEditedAdditional->
getID() +
"' cannot be saved. There are intervals overlapped.").c_str());
94 WRITE_DEBUG(
"Closed FXMessageBox of type 'warning' with 'OK'");
100 getApp()->stopModal(
this, TRUE);
111 getApp()->stopModal(
this, FALSE);
190 FXTableItem* item =
nullptr;
197 item =
new FXTableItem(i->getAttribute(
SUMO_ATTR_END).c_str());
201 item->setJustify(FXTableItem::CENTER_X | FXTableItem::CENTER_Y);
202 item->setEnabled(
false);
#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...)
Dialog for edit rerouter intervals.
Dialog to edit sequences, parameters, etc.. of Additionals.
long onCmdClickedInterval(FXObject *, FXSelector, void *)
remove or edit interval
weights: time range begin
FXDEFMAP(GNERerouterDialog) GNERerouterDialogMap[]
const std::vector< GNEAdditional * > & getAdditionalChildren() const
return vector of additionals that have as Parent this edge (For example, Calibrators) ...
Dialog for edit rerouters.
GNEUndoList * getUndoList() const
get the undoList object
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
#define GUIDesignAuxiliarHorizontalFrame
design for auxiliar (Without borders) horizontal frame used to pack another frames ...
FXTable * myIntervalTable
list with intervals
const std::string getID() const
function to support debugging
long onCmdReset(FXObject *, FXSelector, void *)
event after press reset button
#define GUIDesignTableAdditionals
design for tables used in additional dialogs
long onCmdAddInterval(FXObject *, FXSelector, void *)
add new interval
#define GUIDesignButtonIcon
button only with icon (23x23)
GNEAdditional * myEditedAdditional
pointer to edited aditional
GNEViewNet * getViewNet() const
Returns a pointer to GNEViewNet in which additional element is located.
void acceptChanges()
Accept changes did in this dialog.
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 onCmdSortIntervals(FXObject *, FXSelector, void *)
sort current intervals
an aggreagated-output interval
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
~GNERerouterDialog()
destructor
void updateIntervalTable()
update data table
bool checkAdditionalChildrenOverlapping() const
check if children are overlapped (Used by Rerouters)
long onCmdAccept(FXObject *, FXSelector, void *)
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon