Eclipse SUMO - Simulation of Urban MObility
GNERouteDialog Class Reference

Dialog for edit Calibrator Routes. More...

#include <GNERouteDialog.h>

Inheritance diagram for GNERouteDialog:
Collaboration diagram for GNERouteDialog:

Public Member Functions

GNEDemandElementgetEditedDemandElement () 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...
 
GNEDemandElementmyEditedDemandElement
 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...
 
GNERouteDialogoperator= (const GNERouteDialog &)=delete
 Invalidated assignment operator. More...
 

Detailed Description

Dialog for edit Calibrator Routes.

Definition at line 43 of file GNERouteDialog.h.

Constructor & Destructor Documentation

◆ GNERouteDialog() [1/3]

GNERouteDialog::GNERouteDialog ( GNEDemandElement editedCalibratorRoute,
bool  updatingElement 
)

◆ ~GNERouteDialog()

GNERouteDialog::~GNERouteDialog ( )

destructor

Definition at line 91 of file GNERouteDialog.cpp.

◆ GNERouteDialog() [2/3]

GNERouteDialog::GNERouteDialog ( )
inlineprotected

FOX needs this.

Definition at line 71 of file GNERouteDialog.h.

◆ GNERouteDialog() [3/3]

GNERouteDialog::GNERouteDialog ( const GNERouteDialog )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ acceptChanges()

void GNEDemandElementDialog::acceptChanges ( )
protectedinherited

◆ cancelChanges()

void GNEDemandElementDialog::cancelChanges ( )
protectedinherited

◆ changeDemandElementDialogHeader()

void GNEDemandElementDialog::changeDemandElementDialogHeader ( const std::string &  newHeader)
protectedinherited

change additional dialog header

Definition at line 109 of file GNEDemandElementDialog.cpp.

Referenced by GNEVehicleTypeDialog::GNEVehicleTypeDialog().

◆ getEditedDemandElement()

GNEDemandElement * GNEDemandElementDialog::getEditedDemandElement ( ) const
inherited

get edited DemandElement

Definition at line 91 of file GNEDemandElementDialog.cpp.

References GNEDemandElementDialog::myEditedDemandElement.

◆ initChanges()

◆ onCmdAccept()

◆ onCmdCancel()

long GNERouteDialog::onCmdCancel ( FXObject *  ,
FXSelector  ,
void *   
)
virtual

event after press cancel button

Implements GNEDemandElementDialog.

Definition at line 120 of file GNERouteDialog.cpp.

References GNEDemandElementDialog::cancelChanges().

◆ onCmdReset()

long GNERouteDialog::onCmdReset ( FXObject *  ,
FXSelector  ,
void *   
)
virtual

event after press reset button

Implements GNEDemandElementDialog.

Definition at line 130 of file GNERouteDialog.cpp.

References GNEDemandElementDialog::resetChanges(), and updateCalibratorRouteValues().

◆ onCmdSetVariable()

◆ onKeyPress()

long GNEDemandElementDialog::onKeyPress ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)
inherited

event after press a key

Definition at line 97 of file GNEDemandElementDialog.cpp.

◆ onKeyRelease()

long GNEDemandElementDialog::onKeyRelease ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)
inherited

event after release a key

Definition at line 103 of file GNEDemandElementDialog.cpp.

◆ openAsModalDialog()

FXint GNEDemandElementDialog::openAsModalDialog ( FXuint  placement = PLACEMENT_CURSOR)
protectedinherited

execute dialog as modal

Definition at line 78 of file GNEDemandElementDialog.cpp.

Referenced by GNEVehicleTypeDialog::GNEVehicleTypeDialog().

◆ operator=()

GNERouteDialog& GNERouteDialog::operator= ( const GNERouteDialog )
privatedelete

Invalidated assignment operator.

◆ resetChanges()

◆ updateCalibratorRouteValues()

void GNERouteDialog::updateCalibratorRouteValues ( )
protected

Field Documentation

◆ myCalibratorRouteValid

bool GNERouteDialog::myCalibratorRouteValid
protected

flag to check if current calibrator vehicleType is valid

Definition at line 74 of file GNERouteDialog.h.

Referenced by onCmdAccept(), and onCmdSetVariable().

◆ myContentFrame

FXVerticalFrame* GNEDemandElementDialog::myContentFrame
protectedinherited

frame for contents

Definition at line 89 of file GNEDemandElementDialog.h.

Referenced by GNEVehicleTypeDialog::GNEVehicleTypeDialog().

◆ myEditedDemandElement

GNEDemandElement* GNEDemandElementDialog::myEditedDemandElement
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(), GNEVehicleTypeDialog::VTypeAtributes::onCmdSetAttribute(), onCmdSetVariable(), GNEVehicleTypeDialog::CarFollowingModelParameters::onCmdSetVariable(), GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::openColorDialog(), GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::openImageFileDialog(), GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::openOSGFileDialog(), GNEDemandElementDialog::resetChanges(), GNEVehicleTypeDialog::VTypeAtributes::VClassRow::setVariable(), GNEVehicleTypeDialog::VTypeAtributes::VShapeRow::setVariable(), GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::setVariable(), GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelRow::setVariable(), GNEVehicleTypeDialog::VTypeAtributes::VClassRow::setVClassLabelImage(), GNEVehicleTypeDialog::VTypeAtributes::VShapeRow::setVShapeLabelImage(), updateCalibratorRouteValues(), GNEVehicleTypeDialog::VTypeAtributes::VClassRow::updateValue(), GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::updateValue(), GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelRow::updateValue(), GNEVehicleTypeDialog::VTypeAtributes::VShapeRow::updateValues(), GNEVehicleTypeDialog::VTypeAtributes::updateValues(), and GNEVehicleTypeDialog::CarFollowingModelParameters::updateValues().

◆ myInvalidAttr

SumoXMLAttr GNERouteDialog::myInvalidAttr
protected

current sumo attribute invalid

Definition at line 77 of file GNERouteDialog.h.

Referenced by onCmdAccept(), and onCmdSetVariable().

◆ myTextFieldColor

FXTextField* GNERouteDialog::myTextFieldColor
protected

color of route

Definition at line 86 of file GNERouteDialog.h.

Referenced by onCmdSetVariable(), and updateCalibratorRouteValues().

◆ myTextFieldEdges

FXTextField* GNERouteDialog::myTextFieldEdges
protected

list of edges (string)

Definition at line 83 of file GNERouteDialog.h.

Referenced by onCmdSetVariable(), and updateCalibratorRouteValues().

◆ myTextFieldRouteID

FXTextField* GNERouteDialog::myTextFieldRouteID
protected

route ID

Definition at line 80 of file GNERouteDialog.h.

Referenced by onCmdSetVariable(), and updateCalibratorRouteValues().

◆ myUpdatingElement

bool GNEDemandElementDialog::myUpdatingElement
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().


The documentation for this class was generated from the following files: