57 myCalibratorVehicleTypeValid(true),
60 changeAdditionalDialogHeader(updatingElement ?
"Edit " + myEditedAdditional->getTagStr() +
" of " :
"Create " + myEditedAdditional->getTagStr());
73 myComboBoxVClassLabelImage->setBackColor(FXRGBA(255, 255, 255, 255));
76 for (
auto i : VClassStrings) {
78 myComboBoxVClass->appendItem(i.c_str());
82 myComboBoxVClass->setNumVisible(10);
88 myComboBoxShapeLabelImage->setBackColor(FXRGBA(255, 255, 255, 255));
91 for (
auto i : VShapeStrings) {
93 myComboBoxShape->appendItem(i.c_str());
97 myComboBoxShape->setNumVisible(10);
196 updateCalibratorVehicleTypeValues();
202 if (myUpdatingElement ==
false) {
203 myEditedAdditional->getViewNet()->getUndoList()->add(
new GNEChange_Additional(myEditedAdditional,
true),
true);
218 WRITE_DEBUG(
"Opening FXMessageBox of type 'warning'");
223 FXMessageBox::warning(getApp(), MBOX_OK,
224 (
"Error " + operation1 +
" " + tagString).c_str(),
"%s",
225 (tagString +
" cannot be " + operation2 +
227 " is invalid.").c_str());
229 WRITE_DEBUG(
"Closed FXMessageBox of type 'warning' with 'OK'");
235 getApp()->stopModal(
this, TRUE);
246 getApp()->stopModal(
this, FALSE);
SUMOVehicleClass getVehicleClassID(const std::string &name)
Returns the class id of the abstract class given by its name.
virtual bool isValid(SumoXMLAttr key, const std::string &value)=0
method for checking if the key and their conrrespond attribute are valids
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
vehicle is a small delivery vehicle
Dialog to edit sequences, parameters, etc.. of Additionals.
FXTextField * myTextFieldVehicleTypeID
FXTextfield for vehicleTypeID.
virtual void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)=0
method for setting the attribute and letting the object perform additional changes ...
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 ...
virtual std::string getAttribute(SumoXMLAttr key) const =0
vehicle is a (possibly fast moving) electric rail
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 ...
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 additional are being created or modified (cannot be changed after open dialog) ...
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.
GNEAdditional * myEditedAdditional
pointer to edited aditional
#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.
An Element which don't belongs to GNENet but has influency in the simulation.
long onCmdAccept(FXObject *, FXSelector, void *)
const std::string & getTagStr() const
get tag assigned to this object in string format
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
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
FXTextField * myTextFieldMaxSpeedLat
FXTextfield for MaxSpeedLat.
FXTextField * myTextFieldDecel
FXTextfield for Decel.
FXLabel * myComboBoxVClassLabelImage
label with image of VClass