Eclipse SUMO - Simulation of Urban MObility
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
GNEVehicleTypeDialog Class Reference

Dialog for editing calibrator vehicle types. More...

#include <GNEVehicleTypeDialog.h>

Inheritance diagram for GNEVehicleTypeDialog:
[legend]
Collaboration diagram for GNEVehicleTypeDialog:
[legend]

Data Structures

class  CarFollowingModelParameters
 class for CarFollowingModel More...
 
class  VTypeAttributes
 class for VClasses More...
 

Public Member Functions

GNEDemandElementgetEditedDemandElement () const
 get edited DemandElement
 
 GNEVehicleTypeDialog (GNEDemandElement *editedVehicleType, bool updatingElement)
 constructor
 
 ~GNEVehicleTypeDialog ()
 destructor
 
FOX-callbacks

event after press accept button

long onCmdAccept (FXObject *, FXSelector, void *)
 
long onCmdCancel (FXObject *, FXSelector, void *)
 event after press cancel button
 
long onCmdReset (FXObject *, FXSelector, void *)
 event after press reset button
 
FOX-callbacks

event after press accept button

long onKeyPress (FXObject *sender, FXSelector sel, void *ptr)
 event after press a key
 
long onKeyRelease (FXObject *sender, FXSelector sel, void *ptr)
 event after release a key
 
long onCmdFocusOnFrame (FXObject *sender, FXSelector sel, void *ptr)
 focus on frame
 

Protected Member Functions

void acceptChanges ()
 Accept changes did in this dialog.
 
void cancelChanges ()
 Cancel changes did in this dialog.
 
void changeDemandElementDialogHeader (const std::string &newHeader)
 change additional dialog header
 
void initChanges ()
 init a new group of changes that will be do it in dialog
 
FXint openAsModalDialog (FXuint placement=PLACEMENT_CURSOR)
 execute dialog as modal
 
void resetChanges ()
 reset changes did in this dialog.
 

Protected Attributes

FXVerticalFrame * myContentFrame
 frame for contents
 
GNEDemandElementmyEditedDemandElement
 pointer to edited additional
 
bool myUpdatingElement
 flag to indicate if additional are being created or modified (cannot be changed after open dialog)
 

Private Member Functions

 GNEVehicleTypeDialog (const GNEVehicleTypeDialog &)=delete
 Invalidated copy constructor.
 
GNEVehicleTypeDialogoperator= (const GNEVehicleTypeDialog &)=delete
 Invalidated assignment operator.
 

Private Attributes

FXButton * myCancelButton
 cancel button
 
CarFollowingModelParametersmyCarFollowingModelParameters
 Car Following model parameters.
 
std::string myChangesDescription
 description of changes did in this additional dialog
 
FXButton * myFocusButton
 focus button
 
SumoXMLAttr myInvalidAttr
 current sumo attribute invalid
 
FXButton * myKeepOldButton
 accept button
 
int myNumberOfChanges
 number of GNEChanges_... in dialog
 
FXButton * myResetButton
 cancel button
 
bool myVehicleTypeValid
 flag to check if current vehicleType is valid
 
VTypeAttributesmyVTypeAttributes
 Vehicle Type Common Attributes.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ GNEVehicleTypeDialog() [1/2]

◆ ~GNEVehicleTypeDialog()

GNEVehicleTypeDialog::~GNEVehicleTypeDialog ( )

destructor

Definition at line 1814 of file GNEVehicleTypeDialog.cpp.

◆ GNEVehicleTypeDialog() [2/2]

GNEVehicleTypeDialog::GNEVehicleTypeDialog ( const GNEVehicleTypeDialog )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ acceptChanges()

void GNEDemandElementDialog::acceptChanges ( )
protectedinherited

Accept changes did in this dialog.

Definition at line 135 of file GNEDemandElementDialog.cpp.

