54 myCalibratorFlowValid(false),
57 std::string typeOfOperation = updatingElement ?
"Edit " + myEditedAdditional->getTagStr() +
" of " :
"Create " + myEditedAdditional->getTagStr() +
" for ";
58 changeAdditionalDialogHeader(typeOfOperation + myEditedAdditional->getParentAdditionals().at(0)->getTagStr() +
" '" + myEditedAdditional->getParentAdditionals().at(0)->getID() +
"'");
76 myTextFieldVehsPerHour->setTextColor(FXRGB(255, 0, 0));
80 myTextFieldSpeed->setTextColor(FXRGB(255, 0, 0));
128 for (
auto i : myEditedAdditional->getViewNet()->getNet()->getAttributeCarriers().demandElements.at(
SUMO_TAG_VTYPE)) {
129 myComboBoxVehicleType->appendItem(i.first.c_str());
131 myComboBoxVehicleType->setNumVisible((
int)myComboBoxVehicleType->getNumItems());
134 for (
auto i : myEditedAdditional->getViewNet()->getNet()->getAttributeCarriers().demandElements.at(
SUMO_TAG_ROUTE)) {
135 myComboBoxRoute->appendItem(i.first.c_str());
137 myComboBoxRoute->setNumVisible((
int)myComboBoxRoute->getNumItems());
140 updateCalibratorFlowValues();
146 if (myUpdatingElement ==
false) {
147 myEditedAdditional->getViewNet()->getUndoList()->add(
new GNEChange_Additional(myEditedAdditional,
true),
true);
166 WRITE_DEBUG(
"Opening FXMessageBox of type 'warning'");
168 FXMessageBox::warning(getApp(), MBOX_OK,
169 (
"Error " + operation1 +
" " + parentTagString +
"'s " + tagString).c_str(),
"%s",
170 (parentTagString +
"'s " + tagString +
" cannot be " + operation2 +
172 " is invalid.").c_str());
174 WRITE_DEBUG(
"Closed FXMessageBox of type 'warning' with 'OK'");
178 WRITE_DEBUG(
"Opening FXMessageBox of type 'warning'");
180 FXMessageBox::warning(getApp(), MBOX_OK,
181 (
"Error " + operation1 +
" " + parentTagString +
"'s " + tagString).c_str(),
"%s",
182 (parentTagString +
"'s " + tagString +
" cannot be " + operation2 +
183 " because there is overlapping with another " + tagString +
".").c_str());
185 WRITE_DEBUG(
"Closed FXMessageBox of type 'warning' with 'OK'");
191 getApp()->stopModal(
this, TRUE);
202 getApp()->stopModal(
this, FALSE);