Eclipse SUMO - Simulation of Urban MObility
GNECalibratorDialog Class Reference

Dialog for edit calibrators. More...

#include <GNECalibratorDialog.h>

Inheritance diagram for GNECalibratorDialog:
Collaboration diagram for GNECalibratorDialog:

Public Member Functions

GNEAdditionalgetEditedAdditional () const
 get edited Additional More...
 
 GNECalibratorDialog (GNECalibrator *editedCalibrator)
 FOX-declaration. More...
 
 ~GNECalibratorDialog ()
 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 onCmdAddRoute (FXObject *, FXSelector, void *)
 add new route More...
 
long onCmdClickedRoute (FXObject *, FXSelector, void *)
 remove or edit route More...
 
long onCmdAddFlow (FXObject *, FXSelector, void *)
 add new flow More...
 
long onCmdClickedFlow (FXObject *, FXSelector, void *)
 remove or edit flow More...
 
long onCmdAddVehicleType (FXObject *, FXSelector, void *)
 add new vehicle type More...
 
long onCmdClickedVehicleType (FXObject *, FXSelector, void *)
 remove or edit vehicle type 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 changeAdditionalDialogHeader (const std::string &newHeader)
 change additional dialog header More...
 
 GNECalibratorDialog ()
 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...
 

Protected Attributes

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

Private Member Functions

 GNECalibratorDialog (const GNECalibratorDialog &)=delete
 Invalidated copy constructor. More...
 
GNECalibratorDialogoperator= (const GNECalibratorDialog &)=delete
 Invalidated assignment operator. More...
 
void updateFlowAndLabelButton ()
 update flow and label button More...
 
void updateFlowTable ()
 update data table with flows More...
 
void updateRouteTable ()
 update data table with routes More...
 
void updateVehicleTypeTable ()
 update data table with vehicle types More...
 

Private Attributes

FXButton * myAddFlow
 button for add new flow More...
 
FXButton * myAddRoute
 button for add new route More...
 
FXButton * myAddVehicleType
 button for add new vehicle type More...
 
FXTable * myFlowList
 list with flows More...
 
FXLabel * myLabelFlow
 label for flows More...
 
FXTable * myRouteList
 list with routes More...
 
FXTable * myVehicleTypeList
 list with vehicle types More...
 

Detailed Description

Dialog for edit calibrators.

Definition at line 46 of file GNECalibratorDialog.h.

Constructor & Destructor Documentation

◆ GNECalibratorDialog() [1/3]

◆ ~GNECalibratorDialog()

GNECalibratorDialog::~GNECalibratorDialog ( )

destructor

Definition at line 114 of file GNECalibratorDialog.cpp.

◆ GNECalibratorDialog() [2/3]

GNECalibratorDialog::GNECalibratorDialog ( )
inlineprotected

FOX needs this.

Definition at line 89 of file GNECalibratorDialog.h.

◆ GNECalibratorDialog() [3/3]

GNECalibratorDialog::GNECalibratorDialog ( const GNECalibratorDialog )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ acceptChanges()

◆ cancelChanges()

◆ changeAdditionalDialogHeader()

void GNEAdditionalDialog::changeAdditionalDialogHeader ( const std::string &  newHeader)
protectedinherited

change additional dialog header

Definition at line 109 of file GNEAdditionalDialog.cpp.

◆ getEditedAdditional()

GNEAdditional * GNEAdditionalDialog::getEditedAdditional ( ) const
inherited

get edited Additional

Definition at line 91 of file GNEAdditionalDialog.cpp.

References GNEAdditionalDialog::myEditedAdditional.

◆ initChanges()

void GNEAdditionalDialog::initChanges ( )
protectedinherited

◆ onCmdAccept()

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

Implements GNEAdditionalDialog.

Definition at line 118 of file GNECalibratorDialog.cpp.

References GNEAdditionalDialog::acceptChanges().

◆ onCmdAddFlow()

long GNECalibratorDialog::onCmdAddFlow ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdAddRoute()

long GNECalibratorDialog::onCmdAddRoute ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdAddVehicleType()

long GNECalibratorDialog::onCmdAddVehicleType ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdCancel()

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

event after press cancel button

Implements GNEAdditionalDialog.

Definition at line 128 of file GNECalibratorDialog.cpp.

References GNEAdditionalDialog::cancelChanges().

◆ onCmdClickedFlow()

long GNECalibratorDialog::onCmdClickedFlow ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdClickedRoute()

◆ onCmdClickedVehicleType()

◆ onCmdReset()

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

event after press reset button

Implements GNEAdditionalDialog.

Definition at line 138 of file GNECalibratorDialog.cpp.

References GNEAdditionalDialog::resetChanges(), updateFlowTable(), updateRouteTable(), and updateVehicleTypeTable().

◆ onKeyPress()

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

event after press a key

Definition at line 97 of file GNEAdditionalDialog.cpp.

◆ onKeyRelease()

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

event after release a key

Definition at line 103 of file GNEAdditionalDialog.cpp.

◆ openAsModalDialog()

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

execute dialog as modal

Definition at line 78 of file GNEAdditionalDialog.cpp.

◆ operator=()

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

