75 myRouteList->setSelBackColor(FXRGBA(255, 255, 255, 255));
76 myRouteList->setSelTextColor(FXRGBA(0, 0, 0, 255));
77 myRouteList->setEditable(
false);
86 myVehicleTypeList->setSelBackColor(FXRGBA(255, 255, 255, 255));
87 myVehicleTypeList->setSelTextColor(FXRGBA(0, 0, 0, 255));
88 myVehicleTypeList->setEditable(
false);
97 myFlowList->setSelBackColor(FXRGBA(255, 255, 255, 255));
98 myFlowList->setSelTextColor(FXRGBA(0, 0, 0, 255));
99 myFlowList->setEditable(
false);
103 updateVehicleTypeTable();
122 getApp()->stopModal(
this, TRUE);
132 getApp()->stopModal(
this, FALSE);
167 std::vector<GNEAdditional*> calibratorFlowsToErase;
170 calibratorFlowsToErase.push_back(j);
174 if (calibratorFlowsToErase.size() > 0) {
176 WRITE_DEBUG(
"Opening FXMessageBox of type 'question'");
184 WRITE_DEBUG(
"Closed FXMessageBox of type 'question' with 'No'");
185 }
else if (answer == 4) {
186 WRITE_DEBUG(
"Closed FXMessageBox of type 'question' with 'ESC'");
192 WRITE_DEBUG(
"Closed FXMessageBox of type 'question' with 'Yes'");
194 for (
auto j : calibratorFlowsToErase) {
236 throw ProcessError(
"myEditedAdditional->getViewNet()->getNet()->getAttributeCarriers().demandElements.at(SUMO_TAG_ROUTE) cannot be empty");
283 FXMessageBox::warning(getApp(), MBOX_OK,
288 std::vector<GNEAdditional*> calibratorFlowsToErase;
291 calibratorFlowsToErase.push_back(j);
295 if (calibratorFlowsToErase.size() > 0) {
302 WRITE_DEBUG(
"Closed FXMessageBox of type 'question' with 'No'");
303 }
else if (answer == 4) {
304 WRITE_DEBUG(
"Closed FXMessageBox of type 'question' with 'ESC'");
310 WRITE_DEBUG(
"Closed FXMessageBox of type 'question' with 'Yes'");
312 for (
auto j : calibratorFlowsToErase) {
361 FXTableItem* item =
nullptr;
372 item->setJustify(FXTableItem::CENTER_X | FXTableItem::CENTER_Y);
373 item->setEnabled(
false);
400 FXTableItem* item =
nullptr;
411 item->setJustify(FXTableItem::CENTER_X | FXTableItem::CENTER_Y);
412 item->setEnabled(
false);
439 FXTableItem* item =
nullptr;
443 item =
new FXTableItem(i.second->getAttribute(
SUMO_ATTR_ID).c_str());
452 item =
new FXTableItem(
"");
454 item->setJustify(FXTableItem::CENTER_X | FXTableItem::CENTER_Y);
455 item->setEnabled(
false);
const AttributeCarriers & getAttributeCarriers() const
retrieve all attribute carriers of Net
void updateFlowTable()
update data table with flows
#define GUIDesignTableIconCellWidth
width of cells that only contains an Icon
void resetChanges()
reset changes did in this dialog.
description of a vehicle type
Dialog for edit Calibrator Routes.
Dialog for edit rerouter intervals.
FXButton * myAddFlow
button for add new flow
long onCmdAddVehicleType(FXObject *, FXSelector, void *)
add new vehicle type
Dialog to edit sequences, parameters, etc.. of Additionals.
long onCmdAddRoute(FXObject *, FXSelector, void *)
add new route
FXTable * myFlowList
list with flows
void updateRouteTable()
update data table with routes
~GNECalibratorDialog()
destructor
const std::vector< GNEAdditional * > & getAdditionalChildren() const
return vector of additionals that have as Parent this edge (For example, Calibrators) ...
FXLabel * myLabelFlow
label for flows
begin/end of the description of a route
void updateFlowAndLabelButton()
update flow and label button
long onCmdReset(FXObject *, FXSelector, void *)
event after press reset button
FXTable * myRouteList
list with routes
GNEUndoList * getUndoList() const
get the undoList object
#define GUIDesignAuxiliarFrame
design for auxiliar (Without borders) frames used to pack another frames extended in all directions ...
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
#define GUIDesignUniformHorizontalFrame
design for horizontal frame used to pack another frames with a uniform width
GNEDemandElement * retrieveDemandElement(SumoXMLTag type, const std::string &id, bool hardFail=true) const
Returns the named demand element.
long onCmdClickedRoute(FXObject *, FXSelector, void *)
remove or edit route
#define GUIDesignAuxiliarHorizontalFrame
design for auxiliar (Without borders) horizontal frame used to pack another frames ...
FXTable * myVehicleTypeList
list with vehicle types
std::map< SumoXMLTag, std::map< std::string, GNEDemandElement * > > demandElements
map with the name and pointer to demand elements of net
long onCmdClickedFlow(FXObject *, FXSelector, void *)
remove or edit flow
void updateVehicleTypeTable()
update data table with vehicle types
std::string generateDemandElementID(const std::string &prefix, SumoXMLTag type) const
generate demand element id
long onCmdAddFlow(FXObject *, FXSelector, void *)
add new flow
#define GUIDesignTableAdditionals
design for tables used in additional dialogs
vehicle is a passenger car (a "normal" car)
#define GUIDesignButtonIcon
button only with icon (23x23)
GNEAdditional * myEditedAdditional
pointer to edited aditional
Dialog for edit calibrators.
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 ...
FXDEFMAP(GNECalibratorDialog) GNECalibratorDialogMap[]
GNENet * getNet() const
get the net object
Dialog for edit rerouter intervals.
a flow definition within in Calibrator (used in NETEDIT)
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
long onCmdClickedVehicleType(FXObject *, FXSelector, void *)
remove or edit vehicle type
An Element which don't belongs to GNENet but has influency in the simulation.
long onCmdAccept(FXObject *, FXSelector, void *)