SUMO - Simulation of Urban MObility
GNERerouterIntervalDialog Class Reference

Dialog for edit rerouter intervals. More...

#include <GNERerouterIntervalDialog.h>

Inheritance diagram for GNERerouterIntervalDialog:
Inheritance graph
Collaboration diagram for GNERerouterIntervalDialog:
Collaboration graph

Public Member Functions

GNERerouterIntervalgetEditedRerouterInterval () const
 get edited Rerouter Interval More...
 
 GNERerouterIntervalDialog (GNERerouterInterval *rerouterInterval, bool updatingElement)
 FOX-declaration. More...
 
 ~GNERerouterIntervalDialog ()
 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 onCmdAddClosingLaneReroute (FXObject *, FXSelector, void *)
 add closing lane reroute More...
 
long onCmdAddClosingReroute (FXObject *, FXSelector, void *)
 add closing reroute More...
 
long onCmdAddDestProbReroute (FXObject *, FXSelector, void *)
 add dest prob reroute More...
 
long onCmdAddRouteProbReroute (FXObject *, FXSelector, void *)
 add route prob reroute More...
 
long onCmdClickedClosingLaneReroute (FXObject *, FXSelector, void *)
 remove closing lane reroute More...
 
long onCmdClickedClosingReroute (FXObject *, FXSelector, void *)
 remove closing reroute More...
 
long onCmdClickedDestProbReroute (FXObject *, FXSelector, void *)
 remove dest prob reroute More...
 
long onCmdClickedRouteProbReroute (FXObject *, FXSelector, void *)
 remove route prob reroute More...
 
long onCmdEditClosingLaneReroute (FXObject *, FXSelector, void *)
 /edit closing lane reroute More...
 
long onCmdEditClosingReroute (FXObject *, FXSelector, void *)
 /edit closing reroute More...
 
long onCmdEditDestProbReroute (FXObject *, FXSelector, void *)
 /edit dest prob reroute More...
 
long onCmdEditRouteProbReroute (FXObject *, FXSelector, void *)
 /edit route prob reroute More...
 
long onCmdChangeBeginEnd (FXObject *, FXSelector, void *)
 called when begin or endis changed 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...
 
 GNERerouterIntervalDialog ()
 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

FXButton * myAddClosingLaneReroutes
 button for add new closing lane reroutes More...
 
FXButton * myAddClosingReroutes
 button for add new closing reroutes More...
 
FXButton * myAddDestProbReroutes
 button for add new destiny probability reroutes More...
 
FXButton * myAddRouteProbReroute
 button for add new route probability reroutes More...
 
bool myBeginEndValid
 flag to check if begin an end are valid More...
 
FXTextField * myBeginTextField
 begin time text field More...
 
FXLabel * myCheckLabel
 begin/end time check label More...
 
bool myClosingLaneReroutesValid
 flag to check if closing lane reroutes are valid More...
 
FXTable * myClosingLaneRerouteTable
 list with closing lane reroutes More...
 
bool myClosingReroutesValid
 flag to check if closing reroutes are valid More...
 
FXTable * myClosingRerouteTable
 list with closing reroutes More...
 
FXVerticalFrame * myContentFrame
 frame for contents More...
 
bool myDestProbReroutesValid
 flag to check if Destiny probability reroutes are valid More...
 
FXTable * myDestProbRerouteTable
 list with destiny probability reroutes More...
 
GNERerouterIntervalmyEditedRerouterInterval
 pointer to rerouter interval More...
 
FXTextField * myEndTextField
 end time text field More...
 
bool myRouteProbReroutesValid
 flag to check if route prob reroutes are valid More...
 
FXTable * myRouteProbRerouteTable
 list with route probability reroute More...
 
bool myUpdatingElement
 flag to indicate if rerouter interval is being created or modified More...
 

Private Member Functions

 GNERerouterIntervalDialog (const GNERerouterIntervalDialog &)=delete
 Invalidated copy constructor. More...
 
GNERerouterIntervalDialogoperator= (const GNERerouterIntervalDialog &)=delete
 Invalidated assignment operator. More...
 
void updateClosingLaneReroutesTable ()
 update data of closing lane reroute table More...
 
void updateClosingReroutesTable ()
 update data of closing reroute table More...
 
