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) {
231 if (routes.size() > 0) {
285 FXMessageBox::warning(getApp(), MBOX_OK,
290 std::vector<GNEAdditional*> calibratorFlowsToErase;
293 calibratorFlowsToErase.push_back(j);
297 if (calibratorFlowsToErase.size() > 0) {
304 WRITE_DEBUG(
"Closed FXMessageBox of type 'question' with 'No'");
305 }
else if (answer == 4) {
306 WRITE_DEBUG(
"Closed FXMessageBox of type 'question' with 'ESC'");
312 WRITE_DEBUG(
"Closed FXMessageBox of type 'question' with 'Yes'");
314 for (
auto j : calibratorFlowsToErase) {
363 FXTableItem* item =
nullptr;
374 item->setJustify(FXTableItem::CENTER_X | FXTableItem::CENTER_Y);
375 item->setEnabled(
false);
402 FXTableItem* item =
nullptr;
413 item->setJustify(FXTableItem::CENTER_X | FXTableItem::CENTER_Y);
414 item->setEnabled(
false);
441 FXTableItem* item =
nullptr;
445 item =
new FXTableItem(vType->getAttribute(
SUMO_ATTR_ID).c_str());
454 item =
new FXTableItem(
"");
456 item->setJustify(FXTableItem::CENTER_X | FXTableItem::CENTER_Y);
457 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/person/container type
@ GNE_TAG_FLOW_CALIBRATOR
a flow definition within in Calibrator
@ SUMO_TAG_ROUTE
begin/end of the description of a route
@ 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::set< GNEDemandElement * > > & getDemandElements() const
get demand elements
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.
GNEDemandElement * getDefaultType() const
get default type
GNENetHelper::AttributeCarriers * getAttributeCarriers() const
get all attribute carriers used in this net
GNEViewNet * getViewNet() const
get view net
Dialog for edit Calibrator Routes.
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...
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