74 myRouteList->setSelBackColor(FXRGBA(255, 255, 255, 255));
75 myRouteList->setSelTextColor(FXRGBA(0, 0, 0, 255));
76 myRouteList->setEditable(
false);
85 myVehicleTypeList->setSelBackColor(FXRGBA(255, 255, 255, 255));
86 myVehicleTypeList->setSelTextColor(FXRGBA(0, 0, 0, 255));
87 myVehicleTypeList->setEditable(
false);
96 myFlowList->setSelBackColor(FXRGBA(255, 255, 255, 255));
97 myFlowList->setSelTextColor(FXRGBA(0, 0, 0, 255));
98 myFlowList->setEditable(
false);
102 updateVehicleTypeTable();
121 getApp()->stopModal(
this, TRUE);
131 getApp()->stopModal(
this, FALSE);
166 std::vector<GNEAdditional*> calibratorFlowsToErase;
169 calibratorFlowsToErase.push_back(j);
173 if (calibratorFlowsToErase.size() > 0) {
175 WRITE_DEBUG(
"Opening FXMessageBox of type 'question'");
183 WRITE_DEBUG(
"Closed FXMessageBox of type 'question' with 'No'");
184 }
else if (answer == 4) {
185 WRITE_DEBUG(
"Closed FXMessageBox of type 'question' with 'ESC'");
191 WRITE_DEBUG(
"Closed FXMessageBox of type 'question' with 'Yes'");
193 for (
auto j : calibratorFlowsToErase) {
235 throw ProcessError(
"myEditedAdditional->getNet()->getViewNet()->getNet()->getAttributeCarriers()->getDemandElements().at(SUMO_TAG_ROUTE) cannot be empty");
282 FXMessageBox::warning(getApp(), MBOX_OK,
287 std::vector<GNEAdditional*> calibratorFlowsToErase;
290 calibratorFlowsToErase.push_back(j);
294 if (calibratorFlowsToErase.size() > 0) {
301 WRITE_DEBUG(
"Closed FXMessageBox of type 'question' with 'No'");
302 }
else if (answer == 4) {
303 WRITE_DEBUG(
"Closed FXMessageBox of type 'question' with 'ESC'");
309 WRITE_DEBUG(
"Closed FXMessageBox of type 'question' with 'Yes'");
311 for (
auto j : calibratorFlowsToErase) {
360 FXTableItem* item =
nullptr;
371 item->setJustify(FXTableItem::CENTER_X | FXTableItem::CENTER_Y);
372 item->setEnabled(
false);
399 FXTableItem* item =
nullptr;
410 item->setJustify(FXTableItem::CENTER_X | FXTableItem::CENTER_Y);
411 item->setEnabled(
false);
438 FXTableItem* item =
nullptr;
442 item =
new FXTableItem(i.second->getAttribute(
SUMO_ATTR_ID).c_str());
451 item =
new FXTableItem(
"");
453 item->setJustify(FXTableItem::CENTER_X | FXTableItem::CENTER_Y);
454 item->setEnabled(
false);
FXDEFMAP(GNECalibratorDialog) GNECalibratorDialogMap[]
@ MID_GNE_CALIBRATORDIALOG_TABLE_FLOW
change table flow
@ MID_GNE_CALIBRATORDIALOG_ADD_ROUTE
add new route
@ MID_GNE_CALIBRATORDIALOG_ADD_FLOW
@ MID_GNE_CALIBRATORDIALOG_ADD_VEHICLETYPE
add vehicle type
@ MID_GNE_CALIBRATORDIALOG_TABLE_ROUTE
change table route
@ MID_GNE_CALIBRATORDIALOG_TABLE_VEHICLETYPE
change table route
#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 GUIDesignUniformHorizontalFrame
design for horizontal frame used to pack another frames with a uniform width
#define GUIDesignLabelThick
label extended over frame with thick and with text justify to left
#define GUIDesignAuxiliarFrame
design for auxiliar (Without borders) frames used to pack another frames extended in all directions
@ SVC_PASSENGER
vehicle is a passenger car (a "normal" car)
@ SUMO_TAG_VTYPE
description of a vehicle type
@ SUMO_TAG_ROUTE
begin/end of the description of a route
@ SUMO_TAG_FLOW_CALIBRATOR
a flow definition within in Calibrator (used in NETEDIT)
@ SUMO_ATTR_EDGES
the edges of a route
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.
GNENet * getNet() const
get pointer to net
Dialog for edit calibrators.
long onCmdReset(FXObject *, FXSelector, void *)
event after press reset button
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
FXTable * myFlowList
list with flows
long onCmdClickedFlow(FXObject *, FXSelector, void *)
remove or edit flow
FXLabel * myLabelFlow
label for flows
long onCmdClickedVehicleType(FXObject *, FXSelector, void *)
remove or edit vehicle type
FXTable * myVehicleTypeList
list with vehicle types
long onCmdAccept(FXObject *, FXSelector, void *)
~GNECalibratorDialog()
destructor
long onCmdAddVehicleType(FXObject *, FXSelector, void *)
add new vehicle type
long onCmdClickedRoute(FXObject *, FXSelector, void *)
remove or edit route
void updateRouteTable()
update data table with routes
void updateFlowAndLabelButton()
update flow and label button
FXTable * myRouteList
list with routes
long onCmdAddFlow(FXObject *, FXSelector, void *)
add new flow
long onCmdAddRoute(FXObject *, FXSelector, void *)
add new route
FXButton * myAddFlow
button for add new flow
void updateFlowTable()
update data table with flows
void updateVehicleTypeTable()
update data table with vehicle types
Dialog for edit rerouter intervals.
An Element which don't belongs to GNENet but has influency in the simulation.
const std::vector< GNEAdditional * > & getChildAdditionals() const
return child additionals
const std::map< SumoXMLTag, std::map< std::string, GNEDemandElement * > > & getDemandElements() const
GNENetHelper::AttributeCarriers * getAttributeCarriers() const
retrieve all attribute carriers of Net
std::string generateDemandElementID(SumoXMLTag tag) const
generate demand element id
GNEDemandElement * retrieveDemandElement(SumoXMLTag type, const std::string &id, bool hardFail=true) const
Returns the named demand element.
GNEViewNet * getViewNet() const
get view net
Dialog for edit Calibrator Routes.
Dialog for edit rerouter intervals.
GNENet * getNet() const
get the net object
GNEUndoList * getUndoList() const
get the undoList object
static FXIcon * getIcon(const GUIIcon which)
returns a icon previously defined in the enum GUIIcon