Invalidated assignment operator.

◆ resetChanges()

◆ updateFlowAndLabelButton()

◆ updateFlowTable()

◆ updateRouteTable()

◆ updateVehicleTypeTable()

Field Documentation

◆ myAddFlow

FXButton* GNECalibratorDialog::myAddFlow
private

button for add new flow

Definition at line 102 of file GNECalibratorDialog.h.

Referenced by updateFlowAndLabelButton().

◆ myAddRoute

FXButton* GNECalibratorDialog::myAddRoute
private

button for add new route

Definition at line 93 of file GNECalibratorDialog.h.

◆ myAddVehicleType

FXButton* GNECalibratorDialog::myAddVehicleType
private

button for add new vehicle type

Definition at line 108 of file GNECalibratorDialog.h.

◆ myContentFrame

FXVerticalFrame* GNEAdditionalDialog::myContentFrame
protectedinherited

frame for contents

Definition at line 89 of file GNEAdditionalDialog.h.

◆ myEditedAdditional

GNEAdditional* GNEAdditionalDialog::myEditedAdditional
protectedinherited

pointer to edited aditional

Definition at line 83 of file GNEAdditionalDialog.h.

Referenced by GNEAdditionalDialog::acceptChanges(), GNEAdditionalDialog::cancelChanges(), GNEAdditionalDialog::getEditedAdditional(), GNEAdditionalDialog::initChanges(), GNECalibratorFlowDialog::onCmdAccept(), GNERerouterDialog::onCmdAccept(), GNERerouterIntervalDialog::onCmdAccept(), GNEVariableSpeedSignDialog::onCmdAccept(), GNERerouterIntervalDialog::onCmdAddClosingLaneReroute(), GNERerouterIntervalDialog::onCmdAddClosingReroute(), GNERerouterIntervalDialog::onCmdAddDestProbReroute(), onCmdAddFlow(), GNERerouterIntervalDialog::onCmdAddParkingAreaReroute(), onCmdAddRoute(), GNERerouterIntervalDialog::onCmdAddRouteProbReroute(), GNEVariableSpeedSignDialog::onCmdAddStep(), onCmdAddVehicleType(), GNERerouterIntervalDialog::onCmdChangeBeginEnd(), GNERerouterIntervalDialog::onCmdClickedClosingLaneReroute(), GNERerouterIntervalDialog::onCmdClickedClosingReroute(), GNERerouterIntervalDialog::onCmdClickedDestProbReroute(), onCmdClickedFlow(), GNERerouterDialog::onCmdClickedInterval(), GNERerouterIntervalDialog::onCmdClickedParkingAreaReroute(), onCmdClickedRoute(), GNERerouterIntervalDialog::onCmdClickedRouteProbReroute(), GNEVariableSpeedSignDialog::onCmdClickedStep(), onCmdClickedVehicleType(), GNERerouterIntervalDialog::onCmdEditClosingLaneReroute(), GNERerouterIntervalDialog::onCmdEditClosingReroute(), GNERerouterIntervalDialog::onCmdEditDestProbReroute(), GNERerouterIntervalDialog::onCmdEditParkingAreaReroute(), GNERerouterIntervalDialog::onCmdEditRouteProbReroute(), GNEVariableSpeedSignDialog::onCmdEditStep(), GNECalibratorFlowDialog::onCmdSetVariable(), GNERerouterDialog::onCmdSortIntervals(), GNEVariableSpeedSignDialog::onCmdSortSteps(), GNEAdditionalDialog::resetChanges(), GNECalibratorFlowDialog::updateCalibratorFlowValues(), updateFlowAndLabelButton(), updateFlowTable(), GNERerouterDialog::updateIntervalTable(), updateRouteTable(), GNEVariableSpeedSignDialog::updateTableSteps(), and updateVehicleTypeTable().

◆ myFlowList

FXTable* GNECalibratorDialog::myFlowList
private

list with flows

Definition at line 105 of file GNECalibratorDialog.h.

Referenced by onCmdClickedFlow(), updateFlowAndLabelButton(), and updateFlowTable().

◆ myLabelFlow

FXLabel* GNECalibratorDialog::myLabelFlow
private

label for flows

Definition at line 99 of file GNECalibratorDialog.h.

Referenced by updateFlowAndLabelButton().

◆ myRouteList

FXTable* GNECalibratorDialog::myRouteList
private

list with routes

Definition at line 96 of file GNECalibratorDialog.h.

Referenced by onCmdClickedRoute(), and updateRouteTable().

◆ myUpdatingElement

bool GNEAdditionalDialog::myUpdatingElement
protectedinherited

flag to indicate if additional are being created or modified (cannot be changed after open dialog)

Definition at line 86 of file GNEAdditionalDialog.h.

Referenced by GNECalibratorFlowDialog::onCmdAccept(), and GNERerouterIntervalDialog::onCmdAccept().

◆ myVehicleTypeList

FXTable* GNECalibratorDialog::myVehicleTypeList
private

list with vehicle types

Definition at line 111 of file GNECalibratorDialog.h.

Referenced by onCmdClickedVehicleType(), and updateVehicleTypeTable().


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