void updateDestProbReroutesTable ()
 update data of destiny probabilitry reroute table More...
 
void updateRouteProbReroutesTable ()
 update data of probabilitry reroutes table More...
 

Detailed Description

Dialog for edit rerouter intervals.

Definition at line 56 of file GNERerouterIntervalDialog.h.

Constructor & Destructor Documentation

◆ GNERerouterIntervalDialog() [1/3]

◆ ~GNERerouterIntervalDialog()

GNERerouterIntervalDialog::~GNERerouterIntervalDialog ( )

destructor

Definition at line 169 of file GNERerouterIntervalDialog.cpp.

◆ GNERerouterIntervalDialog() [2/3]

GNERerouterIntervalDialog::GNERerouterIntervalDialog ( )
inlineprotected

FOX needs this.

Definition at line 124 of file GNERerouterIntervalDialog.h.

◆ GNERerouterIntervalDialog() [3/3]

GNERerouterIntervalDialog::GNERerouterIntervalDialog ( const GNERerouterIntervalDialog )
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.

◆ getEditedRerouterInterval()

GNERerouterInterval * GNERerouterIntervalDialog::getEditedRerouterInterval ( ) const

get edited Rerouter Interval

Definition at line 173 of file GNERerouterIntervalDialog.cpp.

References myEditedRerouterInterval.

◆ initChanges()

void GNEAdditionalDialog::initChanges ( )
protectedinherited

◆ onCmdAccept()

◆ onCmdAddClosingLaneReroute()

long GNERerouterIntervalDialog::onCmdAddClosingLaneReroute ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdAddClosingReroute()

long GNERerouterIntervalDialog::onCmdAddClosingReroute ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdAddDestProbReroute()

long GNERerouterIntervalDialog::onCmdAddDestProbReroute ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdAddRouteProbReroute()

long GNERerouterIntervalDialog::onCmdAddRouteProbReroute ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdCancel()

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

event after press cancel button

Implements GNEAdditionalDialog.

Definition at line 269 of file GNERerouterIntervalDialog.cpp.

References GNEAdditionalDialog::cancelChanges().

◆ onCmdChangeBeginEnd()

◆ onCmdClickedClosingLaneReroute()

long GNERerouterIntervalDialog::onCmdClickedClosingLaneReroute ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdClickedClosingReroute()

long GNERerouterIntervalDialog::onCmdClickedClosingReroute ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdClickedDestProbReroute()

long GNERerouterIntervalDialog::onCmdClickedDestProbReroute ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdClickedRouteProbReroute()

long GNERerouterIntervalDialog::onCmdClickedRouteProbReroute ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdEditClosingLaneReroute()

◆ onCmdEditClosingReroute()

◆ onCmdEditDestProbReroute()

◆ onCmdEditRouteProbReroute()

◆ onCmdReset()

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

◆ onKeyPress()

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

event after press a key

Definition at line 96 of file GNEAdditionalDialog.cpp.

◆ onKeyRelease()

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

event after release a key

Definition at line 102 of file GNEAdditionalDialog.cpp.

◆ openAsModalDialog()

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

execute dialog as modal

Definition at line 83 of file GNEAdditionalDialog.cpp.

◆ operator=()

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

Invalidated assignment operator.

◆ resetChanges()

◆ updateClosingLaneReroutesTable()

◆ updateClosingReroutesTable()

◆ updateDestProbReroutesTable()

void GNERerouterIntervalDialog::updateDestProbReroutesTable ( )
private

◆ updateRouteProbReroutesTable()

Field Documentation

◆ myAddClosingLaneReroutes

FXButton* GNERerouterIntervalDialog::myAddClosingLaneReroutes
protected

button for add new closing lane reroutes

Definition at line 142 of file GNERerouterIntervalDialog.h.

◆ myAddClosingReroutes

FXButton* GNERerouterIntervalDialog::myAddClosingReroutes
protected

button for add new closing reroutes

Definition at line 145 of file GNERerouterIntervalDialog.h.

◆ myAddDestProbReroutes

FXButton* GNERerouterIntervalDialog::myAddDestProbReroutes
protected

button for add new destiny probability reroutes

Definition at line 148 of file GNERerouterIntervalDialog.h.

◆ myAddRouteProbReroute

