57 myCalibratorRouteValid(true) {
59 std::string typeOfOperation = +
" for ";
60 changeAdditionalDialogHeader(myUpdatingElement ?
"Edit " + myEditedAdditional->getTagStr() +
" of " :
"Create " + myEditedAdditional->getTagStr());
80 updateCalibratorRouteValues();
86 if (myUpdatingElement ==
false) {
87 myEditedAdditional->getViewNet()->getUndoList()->add(
new GNEChange_Additional(myEditedAdditional,
true),
true);
89 myCalibratorRouteValid =
false;
105 WRITE_DEBUG(
"Opening FXMessageBox of type 'warning'");
110 FXMessageBox::warning(getApp(), MBOX_OK,
111 (
"Error " + operation1 +
" " + tagString).c_str(),
"%s",
112 (tagString +
" cannot be " + operation2 +
" because parameter " +
toString(
myInvalidAttr) +
" is invalid.").c_str());
114 WRITE_DEBUG(
"Closed FXMessageBox of type 'warning' with 'OK'");
120 getApp()->stopModal(
this, TRUE);
131 getApp()->stopModal(
this, FALSE);
virtual bool isValid(SumoXMLAttr key, const std::string &value)=0
method for checking if the key and their conrrespond attribute are valids
void resetChanges()
reset changes did in this dialog.
FXTextField * myTextFieldColor
color of route
bool myCalibratorRouteValid
flag to check if current calibrator vehicleType is valid
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
Dialog to edit sequences, parameters, etc.. of Additionals.
virtual void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)=0
method for setting the attribute and letting the object perform additional changes ...
virtual std::string getAttribute(SumoXMLAttr key) const =0
void updateCalibratorRouteValues()
update data fields
SumoXMLAttr myInvalidAttr
current sumo attribute invalid
FXTextField * myTextFieldRouteID
route ID
GNEUndoList * getUndoList() const
get the undoList object
#define GUIDesignAuxiliarFrame
design for auxiliar (Without borders) frames used to pack another frames extended in all directions ...
long onCmdReset(FXObject *, FXSelector, void *)
event after press reset button
#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
bool myUpdatingElement
flag to indicate if additional are being created or modified (cannot be changed after open dialog) ...
const std::string getID() const
function to support debugging
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.
An Element which don't belongs to GNENet but has influency in the simulation.
Dialog for edit Calibrator Routes.
const std::string & getTagStr() const
get tag assigned to this object in string format
void cancelChanges()
Cancel changes did in this dialog.
long onCmdAccept(FXObject *, FXSelector, void *)
FXTextField * myTextFieldEdges
list of edges (string)
FXDEFMAP(GNECalibratorRouteDialog) GNECalibratorRouteDialogMap[]
long onCmdSetVariable(FXObject *, FXSelector, void *)
event after change value
~GNECalibratorRouteDialog()
destructor
#define GUIDesignLabelLeftThick
label extended over frame with thick and with text justify to left and height of 23 ...