63 myEditedCalibratorVehicleType(editedCalibratorVehicleType),
64 myUpdatingElement(updatingElement),
65 myCalibratorVehicleTypeValid(true),
68 std::string typeOfOperation = myUpdatingElement ?
"Edit " +
toString(myEditedCalibratorVehicleType->getTag()) +
" of " :
"Create " +
toString(myEditedCalibratorVehicleType->getTag()) +
" for ";
69 changeAdditionalDialogHeader(typeOfOperation +
toString(myEditedCalibratorVehicleType->getCalibratorParent()->getTag()) +
" '" + myEditedCalibratorVehicleType->getCalibratorParent()->getID() +
"'");
82 myComboBoxVClassLabelImage->setBackColor(FXRGBA(255, 255, 255, 255));
85 for (
auto i : VClassStrings) {
87 myComboBoxVClass->appendItem(i.c_str());
91 myComboBoxVClass->setNumVisible(10);
97 myComboBoxShapeLabelImage->setBackColor(FXRGBA(255, 255, 255, 255));
100 for (
auto i : VShapeStrings) {
102 myComboBoxShape->appendItem(i.c_str());
106 myComboBoxShape->setNumVisible(10);
205 updateCalibratorVehicleTypeValues();
211 if (myUpdatingElement ==
false) {
212 myEditedCalibratorVehicleType->getCalibratorParent()->getViewNet()->getUndoList()->add(
new GNEChange_CalibratorItem(myEditedCalibratorVehicleType,
true),
true);
235 FXMessageBox::warning(getApp(), MBOX_OK,
236 (
"Error " + operation1 +
" " + parentTagString +
"'s " + tagString).c_str(),
"%s",
237 (parentTagString +
"'s " + tagString +
" cannot be " + operation2 +
239 " is invalid.").c_str());
242 WRITE_WARNING(
"Closed FXMessageBox of type 'warning' with 'OK'");
249 getApp()->stopModal(
this, TRUE);
260 getApp()->stopModal(
this, FALSE);
SUMOVehicleClass getVehicleClassID(const std::string &name)
Returns the class id of the abstract class given by its name.
FXTextField * myTextFieldSpeedFactor
FXTextfield for SpeedFactor.
long onCmdSetVariable(FXObject *, FXSelector, void *)
after change a variable of vehicle type
void resetChanges()
reset changes did in this dialog.
FXComboBox * myComboBoxVClass
FXComboBox for VClass.
#define GUIDesignComboBoxNCol
number of column of every combo box
FXTextField * myTextFieldMinGapLat
FXTextfield for MinGapLat.
FXTextField * myTextFieldLoadingDuration
FXTextfield for LoadingDuration.
StringBijection< SUMOVehicleShape > SumoVehicleShapeStrings(sumoVehicleShapeStringInitializer, SVS_UNKNOWN, false)
FXTextField * myTextFieldAccel
FXTextfield for Accel.
vehicle is a not electrified rail
FXTextField * myTextFieldFilename
FXTextfield for Filename.
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
std::string getAttribute(SumoXMLAttr key) const
inherited from GNEAttributeCarrier
vehicle is a small delivery vehicle
Dialog to edit sequences, parameters, etc.. of Additionals.
FXTextField * myTextFieldVehicleTypeID
FXTextfield for vehicleTypeID.
FXTextField * myTextFieldMaxSpeed
FXTextfield for MaxSpeed.
~GNECalibratorVehicleTypeDialog()
destructor
FXTextField * myTextFieldWidth
FXTextfield for Width.
FXComboBox * myComboBoxShape
FXComboBox for Shape.
FXTextField * myTextFieldBoardingDuration
FXTextfield for BoardingDuration.
#define GUIDesignLabelIconExtendedx46Ticked
label ticked filled extended over frame used for VClasses. can be used by icons of 64x32 pixels ...
vehicle is a (possibly fast moving) electric rail
#define WRITE_WARNING(msg)
static OptionsCont & getOptions()
Retrieves the options.
vehicle is a large transport vehicle
#define GUIDesignComboBox
void updateCalibratorVehicleTypeValues()
update data fields
GNEUndoList * getUndoList() const
get the undoList object
#define GUIDesignAuxiliarFrame
design for auxiliar (Without borders) frames used to pack another frames extended in all directions ...
bool isValid(SumoXMLAttr key, const std::string &value)
FXTextField * myTextFieldLatAlignment
FXTextfield for LatAlignment.
#define GUIDesignTextField
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
FXTextField * myTextFieldLaneChangeModel
FXTextfield for LaneChangeModel.
bool myUpdatingElement
flag to indicate if flow are being created or modified
FXTextField * myTextFieldPersonCapacity
FXTextfield for PersonCapacity.
SumoXMLAttr myInvalidAttr
current sumo attribute invalid
FXTextField * myTextFieldColor
FXTextfield for Color.
Dialog for edit rerouter intervals.
FXTextField * myTextFieldSigma
FXTextfield for Sigma.
StringBijection< SUMOVehicleClass > SumoVehicleClassStrings(sumoVehicleClassStringInitializer, SVC_CUSTOM2, false)
FXTextField * myTextFieldImpatience
FXTextfield for Impatience.
void setVClassLabelImage()
set VClass texture
vehicle is a passenger car (a "normal" car)
bool myCalibratorVehicleTypeValid
flag to check if current calibrator vehicleType is valid
FXTextField * myTextFieldEmissionClass
FXTextfield for EmissionClass.
#define GUIDesignTextFieldNCol
Num of column of text field.
GNEViewNet * getViewNet() const
Returns a pointer to GNEViewNet in which additional element is located.
void acceptChanges()
Accept changes did in this dialog.
FXTextField * myTextFieldContainerCapacity
FXTextfield for ContainerCapacity.
long onCmdAccept(FXObject *, FXSelector, void *)
FXTextField * myTextFieldTau
FXTextfield for Tau.
void cancelChanges()
Cancel changes did in this dialog.
vehicle is a large transport vehicle
#define GUIDesignLabelThick
label extended over frame with thick and with text justify to left and height of 23 ...
#define GUIDesignTextFieldInt
text field extended over Frame with thick frame and limited to Integers
FXTextField * myTextFieldMinGap
FXTextfield for MinGap.
FXTextField * myTextFieldCarFollowModel
FXTextfield for CarFollowModel.
#define GUIDesignTextFieldReal
text field extended over Frame with thick frame and limited to Doubles/doubles
GNECalibrator * getCalibratorParent() const
get pointer to calibrator parent
FXDEFMAP(GNECalibratorVehicleTypeDialog) GNECalibratorVehicleTypeDialogMap[]
long onCmdReset(FXObject *, FXSelector, void *)
event after press reset button
public emergency vehicles
FXTextField * myTextFieldLength
FXTextfield for Length.
FXTextField * myTextFieldSpeedDev
FXTextfield for SpeedDev.
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon
vehicles ignoring classes
GNECalibratorVehicleType * myEditedCalibratorVehicleType
pointer to original calibrator vehicle type
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
FXTextField * myTextFieldMaxSpeedLat
FXTextfield for MaxSpeedLat.
FXTextField * myTextFieldDecel
FXTextfield for Decel.
FXLabel * myComboBoxVClassLabelImage
label with image of VClass
SumoXMLTag getTag() const
get XML Tag assigned to this object