FXButton* GNERerouterIntervalDialog::myAddRouteProbReroute
protected

button for add new route probability reroutes

Definition at line 151 of file GNERerouterIntervalDialog.h.

◆ myBeginEndValid

bool GNERerouterIntervalDialog::myBeginEndValid
protected

flag to check if begin an end are valid

Definition at line 166 of file GNERerouterIntervalDialog.h.

Referenced by onCmdAccept(), and onCmdChangeBeginEnd().

◆ myBeginTextField

FXTextField* GNERerouterIntervalDialog::myBeginTextField
protected

begin time text field

Definition at line 133 of file GNERerouterIntervalDialog.h.

Referenced by onCmdChangeBeginEnd().

◆ myCheckLabel

FXLabel* GNERerouterIntervalDialog::myCheckLabel
protected

begin/end time check label

Definition at line 139 of file GNERerouterIntervalDialog.h.

Referenced by onCmdChangeBeginEnd().

◆ myClosingLaneReroutesValid

bool GNERerouterIntervalDialog::myClosingLaneReroutesValid
protected

flag to check if closing lane reroutes are valid

Definition at line 169 of file GNERerouterIntervalDialog.h.

Referenced by onCmdAccept(), and onCmdEditClosingLaneReroute().

◆ myClosingLaneRerouteTable

FXTable* GNERerouterIntervalDialog::myClosingLaneRerouteTable
protected

list with closing lane reroutes

Definition at line 154 of file GNERerouterIntervalDialog.h.

Referenced by onCmdClickedClosingLaneReroute(), onCmdEditClosingLaneReroute(), and updateClosingLaneReroutesTable().

◆ myClosingReroutesValid

bool GNERerouterIntervalDialog::myClosingReroutesValid
protected

flag to check if closing reroutes are valid

Definition at line 172 of file GNERerouterIntervalDialog.h.

Referenced by onCmdAccept(), and onCmdEditClosingReroute().

◆ myClosingRerouteTable

FXTable* GNERerouterIntervalDialog::myClosingRerouteTable
protected

list with closing reroutes

Definition at line 157 of file GNERerouterIntervalDialog.h.

Referenced by onCmdClickedClosingReroute(), onCmdEditClosingReroute(), and updateClosingReroutesTable().

◆ myContentFrame

FXVerticalFrame* GNEAdditionalDialog::myContentFrame
protectedinherited

frame for contents

Definition at line 86 of file GNEAdditionalDialog.h.

◆ myDestProbReroutesValid

bool GNERerouterIntervalDialog::myDestProbReroutesValid
protected

flag to check if Destiny probability reroutes are valid

Definition at line 175 of file GNERerouterIntervalDialog.h.

Referenced by onCmdAccept(), and onCmdEditDestProbReroute().

◆ myDestProbRerouteTable

FXTable* GNERerouterIntervalDialog::myDestProbRerouteTable
protected

list with destiny probability reroutes

Definition at line 160 of file GNERerouterIntervalDialog.h.

Referenced by onCmdClickedDestProbReroute(), onCmdEditDestProbReroute(), and updateDestProbReroutesTable().

◆ myEditedRerouterInterval

◆ myEndTextField

FXTextField* GNERerouterIntervalDialog::myEndTextField
protected

end time text field

Definition at line 136 of file GNERerouterIntervalDialog.h.

Referenced by onCmdChangeBeginEnd().

◆ myRouteProbReroutesValid

bool GNERerouterIntervalDialog::myRouteProbReroutesValid
protected

flag to check if route prob reroutes are valid

Definition at line 178 of file GNERerouterIntervalDialog.h.

Referenced by onCmdAccept(), and onCmdEditRouteProbReroute().

◆ myRouteProbRerouteTable

FXTable* GNERerouterIntervalDialog::myRouteProbRerouteTable
protected

list with route probability reroute

Definition at line 163 of file GNERerouterIntervalDialog.h.

Referenced by onCmdClickedRouteProbReroute(), onCmdEditRouteProbReroute(), and updateRouteProbReroutesTable().

◆ myUpdatingElement

bool GNERerouterIntervalDialog::myUpdatingElement
protected

flag to indicate if rerouter interval is being created or modified

Definition at line 130 of file GNERerouterIntervalDialog.h.

Referenced by onCmdAccept().


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