![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Dialog for edit Calibrator Routes. More...
#include <GNERouteDialog.h>
Public Member Functions | |
GNEDemandElement * | getEditedDemandElement () const |
get edited DemandElement More... | |
GNERouteDialog (GNEDemandElement *editedCalibratorRoute, bool updatingElement) | |
FOX-declaration. More... | |
~GNERouteDialog () | |
destructor More... | |
FOX-callbacks | |
event after press accept button | |
long | onCmdAccept (FXObject *, FXSelector, void *) |
long | onCmdCancel (FXObject *, FXSelector, void *) |
event after press cancel button More... | |
long | onCmdReset (FXObject *, FXSelector, void *) |
event after press reset button More... | |
long | onCmdSetVariable (FXObject *, FXSelector, void *) |
event after change value More... | |
FOX-callbacks | |
event after press accept button | |
long | onKeyPress (FXObject *sender, FXSelector sel, void *ptr) |
event after press a key More... | |
long | onKeyRelease (FXObject *sender, FXSelector sel, void *ptr) |
event after release a key More... | |
Protected Member Functions | |
void | acceptChanges () |
Accept changes did in this dialog. More... | |
void | cancelChanges () |
Cancel changes did in this dialog. More... | |
void | changeDemandElementDialogHeader (const std::string &newHeader) |
change additional dialog header More... | |
GNERouteDialog () | |
FOX needs this. More... | |
void | initChanges () |
init a new group of changes that will be do it in dialog More... | |
FXint | openAsModalDialog (FXuint placement=PLACEMENT_CURSOR) |
execute dialog as modal More... | |
void | resetChanges () |
reset changes did in this dialog. More... | |
void | updateCalibratorRouteValues () |
update data fields More... | |
Protected Attributes | |
bool | myCalibratorRouteValid |
flag to check if current calibrator vehicleType is valid More... | |
FXVerticalFrame * | myContentFrame |
frame for contents More... | |
GNEDemandElement * | myEditedDemandElement |
pointer to edited aditional More... | |
SumoXMLAttr | myInvalidAttr |
current sumo attribute invalid More... | |
FXTextField * | myTextFieldColor |
color of route More... | |
FXTextField * | myTextFieldEdges |
list of edges (string) More... | |
FXTextField * | myTextFieldRouteID |
route ID More... | |
bool | myUpdatingElement |
flag to indicate if additional are being created or modified (cannot be changed after open dialog) More... | |
Private Member Functions | |
GNERouteDialog (const GNERouteDialog &)=delete | |
Invalidated copy constructor. More... | |
GNERouteDialog & | operator= (const GNERouteDialog &)=delete |
Invalidated assignment operator. More... | |
Private Attributes | |
FXButton * | myAcceptButton |
accept button More... | |
FXButton * | myCancelButton |
cancel button More... | |
std::string | myChangesDescription |
description of changes did in this additional dialog More... | |
int | myNumberOfChanges |
number of GNEChanges_... in dialog More... | |
FXButton * | myResetButton |
cancel button More... | |
Dialog for edit Calibrator Routes.
Definition at line 43 of file GNERouteDialog.h.
GNERouteDialog::GNERouteDialog | ( | GNEDemandElement * | editedCalibratorRoute, |
bool | updatingElement | ||
) |
FOX-declaration.
constructor
Definition at line 48 of file GNERouteDialog.cpp.
References GUIDesignAuxiliarFrame, GUIDesignLabelLeftThick, GUIDesignTextField, GUIDesignTextFieldNCol, GUIDesignUniformHorizontalFrame, MID_GNE_CALIBRATORDIALOG_SET_VARIABLE, SUMO_ATTR_COLOR, SUMO_ATTR_EDGES, SUMO_ATTR_ID, and toString().
GNERouteDialog::~GNERouteDialog | ( | ) |
destructor
Definition at line 91 of file GNERouteDialog.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 71 of file GNERouteDialog.h.
|
privatedelete |
Invalidated copy constructor.
|
protectedinherited |
Accept changes did in this dialog.
Definition at line 125 of file GNEDemandElementDialog.cpp.
References GNEViewNet::getUndoList(), GNEDemandElement::getViewNet(), GNEDemandElementDialog::myEditedDemandElement, GNEUndoList::p_abortLastCommandGroup(), and GNEUndoList::p_end().
Referenced by onCmdAccept(), and GNEVehicleTypeDialog::onCmdAccept().
|
protectedinherited |
Cancel changes did in this dialog.
Definition at line 136 of file GNEDemandElementDialog.cpp.
References GNEViewNet::getUndoList(), GNEDemandElement::getViewNet(), GNEDemandElementDialog::myEditedDemandElement, and GNEUndoList::p_abortLastCommandGroup().
Referenced by onCmdCancel(), and GNEVehicleTypeDialog::onCmdCancel().
|
protectedinherited |
change additional dialog header
Definition at line 109 of file GNEDemandElementDialog.cpp.
Referenced by GNEVehicleTypeDialog::GNEVehicleTypeDialog().
|
inherited |
get edited DemandElement
Definition at line 91 of file GNEDemandElementDialog.cpp.
References GNEDemandElementDialog::myEditedDemandElement.
|
protectedinherited |
init a new group of changes that will be do it in dialog
Definition at line 116 of file GNEDemandElementDialog.cpp.
References GNEUndoList::currentCommandGroupSize(), GNEViewNet::getUndoList(), GNEDemandElement::getViewNet(), GNEDemandElementDialog::myChangesDescription, GNEDemandElementDialog::myEditedDemandElement, GNEDemandElementDialog::myNumberOfChanges, and GNEUndoList::p_begin().
Referenced by GNEVehicleTypeDialog::GNEVehicleTypeDialog().
|
virtual |
Implements GNEDemandElementDialog.
Definition at line 95 of file GNERouteDialog.cpp.
References GNEDemandElementDialog::acceptChanges(), GNEAttributeCarrier::getTagStr(), myCalibratorRouteValid, GNEDemandElementDialog::myEditedDemandElement, myInvalidAttr, GNEDemandElementDialog::myUpdatingElement, toString(), and WRITE_DEBUG.
|
virtual |
event after press cancel button
Implements GNEDemandElementDialog.
Definition at line 120 of file GNERouteDialog.cpp.
References GNEDemandElementDialog::cancelChanges().
|
virtual |
event after press reset button
Implements GNEDemandElementDialog.
Definition at line 130 of file GNERouteDialog.cpp.
References GNEDemandElementDialog::resetChanges(), and updateCalibratorRouteValues().
long GNERouteDialog::onCmdSetVariable | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
event after change value
Definition at line 140 of file GNERouteDialog.cpp.
References GNEAttributeCarrier::getID(), GNEViewNet::getUndoList(), GNEDemandElement::getViewNet(), GNEDemandElement::isValid(), myCalibratorRouteValid, GNEDemandElementDialog::myEditedDemandElement, myInvalidAttr, myTextFieldColor, myTextFieldEdges, myTextFieldRouteID, GNEDemandElement::setAttribute(), SUMO_ATTR_COLOR, SUMO_ATTR_EDGES, SUMO_ATTR_ID, and SUMO_ATTR_NOTHING.
|
inherited |
event after press a key
Definition at line 97 of file GNEDemandElementDialog.cpp.
|
inherited |
event after release a key
Definition at line 103 of file GNEDemandElementDialog.cpp.
|
protectedinherited |
execute dialog as modal
Definition at line 78 of file GNEDemandElementDialog.cpp.
Referenced by GNEVehicleTypeDialog::GNEVehicleTypeDialog().
|
privatedelete |
Invalidated assignment operator.
|
protectedinherited |
reset changes did in this dialog.
Definition at line 142 of file GNEDemandElementDialog.cpp.
References GNEViewNet::getUndoList(), GNEDemandElement::getViewNet(), GNEDemandElementDialog::myChangesDescription, GNEDemandElementDialog::myEditedDemandElement, GNEUndoList::p_abortLastCommandGroup(), and GNEUndoList::p_begin().
Referenced by onCmdReset(), and GNEVehicleTypeDialog::onCmdReset().
|
protected |
update data fields
Definition at line 179 of file GNERouteDialog.cpp.
References GNEDemandElement::getAttribute(), GNEAttributeCarrier::getID(), GNEDemandElementDialog::myEditedDemandElement, myTextFieldColor, myTextFieldEdges, myTextFieldRouteID, SUMO_ATTR_COLOR, and SUMO_ATTR_EDGES.
Referenced by onCmdReset().
|
privateinherited |
accept button
Definition at line 111 of file GNEDemandElementDialog.h.
|
protected |
flag to check if current calibrator vehicleType is valid
Definition at line 74 of file GNERouteDialog.h.
Referenced by onCmdAccept(), and onCmdSetVariable().
|
privateinherited |
cancel button
Definition at line 114 of file GNEDemandElementDialog.h.
|
privateinherited |
description of changes did in this additional dialog
Definition at line 120 of file GNEDemandElementDialog.h.
Referenced by GNEDemandElementDialog::initChanges(), and GNEDemandElementDialog::resetChanges().
|
protectedinherited |
frame for contents
Definition at line 89 of file GNEDemandElementDialog.h.
Referenced by GNEVehicleTypeDialog::GNEVehicleTypeDialog().
|
protectedinherited |
pointer to edited aditional
Definition at line 83 of file GNEDemandElementDialog.h.
Referenced by GNEDemandElementDialog::acceptChanges(), GNEDemandElementDialog::cancelChanges(), GNEDemandElementDialog::getEditedDemandElement(), GNEVehicleTypeDialog::GNEVehicleTypeDialog(), GNEDemandElementDialog::initChanges(), onCmdAccept(), GNEVehicleTypeDialog::onCmdAccept(), onCmdSetVariable(), GNEDemandElementDialog::resetChanges(), GNEVehicleTypeDialog::VTypeAtributes::VClassRow::setVariable(), and updateCalibratorRouteValues().
|
protected |
current sumo attribute invalid
Definition at line 77 of file GNERouteDialog.h.
Referenced by onCmdAccept(), and onCmdSetVariable().
|
privateinherited |
number of GNEChanges_... in dialog
Definition at line 123 of file GNEDemandElementDialog.h.
Referenced by GNEDemandElementDialog::initChanges().
|
privateinherited |
cancel button
Definition at line 117 of file GNEDemandElementDialog.h.
|
protected |
color of route
Definition at line 86 of file GNERouteDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorRouteValues().
|
protected |
list of edges (string)
Definition at line 83 of file GNERouteDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorRouteValues().
|
protected |
route ID
Definition at line 80 of file GNERouteDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorRouteValues().
|
protectedinherited |
flag to indicate if additional are being created or modified (cannot be changed after open dialog)
Definition at line 86 of file GNEDemandElementDialog.h.
Referenced by GNEVehicleTypeDialog::GNEVehicleTypeDialog(), onCmdAccept(), and GNEVehicleTypeDialog::onCmdAccept().