References GNEUndoList::abortLastChangeGroup(), GNEUndoList::end(), GNEViewParent::getGNEAppWindows(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEViewNet::getViewParent(), GNEDemandElementDialog::myEditedDemandElement, and GNEApplicationWindow::updateControls().

Referenced by GNERouteDialog::onCmdAccept(), and onCmdAccept().

Here is the caller graph for this function:

◆ cancelChanges()

void GNEDemandElementDialog::cancelChanges ( )
protectedinherited

Cancel changes did in this dialog.

Definition at line 148 of file GNEDemandElementDialog.cpp.

References GNEUndoList::abortLastChangeGroup(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), and GNEDemandElementDialog::myEditedDemandElement.

Referenced by GNERouteDialog::onCmdCancel(), and onCmdCancel().

Here is the caller graph for this function:

◆ changeDemandElementDialogHeader()

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

change additional dialog header

Definition at line 119 of file GNEDemandElementDialog.cpp.

Referenced by GNEVehicleTypeDialog().

Here is the caller graph for this function:

◆ getEditedDemandElement()

GNEDemandElement * GNEDemandElementDialog::getEditedDemandElement ( ) const
inherited

get edited DemandElement

Definition at line 94 of file GNEDemandElementDialog.cpp.

References GNEDemandElementDialog::myEditedDemandElement.

◆ initChanges()

void GNEDemandElementDialog::initChanges ( )
protectedinherited

init a new group of changes that will be do it in dialog

Definition at line 126 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().

Here is the caller graph for this function:

◆ onCmdAccept()

long GNEVehicleTypeDialog::onCmdAccept ( FXObject *  ,
FXSelector  ,
void *   
)
virtual

◆ onCmdCancel()

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

event after press cancel button

Implements GNEDemandElementDialog.

Definition at line 1841 of file GNEVehicleTypeDialog.cpp.

References GNEDemandElementDialog::cancelChanges().

◆ onCmdFocusOnFrame()

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

focus on frame

Definition at line 112 of file GNEDemandElementDialog.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdReset()

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

◆ onKeyPress()

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

event after press a key

Definition at line 100 of file GNEDemandElementDialog.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onKeyRelease()

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

event after release a key

Definition at line 106 of file GNEDemandElementDialog.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ openAsModalDialog()

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

execute dialog as modal

Definition at line 81 of file GNEDemandElementDialog.cpp.

Referenced by GNEVehicleTypeDialog().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

◆ resetChanges()

void GNEDemandElementDialog::resetChanges ( )
protectedinherited

reset changes did in this dialog.

Definition at line 154 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().

Here is the caller graph for this function:

Field Documentation

◆ myCancelButton

FXButton* GNEDemandElementDialog::myCancelButton
privateinherited

cancel button

Definition at line 113 of file GNEDemandElementDialog.h.

◆ myCarFollowingModelParameters

CarFollowingModelParameters* GNEVehicleTypeDialog::myCarFollowingModelParameters
private

Car Following model parameters.

Definition at line 660 of file GNEVehicleTypeDialog.h.

Referenced by GNEVehicleTypeDialog(), and onCmdReset().

◆ myChangesDescription

std::string GNEDemandElementDialog::myChangesDescription
privateinherited

description of changes did in this additional dialog

Definition at line 122 of file GNEDemandElementDialog.h.

Referenced by GNEDemandElementDialog::initChanges(), and GNEDemandElementDialog::resetChanges().

◆ myContentFrame

FXVerticalFrame* GNEDemandElementDialog::myContentFrame
protectedinherited

frame for contents

Definition at line 88 of file GNEDemandElementDialog.h.

Referenced by GNEVehicleTypeDialog().

◆ myEditedDemandElement

◆ myFocusButton

FXButton* GNEDemandElementDialog::myFocusButton
privateinherited

focus button

Definition at line 119 of file GNEDemandElementDialog.h.

◆ myInvalidAttr

SumoXMLAttr GNEVehicleTypeDialog::myInvalidAttr
private

current sumo attribute invalid

Definition at line 654 of file GNEVehicleTypeDialog.h.

Referenced by onCmdAccept(), and GNEVehicleTypeDialog::VTypeAttributes::VClassRow::setVariable().

◆ myKeepOldButton

FXButton* GNEDemandElementDialog::myKeepOldButton
privateinherited

accept button

Definition at line 110 of file GNEDemandElementDialog.h.

◆ myNumberOfChanges

int GNEDemandElementDialog::myNumberOfChanges
privateinherited

number of GNEChanges_... in dialog

Definition at line 125 of file GNEDemandElementDialog.h.

Referenced by GNEDemandElementDialog::initChanges().

◆ myResetButton

FXButton* GNEDemandElementDialog::myResetButton
privateinherited

cancel button

Definition at line 116 of file GNEDemandElementDialog.h.

◆ myUpdatingElement

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

◆ myVehicleTypeValid

bool GNEVehicleTypeDialog::myVehicleTypeValid
private

flag to check if current vehicleType is valid

Definition at line 651 of file GNEVehicleTypeDialog.h.

Referenced by onCmdAccept(), and GNEVehicleTypeDialog::VTypeAttributes::VClassRow::setVariable().

◆ myVTypeAttributes

VTypeAttributes* GNEVehicleTypeDialog::myVTypeAttributes
private

Vehicle Type Common Attributes.

Definition at line 657 of file GNEVehicleTypeDialog.h.

Referenced by GNEVehicleTypeDialog(), and onCmdReset().


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