Eclipse SUMO - Simulation of Urban MObility
GNERerouterDialog Class Reference

Dialog for edit rerouters. More...

#include <GNERerouterDialog.h>

Inheritance diagram for GNERerouterDialog:
Collaboration diagram for GNERerouterDialog:

Public Member Functions

GNEAdditionalgetEditedAdditional () const
 get edited Additional More...
 
 GNERerouterDialog (GNERerouter *rerouterParent)
 FOX-declaration. More...
 
 ~GNERerouterDialog ()
 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 onCmdAddInterval (FXObject *, FXSelector, void *)
 add new interval More...
 
long onCmdSortIntervals (FXObject *, FXSelector, void *)
 sort current intervals More...
 
long onCmdClickedInterval (FXObject *, FXSelector, void *)
 remove or edit interval 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...
 
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

FXButton * myAddInterval
 button for add new interval More...
 
FXVerticalFrame * myContentFrame
 frame for contents More...
 
GNEAdditionalmyEditedAdditional
 pointer to edited aditional More...
 
FXTable * myIntervalTable
 list with intervals More...
 
FXButton * mySortIntervals
 button for sort interval More...
 
bool myUpdatingElement
 flag to indicate if additional are being created or modified (cannot be changed after open dialog) More...
 

Private Member Functions

 GNERerouterDialog (const GNERerouterDialog &)=delete
 Invalidated copy constructor. More...
 
GNERerouterDialogoperator= (const GNERerouterDialog &)=delete
 Invalidated assignment operator. More...
 
void updateIntervalTable ()
 update data table 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...
 

Detailed Description

Dialog for edit rerouters.

Definition at line 44 of file GNERerouterDialog.h.

Constructor & Destructor Documentation

◆ GNERerouterDialog() [1/2]

◆ ~GNERerouterDialog()

GNERerouterDialog::~GNERerouterDialog ( )

destructor

Definition at line 81 of file GNERerouterDialog.cpp.

◆ GNERerouterDialog() [2/2]

GNERerouterDialog::GNERerouterDialog ( const GNERerouterDialog )
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 108 of file GNEAdditionalDialog.cpp.

◆ getEditedAdditional()

GNEAdditional * GNEAdditionalDialog::getEditedAdditional ( ) const
inherited

get edited Additional

Definition at line 90 of file GNEAdditionalDialog.cpp.

References GNEAdditionalDialog::myEditedAdditional.

◆ initChanges()

void GNEAdditionalDialog::initChanges ( )
protectedinherited

◆ onCmdAccept()

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

◆ onCmdAddInterval()

long GNERerouterDialog::onCmdAddInterval ( FXObject *  ,
FXSelector  ,
void *   
)

add new interval

Definition at line 126 of file GNERerouterDialog.cpp.

References updateIntervalTable().

Referenced by FXDEFMAP().

◆ onCmdCancel()

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

event after press cancel button

Implements GNEAdditionalDialog.

Definition at line 106 of file GNERerouterDialog.cpp.

References GNEAdditionalDialog::cancelChanges().

◆ onCmdClickedInterval()

long GNERerouterDialog::onCmdClickedInterval ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdReset()

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

event after press reset button

Implements GNEAdditionalDialog.

Definition at line 116 of file GNERerouterDialog.cpp.

References GNEAdditionalDialog::resetChanges(), and updateIntervalTable().

◆ onCmdSortIntervals()

long GNERerouterDialog::onCmdSortIntervals ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onKeyPress()

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

event after press a key

Definition at line 96 of file GNEAdditionalDialog.cpp.

Referenced by FXDEFMAP().

◆ onKeyRelease()

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

event after release a key

Definition at line 102 of file GNEAdditionalDialog.cpp.

Referenced by FXDEFMAP().

◆ openAsModalDialog()

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

execute dialog as modal

Definition at line 77 of file GNEAdditionalDialog.cpp.

◆ operator=()

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

Invalidated assignment operator.

◆ resetChanges()

◆ updateIntervalTable()

Field Documentation

◆ myAcceptButton

FXButton* GNEAdditionalDialog::myAcceptButton
privateinherited

accept button

Definition at line 109 of file GNEAdditionalDialog.h.

◆ myAddInterval

FXButton* GNERerouterDialog::myAddInterval
protected

button for add new interval

Definition at line 80 of file GNERerouterDialog.h.

◆ myCancelButton

FXButton* GNEAdditionalDialog::myCancelButton
privateinherited

cancel button

Definition at line 112 of file GNEAdditionalDialog.h.

◆ myChangesDescription

std::string GNEAdditionalDialog::myChangesDescription
privateinherited

description of changes did in this additional dialog

Definition at line 118 of file GNEAdditionalDialog.h.

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

◆ myContentFrame

FXVerticalFrame* GNEAdditionalDialog::myContentFrame
protectedinherited

frame for contents

Definition at line 87 of file GNEAdditionalDialog.h.

◆ myEditedAdditional

GNEAdditional* GNEAdditionalDialog::myEditedAdditional
protectedinherited

pointer to edited aditional

Definition at line 81 of file GNEAdditionalDialog.h.

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

◆ myIntervalTable

FXTable* GNERerouterDialog::myIntervalTable
protected

list with intervals

Definition at line 86 of file GNERerouterDialog.h.

Referenced by onCmdClickedInterval(), and updateIntervalTable().

◆ myNumberOfChanges

int GNEAdditionalDialog::myNumberOfChanges
privateinherited

number of GNEChanges_... in dialog

Definition at line 121 of file GNEAdditionalDialog.h.

Referenced by GNEAdditionalDialog::initChanges().

◆ myResetButton

FXButton* GNEAdditionalDialog::myResetButton
privateinherited

cancel button

Definition at line 115 of file GNEAdditionalDialog.h.

◆ mySortIntervals

FXButton* GNERerouterDialog::mySortIntervals
protected

button for sort interval

Definition at line 83 of file GNERerouterDialog.h.

◆ myUpdatingElement

bool GNEAdditionalDialog::myUpdatingElement
protectedinherited

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

Definition at line 84 of file GNEAdditionalDialog.h.

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


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