55 myCalibratorFlowValid(false),
58 std::string typeOfOperation = updatingElement ?
"Edit " + myEditedAdditional->getTagStr() +
" of " :
"Create " + myEditedAdditional->getTagStr() +
" for ";
59 changeAdditionalDialogHeader(typeOfOperation + myEditedAdditional->getAdditionalParents().at(0)->getTagStr() +
" '" + myEditedAdditional->getAdditionalParents().at(0)->getID() +
"'");
77 myTextFieldVehsPerHour->setTextColor(FXRGB(255, 0, 0));
81 myTextFieldSpeed->setTextColor(FXRGB(255, 0, 0));
129 for (
auto i : myEditedAdditional->getViewNet()->getNet()->getAttributeCarriers().demandElements.at(
SUMO_TAG_VTYPE)) {
130 myComboBoxVehicleType->appendItem(i.first.c_str());
132 myComboBoxVehicleType->setNumVisible((
int)myComboBoxVehicleType->getNumItems());
135 for (
auto i : myEditedAdditional->getViewNet()->getNet()->getAttributeCarriers().demandElements.at(
SUMO_TAG_ROUTE)) {
136 myComboBoxRoute->appendItem(i.first.c_str());
138 myComboBoxRoute->setNumVisible((
int)myComboBoxRoute->getNumItems());
141 updateCalibratorFlowValues();
147 if (myUpdatingElement ==
false) {
148 myEditedAdditional->getViewNet()->getUndoList()->add(
new GNEChange_Additional(myEditedAdditional,
true),
true);
167 WRITE_DEBUG(
"Opening FXMessageBox of type 'warning'");
169 FXMessageBox::warning(getApp(), MBOX_OK,
170 (
"Error " + operation1 +
" " + parentTagString +
"'s " + tagString).c_str(),
"%s",
171 (parentTagString +
"'s " + tagString +
" cannot be " + operation2 +
173 " is invalid.").c_str());
175 WRITE_DEBUG(
"Closed FXMessageBox of type 'warning' with 'OK'");
179 WRITE_DEBUG(
"Opening FXMessageBox of type 'warning'");
181 FXMessageBox::warning(getApp(), MBOX_OK,
182 (
"Error " + operation1 +
" " + parentTagString +
"'s " + tagString).c_str(),
"%s",
183 (parentTagString +
"'s " + tagString +
" cannot be " + operation2 +
184 " because there is overlapping with another " + tagString +
".").c_str());
186 WRITE_DEBUG(
"Closed FXMessageBox of type 'warning' with 'OK'");
192 getApp()->stopModal(
this, TRUE);
203 getApp()->stopModal(
this, FALSE);