73 myRouteList->setSelBackColor(FXRGBA(255, 255, 255, 255));
74 myRouteList->setSelTextColor(FXRGBA(0, 0, 0, 255));
75 myRouteList->setEditable(
false);
84 myVehicleTypeList->setSelBackColor(FXRGBA(255, 255, 255, 255));
85 myVehicleTypeList->setSelTextColor(FXRGBA(0, 0, 0, 255));
86 myVehicleTypeList->setEditable(
false);
95 myFlowList->setSelBackColor(FXRGBA(255, 255, 255, 255));
96 myFlowList->setSelTextColor(FXRGBA(0, 0, 0, 255));
97 myFlowList->setEditable(
false);
101 updateVehicleTypeTable();
120 getApp()->stopModal(
this, TRUE);
130 getApp()->stopModal(
this, FALSE);
165 std::vector<GNEAdditional*> calibratorFlowsToErase;
168 calibratorFlowsToErase.push_back(j);
172 if (calibratorFlowsToErase.size() > 0) {
174 WRITE_DEBUG(
"Opening FXMessageBox of type 'question'");
182 WRITE_DEBUG(
"Closed FXMessageBox of type 'question' with 'No'");
183 }
else if (answer == 4) {
184 WRITE_DEBUG(
"Closed FXMessageBox of type 'question' with 'ESC'");
190 WRITE_DEBUG(
"Closed FXMessageBox of type 'question' with 'Yes'");
192 for (
auto j : calibratorFlowsToErase) {
230 if (routes.size() > 0) {
284 FXMessageBox::warning(getApp(), MBOX_OK,
289 std::vector<GNEAdditional*> calibratorFlowsToErase;
292 calibratorFlowsToErase.push_back(j);
296 if (calibratorFlowsToErase.size() > 0) {
303 WRITE_DEBUG(
"Closed FXMessageBox of type 'question' with 'No'");
304 }
else if (answer == 4) {
305 WRITE_DEBUG(
"Closed FXMessageBox of type 'question' with 'ESC'");
311 WRITE_DEBUG(
"Closed FXMessageBox of type 'question' with 'Yes'");
313 for (
auto j : calibratorFlowsToErase) {
362 FXTableItem* item =
nullptr;
373 item->setJustify(FXTableItem::CENTER_X | FXTableItem::CENTER_Y);
374 item->setEnabled(
false);
401 FXTableItem* item =
nullptr;
412 item->setJustify(FXTableItem::CENTER_X | FXTableItem::CENTER_Y);
413 item->setEnabled(
false);
440 FXTableItem* item =
nullptr;
444 item =
new FXTableItem(vType->getAttribute(
SUMO_ATTR_ID).c_str());
453 item =
new FXTableItem(
"");
455 item->setJustify(FXTableItem::CENTER_X | FXTableItem::CENTER_Y);
456 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
@ SUMO_TAG_ROUTE
begin/end of the description of a route
@ GNE_TAG_CALIBRATOR_FLOW
a flow definition within in Calibrator
@ 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 additional
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 editing calibrator flows.
An Element which don't belong to GNENet but has influence 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 editing 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 editing calibrator vehicle types.
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