63 myEditedCalibratorRoute(editedCalibratorRoute),
64 myUpdatingElement(updatingElement),
65 myCalibratorRouteValid(true) {
67 std::string typeOfOperation = myUpdatingElement ?
"Edit " +
toString(myEditedCalibratorRoute->getTag()) +
" of " :
"Create " +
toString(myEditedCalibratorRoute->getTag()) +
" for ";
68 changeAdditionalDialogHeader(typeOfOperation +
toString(myEditedCalibratorRoute->getCalibratorParent()->getTag()) +
" '" + myEditedCalibratorRoute->getCalibratorParent()->getID() +
"'");
88 updateCalibratorRouteValues();
94 if (myUpdatingElement ==
false) {
95 myEditedCalibratorRoute->getCalibratorParent()->getViewNet()->getUndoList()->add(
new GNEChange_CalibratorItem(myEditedCalibratorRoute,
true),
true);
118 FXMessageBox::warning(getApp(), MBOX_OK,
119 (
"Error " + operation1 +
" " + parentTagString +
"'s " + tagString).c_str(),
"%s",
120 (parentTagString +
"'s " + tagString +
" cannot be " + operation2 +
122 " is invalid.").c_str());
125 WRITE_WARNING(
"Closed FXMessageBox of type 'warning' with 'OK'");
132 getApp()->stopModal(
this, TRUE);
143 getApp()->stopModal(
this, FALSE);
void resetChanges()
reset changes did in this dialog.
FXTextField * myTextFieldColor
color of route
GNECalibratorRoute * myEditedCalibratorRoute
pointer to modified rerouter interval
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.
#define WRITE_WARNING(msg)
void updateCalibratorRouteValues()
update data fields
static OptionsCont & getOptions()
Retrieves the options.
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
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
#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
const std::string getID() const
function to support debugging
std::string getAttribute(SumoXMLAttr key) const
inherited from GNEAttributeCarrier
bool myUpdatingElement
flag to indicate if flow are being created or modified
#define GUIDesignTextFieldNCol
Num of column of text field.
bool isValid(SumoXMLAttr key, const std::string &value)
GNEViewNet * getViewNet() const
Returns a pointer to GNEViewNet in which additional element is located.
void acceptChanges()
Accept changes did in this dialog.
Dialog for edit Calibrator Routes.
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 ...
SumoXMLTag getTag() const
get XML Tag assigned to this object
GNECalibrator * getCalibratorParent() const
get pointer to calibrator parent