 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
49 myCalibratorRouteValid(true) {
51 std::string typeOfOperation = +
" for ";
52 changeDemandElementDialogHeader(myUpdatingElement ?
"Edit " + myEditedDemandElement->getTagStr() +
" of " :
"Create " + myEditedDemandElement->getTagStr());
72 updateCalibratorRouteValues();
78 if (myUpdatingElement ==
false) {
79 myEditedDemandElement->getViewNet()->getUndoList()->add(
new GNEChange_DemandElement(myEditedDemandElement,
true),
true);
81 myCalibratorRouteValid =
false;
97 WRITE_DEBUG(
"Opening FXMessageBox of type 'warning'");
102 FXMessageBox::warning(getApp(), MBOX_OK,
103 (
"Error " + operation1 +
" " + tagString).c_str(),
"%s",
104 (tagString +
" cannot be " + operation2 +
" because parameter " +
toString(
myInvalidAttr) +
" is invalid.").c_str());
106 WRITE_DEBUG(
"Closed FXMessageBox of type 'warning' with 'OK'");
112 getApp()->stopModal(
this, TRUE);
123 getApp()->stopModal(
this, FALSE);
void acceptChanges()
Accept changes did in this dialog.
An Element which don't belongs to GNENet but has influency in the simulation.
#define GUIDesignTextFieldNCol
Num of column of text field.
const std::string getID() const
function to support debugging
FXDEFMAP(GNERouteDialog) GNERouteDialogMap[]
#define GUIDesignUniformHorizontalFrame
design for horizontal frame used to pack another frames with a uniform width
@ SUMO_ATTR_COLOR
A color information.
GNEViewNet * getViewNet() const
Returns a pointer to GNEViewNet in which demand element element is located.
virtual bool isValid(SumoXMLAttr key, const std::string &value)=0
method for checking if the key and their conrrespond attribute are valids
#define GUIDesignTextField
void cancelChanges()
Cancel changes did in this dialog.
long onCmdAccept(FXObject *, FXSelector, void *)
Dialog to edit sequences, parameters, etc.. of DemandElements.
virtual std::string getAttribute(SumoXMLAttr key) const =0
@ SUMO_ATTR_NOTHING
invalid attribute
@ SUMO_ATTR_EDGES
the edges of a route
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
FXTextField * myTextFieldRouteID
route ID
GNEUndoList * getUndoList() const
get the undoList object
FXTextField * myTextFieldColor
color of route
SumoXMLAttr myInvalidAttr
current sumo attribute invalid
bool myUpdatingElement
flag to indicate if additional are being created or modified (cannot be changed after open dialog)
long onCmdReset(FXObject *, FXSelector, void *)
event after press reset button
GNEDemandElement * myEditedDemandElement
pointer to edited aditional
void updateCalibratorRouteValues()
update data fields
Dialog for edit Calibrator Routes.
virtual void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)=0
method for setting the attribute and letting the object perform demand element changes
~GNERouteDialog()
destructor
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
long onCmdSetVariable(FXObject *, FXSelector, void *)
event after change value
#define GUIDesignLabelLeftThick
label extended over frame with thick and with text justify to left and height of 23
@ MID_GNE_CALIBRATORDIALOG_SET_VARIABLE
set new variable
void resetChanges()
reset changes did in this dialog.
#define GUIDesignAuxiliarFrame
design for auxiliar (Without borders) frames used to pack another frames extended in all directions
FXTextField * myTextFieldEdges
list of edges (string)
const std::string & getTagStr() const
get tag assigned to this object in string format
bool myCalibratorRouteValid
flag to check if current calibrator vehicleType is valid