65 myIntervalTable->setSelBackColor(FXRGBA(255, 255, 255, 255));
66 myIntervalTable->setSelTextColor(FXRGBA(0, 0, 0, 255));
67 myIntervalTable->setEditable(
false);
70 updateIntervalTable();
88 WRITE_DEBUG(
"Opening FXMessageBox of type 'warning'");
90 FXMessageBox::warning(getApp(), MBOX_OK,
"Overlapping detected",
"%s", (
"Values of '" +
myEditedAdditional->
getID() +
"' cannot be saved. There are intervals overlapped.").c_str());
92 WRITE_DEBUG(
"Closed FXMessageBox of type 'warning' with 'OK'");
98 getApp()->stopModal(
this, TRUE);
109 getApp()->stopModal(
this, FALSE);
137 std::vector<GNEAdditional*> rerouterChildren;
139 if (!rerouterChild->getTagProperty().isSymbol()) {
140 rerouterChildren.push_back(rerouterChild);
144 for (
int i = 0; i < (int)rerouterChildren.size(); i++) {
154 for (
int i = 0; i < (int)rerouterChildren.size(); i++) {
171 std::vector<GNEAdditional*> rerouterChildren;
173 if (!rerouterChild->getTagProperty().isSymbol()) {
174 rerouterChildren.push_back(rerouterChild);
192 FXTableItem* item =
nullptr;
194 for (
const auto& rerouterChild : rerouterChildren) {
196 item =
new FXTableItem(rerouterChild->getAttribute(
SUMO_ATTR_BEGIN).c_str());
199 item =
new FXTableItem(rerouterChild->getAttribute(
SUMO_ATTR_END).c_str());
203 item->setJustify(FXTableItem::CENTER_X | FXTableItem::CENTER_Y);
204 item->setEnabled(
false);
FXDEFMAP(GNERerouterDialog) GNERerouterDialogMap[]
@ MID_GNE_REROUTEDIALOG_ADD_INTERVAL
add interval
@ MID_GNE_REROUTEDIALOG_TABLE_INTERVAL
select table interval
@ MID_GNE_REROUTEDIALOG_SORT_INTERVAL
sort rerouter intervals
#define GUIDesignButtonIcon
button only with icon
#define GUIDesignTableAdditionals
design for tables used in additional dialogs
#define GUIDesignHeight
define a standard height for all elements (Change it carefully)
#define GUIDesignAuxiliarHorizontalFrame
design for auxiliar (Without borders) horizontal frame used to pack another frames
#define GUIDesignLabelThick
label extended over frame with thick and with text justify to left
@ SUMO_TAG_INTERVAL
an aggreagated-output interval
@ SUMO_ATTR_BEGIN
weights: time range begin
@ SUMO_ATTR_END
weights: time range end
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
Dialog to edit sequences, parameters, etc.. of Additionals.
void acceptChanges()
Accept changes did in this dialog.
void cancelChanges()
Cancel changes did in this dialog.
GNEAdditional * myEditedAdditional
pointer to edited aditional
void resetChanges()
reset changes did in this dialog.
const std::string & getID() const
get ID
GNENet * getNet() const
get pointer to net
bool checkChildAdditionalsOverlapping() const
check if children are overlapped (Used by Rerouters)
const std::vector< GNEAdditional * > & getChildAdditionals() const
return child additionals
GNEViewNet * getViewNet() const
get view net
Dialog for edit rerouters.
~GNERerouterDialog()
destructor
long onCmdAccept(FXObject *, FXSelector, void *)
long onCmdReset(FXObject *, FXSelector, void *)
event after press reset button
long onCmdAddInterval(FXObject *, FXSelector, void *)
add new interval
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
long onCmdClickedInterval(FXObject *, FXSelector, void *)
remove or edit interval
FXTable * myIntervalTable
list with intervals
void updateIntervalTable()
update data table
Dialog for edit rerouter intervals.
void add(GNEChange *command, bool doit=false, bool merge=true)
Add new command, executing it if desired. The new command will be merged with the previous command if...
GNEUndoList * getUndoList() const
get the undoList object
static FXIcon * getIcon(const GUIIcon which)
returns a icon previously defined in the enum GUIIcon