72 myEditedCalibrator(editedCalibrator) {
86 myRouteList->setSelBackColor(FXRGBA(255, 255, 255, 255));
87 myRouteList->setSelTextColor(FXRGBA(0, 0, 0, 255));
88 myRouteList->setEditable(
false);
97 myVehicleTypeList->setSelBackColor(FXRGBA(255, 255, 255, 255));
98 myVehicleTypeList->setSelTextColor(FXRGBA(0, 0, 0, 255));
99 myVehicleTypeList->setEditable(
false);
108 myFlowList->setSelBackColor(FXRGBA(255, 255, 255, 255));
109 myFlowList->setSelTextColor(FXRGBA(0, 0, 0, 255));
110 myFlowList->setEditable(
false);
114 updateVehicleTypeTable();
139 getApp()->stopModal(
this, TRUE);
149 getApp()->stopModal(
this, FALSE);
182 std::vector<GNECalibratorFlow*> calibratorFlowsToErase;
185 calibratorFlowsToErase.push_back(j);
189 if (calibratorFlowsToErase.size() > 0) {
195 FXuint answer = FXMessageBox::question(getApp(), MBOX_YES_NO, (
"Remove " +
toString(
SUMO_TAG_FLOW) +
"s").c_str(),
"%s",
197 "' will remove " +
toString(calibratorFlowsToErase.size()) +
" " +
toString(
SUMO_TAG_FLOW) + (calibratorFlowsToErase.size() > 1 ? (
"s") : (
"")) +
198 ". Continue?").c_str());
202 WRITE_WARNING(
"Closed FXMessageBox of type 'question' with 'No'");
204 WRITE_WARNING(
"Closed FXMessageBox of type 'question' with 'ESC'");
211 WRITE_WARNING(
"Closed FXMessageBox of type 'question' with 'Yes'");
214 for (
auto j : calibratorFlowsToErase) {
254 throw ProcessError(
"Neiter myModifiedCalibratorRoutes nor myModifiedCalibratorVehicleTypes can be empty");
298 std::vector<GNECalibratorFlow*> calibratorFlowsToErase;
301 calibratorFlowsToErase.push_back(j);
305 if (calibratorFlowsToErase.size() > 0) {
306 FXuint answer = FXMessageBox::question(getApp(), MBOX_YES_NO, (
"Remove " +
toString(
SUMO_TAG_FLOW) +
"s").c_str(),
"%s",
308 "' will remove " +
toString(calibratorFlowsToErase.size()) +
" " +
toString(
SUMO_TAG_FLOW) + (calibratorFlowsToErase.size() > 1 ? (
"s") : (
"")) +
309 ". Continue?").c_str());
313 WRITE_WARNING(
"Closed FXMessageBox of type 'question' with 'No'");
315 WRITE_WARNING(
"Closed FXMessageBox of type 'question' with 'ESC'");
322 WRITE_WARNING(
"Closed FXMessageBox of type 'question' with 'Yes'");
325 for (
auto j : calibratorFlowsToErase) {
372 FXTableItem* item = 0;
376 item =
new FXTableItem(
toString(i->getID()).c_str());
383 item->setJustify(FXTableItem::CENTER_X | FXTableItem::CENTER_Y);
384 item->setEnabled(
false);
413 FXTableItem* item = 0;
417 item =
new FXTableItem(i->getID().c_str());
427 item->setJustify(FXTableItem::CENTER_X | FXTableItem::CENTER_Y);
428 item->setEnabled(
false);
455 FXTableItem* item = 0;
459 item =
new FXTableItem(i->getID().c_str());
466 item->setJustify(FXTableItem::CENTER_X | FXTableItem::CENTER_Y);
467 item->setEnabled(
false);
479 std::string errorMsg;
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
FXButton * myAddFlow
button for add new flow
a flow definition (used by router)
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
GNECalibrator * getEditedCalibrator() const
get edited calibrator
long onCmdAddVehicleType(FXObject *, FXSelector, void *)
add new vehicle type
Dialog to edit sequences, parameters, etc.. of Additionals.
const std::vector< GNECalibratorVehicleType * > & getCalibratorVehicleTypes() const
get calibrator vehicleTypes
long onCmdAddRoute(FXObject *, FXSelector, void *)
add new route
FXTable * myFlowList
list with flows
void updateRouteTable()
update data table with routes
~GNECalibratorDialog()
destructor
FXLabel * myLabelFlow
label for flows
begin/end of the description of a route
#define WRITE_WARNING(msg)
static OptionsCont & getOptions()
Retrieves the options.
void updateFlowAndLabelButton()
update flow and label button
GNEUndoList * getUndoList() const
get the undoList object
long onCmdReset(FXObject *, FXSelector, void *)
event after press reset button
FXTable * myRouteList
list with routes
#define GUIDesignAuxiliarFrame
design for auxiliar (Without borders) frames used to pack another frames extended in all directions ...
GNEViewNet * getViewNet() const
Returns a pointer to GNEViewNet in which additional element is located.
GNECalibrator * myEditedCalibrator
pointer to edited calibrator
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
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
Dialog for edit rerouter intervals.
long onCmdClickedFlow(FXObject *, FXSelector, void *)
remove or edit flow
void updateVehicleTypeTable()
update data table with vehicle types
long onCmdAddFlow(FXObject *, FXSelector, void *)
add new flow
#define GUIDesignTableAdditionals
design for tables used in additional dialogs
#define GUIDesignButtonIcon
button only with icon (23x23)
Dialog for edit calibrators.
void acceptChanges()
Accept changes did in this dialog.
Dialog for edit Calibrator Routes.
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[]
Dialog for edit rerouter intervals.
const std::vector< GNECalibratorFlow * > & getCalibratorFlows() const
get calibrator flows
const std::vector< GNECalibratorRoute * > & getCalibratorRoutes() const
get calibrator routes
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
long onCmdAccept(FXObject *, FXSelector, void *)