64 myEditedRerouter(rerouterParent) {
73 myIntervalTable->setSelBackColor(FXRGBA(255, 255, 255, 255));
74 myIntervalTable->setSelTextColor(FXRGBA(0, 0, 0, 255));
75 myIntervalTable->setEditable(
false);
78 updateIntervalTable();
102 if (numberOfOverlappings > 0) {
108 std::string errorMessage = numberOfOverlappings > 1 ? (
"There are " +
toString(numberOfOverlappings) +
" intervals overlapped.") : (
"There is " +
toString(numberOfOverlappings) +
" interval overlapped.");
109 FXMessageBox::warning(getApp(), MBOX_OK,
"Overlapping detected",
"%s", (
"Values of '" +
myEditedRerouter->
getID() +
"' cannot be saved. " + errorMessage).c_str());
112 WRITE_WARNING(
"Closed FXMessageBox of type 'warning' with 'OK'");
119 getApp()->stopModal(
this, TRUE);
130 getApp()->stopModal(
this, FALSE);
217 FXTableItem* item = 0;
224 item =
new FXTableItem(i->getAttribute(
SUMO_ATTR_END).c_str());
228 item->setJustify(FXTableItem::CENTER_X | FXTableItem::CENTER_Y);
229 item->setEnabled(
false);
#define GUIDesignTableIconCellWidth
width of cells that only contains an Icon
void resetChanges()
reset changes did in this dialog.
const std::vector< GNEDestProbReroute * > & getDestProbReroutes() const
get destiny probability reroutes
const std::vector< GNEClosingLaneReroute * > & getClosingLaneReroutes() const
get closing reroutes
Dialog for edit rerouter intervals.
Dialog to edit sequences, parameters, etc.. of Additionals.
int getNumberOfOverlappedIntervals() const
get number of overlapped intervals
long onCmdClickedInterval(FXObject *, FXSelector, void *)
remove or edit interval
weights: time range begin
const std::vector< GNERouteProbReroute * > & getRouteProbReroutes() const
get reoute probability reroutes
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
FXDEFMAP(GNERerouterDialog) GNERerouterDialogMap[]
GNERerouter * myEditedRerouter
pointer to edited rerouter
#define WRITE_WARNING(msg)
static OptionsCont & getOptions()
Retrieves the options.
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)
const std::vector< GNEClosingReroute * > & getClosingReroutes() const
get closing reroutes
GNEViewNet * getViewNet() const
Returns a pointer to GNEViewNet in which additional element is located.
void acceptChanges()
Accept changes did in this dialog.
const std::vector< GNERerouterInterval * > & getRerouterIntervals() const
get rerouter intervals
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 ...
an aggreagated-output interval
GNERerouter * getEditedRerouter() const
get edited rerouter
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
~GNERerouterDialog()
destructor
void updateIntervalTable()
update data table
long onCmdAccept(FXObject *, FXSelector, void *)
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon