![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Dialog for editing calibrator vehicle types. More...
#include <GNEVehicleTypeDialog.h>
Data Structures | |
class | CarFollowingModelParameters |
class for CarFollowingModel More... | |
class | VTypeAttributes |
class for VClasses More... | |
Public Member Functions | |
GNEDemandElement * | getEditedDemandElement () const |
get edited DemandElement More... | |
GNEVehicleTypeDialog (GNEDemandElement *editedVehicleType, bool updatingElement) | |
constructor More... | |
~GNEVehicleTypeDialog () | |
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... | |
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... | |
long | onCmdFocusOnFrame (FXObject *sender, FXSelector sel, void *ptr) |
focus on frame 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... | |
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... | |
Protected Attributes | |
FXVerticalFrame * | myContentFrame |
frame for contents More... | |
GNEDemandElement * | myEditedDemandElement |
pointer to edited additional More... | |
bool | myUpdatingElement |
flag to indicate if additional are being created or modified (cannot be changed after open dialog) More... | |
Private Member Functions | |
GNEVehicleTypeDialog (const GNEVehicleTypeDialog &)=delete | |
Invalidated copy constructor. More... | |
GNEVehicleTypeDialog & | operator= (const GNEVehicleTypeDialog &)=delete |
Invalidated assignment operator. More... | |
Private Attributes | |
FXButton * | myAcceptButton |
accept button More... | |
FXButton * | myCancelButton |
cancel button More... | |
CarFollowingModelParameters * | myCarFollowingModelParameters |
Car Following model parameters. More... | |
std::string | myChangesDescription |
description of changes did in this additional dialog More... | |
FXButton * | myFocusButton |
focus button More... | |
SumoXMLAttr | myInvalidAttr |
current sumo attribute invalid More... | |
int | myNumberOfChanges |
number of GNEChanges_... in dialog More... | |
FXButton * | myResetButton |
cancel button More... | |
bool | myVehicleTypeValid |
flag to check if current vehicleType is valid More... | |
VTypeAttributes * | myVTypeAttributes |
Vehicle Type Common Attributes. More... | |
Dialog for editing calibrator vehicle types.
This is a modal dialog which blocks in its constructor so it is save to delete it directly after construction
Definition at line 46 of file GNEVehicleTypeDialog.h.
GNEVehicleTypeDialog::GNEVehicleTypeDialog | ( | GNEDemandElement * | editedVehicleType, |
bool | updatingElement | ||
) |
constructor
Definition at line 1770 of file GNEVehicleTypeDialog.cpp.
References GNEUndoList::add(), GNEDemandElementDialog::changeDemandElementDialogHeader(), GNEAttributeCarrier::getNet(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GUIDesignAuxiliarHorizontalFrame, GNEDemandElementDialog::initChanges(), myCarFollowingModelParameters, GNEDemandElementDialog::myContentFrame, GNEDemandElementDialog::myEditedDemandElement, GNEDemandElementDialog::myUpdatingElement, myVTypeAttributes, GNEDemandElementDialog::openAsModalDialog(), GNEVehicleTypeDialog::VTypeAttributes::updateValues(), and GNEVehicleTypeDialog::CarFollowingModelParameters::updateValues().
GNEVehicleTypeDialog::~GNEVehicleTypeDialog | ( | ) |
destructor
Definition at line 1806 of file GNEVehicleTypeDialog.cpp.
|
privatedelete |
Invalidated copy constructor.
|
protectedinherited |
Accept changes did in this dialog.
Definition at line 133 of file GNEDemandElementDialog.cpp.
References GNEUndoList::abortLastChangeGroup(), GNEUndoList::end(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), and GNEDemandElementDialog::myEditedDemandElement.
Referenced by GNERouteDialog::onCmdAccept(), and onCmdAccept().
|
protectedinherited |
Cancel changes did in this dialog.
Definition at line 144 of file GNEDemandElementDialog.cpp.
References GNEUndoList::abortLastChangeGroup(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), and GNEDemandElementDialog::myEditedDemandElement.
Referenced by GNERouteDialog::onCmdCancel(), and onCmdCancel().
|
protectedinherited |
change additional dialog header
Definition at line 117 of file GNEDemandElementDialog.cpp.
Referenced by GNEVehicleTypeDialog().
|
inherited |
get edited DemandElement
Definition at line 92 of file GNEDemandElementDialog.cpp.
References GNEDemandElementDialog::myEditedDemandElement.
|
protectedinherited |
init a new group of changes that will be do it in dialog
Definition at line 124 of file GNEDemandElementDialog.cpp.
References GNEUndoList::begin(), GNEUndoList::currentCommandGroupSize(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEDemandElementDialog::myChangesDescription, GNEDemandElementDialog::myEditedDemandElement, and GNEDemandElementDialog::myNumberOfChanges.
Referenced by GNEVehicleTypeDialog().
|
virtual |
Implements GNEDemandElementDialog.
Definition at line 1810 of file GNEVehicleTypeDialog.cpp.
References GNEDemandElementDialog::acceptChanges(), GNEAttributeCarrier::getTagStr(), GNEDemandElementDialog::myEditedDemandElement, myInvalidAttr, GNEDemandElementDialog::myUpdatingElement, myVehicleTypeValid, toString(), and WRITE_DEBUG.
|
virtual |
event after press cancel button
Implements GNEDemandElementDialog.
Definition at line 1837 of file GNEVehicleTypeDialog.cpp.
References GNEDemandElementDialog::cancelChanges().
|
inherited |
focus on frame
Definition at line 110 of file GNEDemandElementDialog.cpp.
Referenced by FXDEFMAP().
|
virtual |
event after press reset button
Implements GNEDemandElementDialog.
Definition at line 1847 of file GNEVehicleTypeDialog.cpp.
References myCarFollowingModelParameters, myVTypeAttributes, GNEDemandElementDialog::resetChanges(), GNEVehicleTypeDialog::VTypeAttributes::updateValues(), and GNEVehicleTypeDialog::CarFollowingModelParameters::updateValues().
|
inherited |
event after press a key
Definition at line 98 of file GNEDemandElementDialog.cpp.
Referenced by FXDEFMAP().
|
inherited |
event after release a key
Definition at line 104 of file GNEDemandElementDialog.cpp.
Referenced by FXDEFMAP().
|
protectedinherited |
execute dialog as modal
Definition at line 79 of file GNEDemandElementDialog.cpp.
Referenced by GNEVehicleTypeDialog().
|
privatedelete |
Invalidated assignment operator.
|
protectedinherited |
reset changes did in this dialog.
Definition at line 150 of file GNEDemandElementDialog.cpp.
References GNEUndoList::abortLastChangeGroup(), GNEUndoList::begin(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEDemandElementDialog::myChangesDescription, and GNEDemandElementDialog::myEditedDemandElement.
Referenced by GNERouteDialog::onCmdReset(), and onCmdReset().
|
privateinherited |
accept button
Definition at line 110 of file GNEDemandElementDialog.h.
|
privateinherited |
cancel button
Definition at line 113 of file GNEDemandElementDialog.h.
|
private |
Car Following model parameters.
Definition at line 659 of file GNEVehicleTypeDialog.h.
Referenced by GNEVehicleTypeDialog(), and onCmdReset().
|
privateinherited |
description of changes did in this additional dialog
Definition at line 122 of file GNEDemandElementDialog.h.
Referenced by GNEDemandElementDialog::initChanges(), and GNEDemandElementDialog::resetChanges().
|
protectedinherited |
frame for contents
Definition at line 88 of file GNEDemandElementDialog.h.
Referenced by GNEVehicleTypeDialog().
|
protectedinherited |
pointer to edited additional
Definition at line 82 of file GNEDemandElementDialog.h.
Referenced by GNEDemandElementDialog::acceptChanges(), GNEDemandElementDialog::cancelChanges(), GNEDemandElementDialog::getEditedDemandElement(), GNEVehicleTypeDialog(), GNEDemandElementDialog::initChanges(), GNERouteDialog::onCmdAccept(), onCmdAccept(), GNERouteDialog::onCmdSetVariable(), GNEDemandElementDialog::resetChanges(), GNEVehicleTypeDialog::VTypeAttributes::VClassRow::setVariable(), and GNERouteDialog::updateCalibratorRouteValues().
|
privateinherited |
focus button
Definition at line 119 of file GNEDemandElementDialog.h.
|
private |
current sumo attribute invalid
Definition at line 653 of file GNEVehicleTypeDialog.h.
Referenced by onCmdAccept(), and GNEVehicleTypeDialog::VTypeAttributes::VClassRow::setVariable().
|
privateinherited |
number of GNEChanges_... in dialog
Definition at line 125 of file GNEDemandElementDialog.h.
Referenced by GNEDemandElementDialog::initChanges().
|
privateinherited |
cancel button
Definition at line 116 of file GNEDemandElementDialog.h.
|
protectedinherited |
flag to indicate if additional are being created or modified (cannot be changed after open dialog)
Definition at line 85 of file GNEDemandElementDialog.h.
Referenced by GNEVehicleTypeDialog(), GNERouteDialog::onCmdAccept(), and onCmdAccept().
|
private |
flag to check if current vehicleType is valid
Definition at line 650 of file GNEVehicleTypeDialog.h.
Referenced by onCmdAccept(), and GNEVehicleTypeDialog::VTypeAttributes::VClassRow::setVariable().
|
private |
Vehicle Type Common Attributes.
Definition at line 656 of file GNEVehicleTypeDialog.h.
Referenced by GNEVehicleTypeDialog(), and onCmdReset().