Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNECalibratorFlowDialog Class Reference

Dialog for editing calibrator flows. More...

#include <GNECalibratorFlowDialog.h>

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

Public Member Functions

GNEAdditionalgetEditedAdditional () const
 get edited Additional
 
 GNECalibratorFlowDialog (GNEAdditional *editedCalibratorFlow, bool updatingElement)
 FOX-declaration.
 
 ~GNECalibratorFlowDialog ()
 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
 
long onCmdSetVariable (FXObject *, FXSelector, void *)
 event after change value
 
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
 

Protected Member Functions

void acceptChanges ()
 Accept changes did in this dialog.
 
void cancelChanges ()
 Cancel changes did in this dialog.
 
void changeAdditionalDialogHeader (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.
 
void updateCalibratorFlowValues ()
 update data fields
 

Protected Attributes

bool myCalibratorFlowValid
 flag to check if current calibrator flow is valid
 
MFXComboBoxIconmyComboBoxRoute
 TextField for Route.
 
MFXComboBoxIconmyComboBoxVehicleType
 ComboBox for Type.
 
FXVerticalFrame * myContentFrame
 frame for contents
 
GNEAdditionalmyEditedAdditional
 pointer to edited additional
 
SumoXMLAttr myInvalidAttr
 current sumo attribute invalid
 
FXCheckButton * myRerouteCheckButton
 checkButton for Reroute
 
FXTextField * myTextFieldArrivalLane
 TextField for Arrival Lane.
 
FXTextField * myTextFieldArrivalPos
 TextField for Arrival Pos.
 
FXTextField * myTextFieldArrivalPosLat
 TextField for ArrivalPosLat.
 
FXTextField * myTextFieldArrivalSpeed
 TextField for Arrival Speed.
 
FXTextField * myTextFieldBegin
 TextField for Begin.
 
FXTextField * myTextFieldColor
 TextField for Color.
 
FXTextField * myTextFieldContainerNumber
 TextField for Container Number.
 
FXTextField * myTextFieldDepartLane
 TextField for Depart Lane.
 
FXTextField * myTextFieldDepartPos
 TextField for Depart Pos.
 
FXTextField * myTextFieldDepartPosLat
 TextField for DepartPosLat.
 
FXTextField * myTextFieldDepartSpeed
 TextField for Depart Speed.
 
FXTextField * myTextFieldEnd
 TextField for End.
 
FXTextField * myTextFieldLine
 TextField for Line.
 
FXTextField * myTextFieldPersonNumber
 TextField for PersonNumber.
 
FXTextField * myTextFieldSpeed
 TextField for Speed.
 
FXTextField * myTextFieldVehsPerHour
 TextField for VehsPerHour.
 
bool myUpdatingElement
 flag to indicate if additional are being created or modified (cannot be changed after open dialog)
 

Private Member Functions

 GNECalibratorFlowDialog (const GNECalibratorFlowDialog &)=delete
 Invalidated copy constructor.
 
GNECalibratorFlowDialogoperator= (const GNECalibratorFlowDialog &)=delete
 Invalidated assignment operator.
 

Private Attributes

FXButton * myCancelButton
 cancel button
 
std::string myChangesDescription
 description of changes did in this additional dialog
 
FXButton * myKeepOldButton
 accept button
 
int myNumberOfChanges
 number of GNEChanges_... in dialog
 
FXButton * myResetButton
 cancel button
 

Detailed Description

Dialog for editing calibrator flows.

This is a modal dialog which blocks in its constructor so it is save to delete it directly after construction

Definition at line 43 of file GNECalibratorFlowDialog.h.

Constructor & Destructor Documentation

◆ GNECalibratorFlowDialog() [1/2]

◆ ~GNECalibratorFlowDialog()

GNECalibratorFlowDialog::~GNECalibratorFlowDialog ( )

destructor

Definition at line 151 of file GNECalibratorFlowDialog.cpp.

◆ GNECalibratorFlowDialog() [2/2]

GNECalibratorFlowDialog::GNECalibratorFlowDialog ( const GNECalibratorFlowDialog )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ acceptChanges()

void GNEAdditionalDialog::acceptChanges ( )
protectedinherited

Accept changes did in this dialog.

Definition at line 123 of file GNEAdditionalDialog.cpp.

References GNEUndoList::abortLastChangeGroup(), GNEUndoList::end(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), and GNEAdditionalDialog::myEditedAdditional.

Referenced by GNECalibratorDialog::onCmdAccept(), onCmdAccept(), GNERerouterDialog::onCmdAccept(), GNERerouterIntervalDialog::onCmdAccept(), and GNEVariableSpeedSignDialog::onCmdAccept().

Here is the caller graph for this function:

◆ cancelChanges()

void GNEAdditionalDialog::cancelChanges ( )
protectedinherited

Cancel changes did in this dialog.

Definition at line 134 of file GNEAdditionalDialog.cpp.

References GNEUndoList::abortLastChangeGroup(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), and GNEAdditionalDialog::myEditedAdditional.

Referenced by GNECalibratorDialog::onCmdCancel(), onCmdCancel(), GNERerouterDialog::onCmdCancel(), GNERerouterIntervalDialog::onCmdCancel(), and GNEVariableSpeedSignDialog::onCmdCancel().

Here is the caller graph for this function:

◆ changeAdditionalDialogHeader()

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

change additional dialog header

Definition at line 107 of file GNEAdditionalDialog.cpp.

◆ getEditedAdditional()

GNEAdditional * GNEAdditionalDialog::getEditedAdditional ( ) const
inherited

get edited Additional

Definition at line 89 of file GNEAdditionalDialog.cpp.

References GNEAdditionalDialog::myEditedAdditional.

◆ initChanges()

◆ onCmdAccept()

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

◆ onCmdCancel()

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

event after press cancel button

Implements GNEAdditionalDialog.

Definition at line 207 of file GNECalibratorFlowDialog.cpp.

References GNEAdditionalDialog::cancelChanges().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdReset()

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

event after press reset button

Implements GNEAdditionalDialog.

Definition at line 217 of file GNECalibratorFlowDialog.cpp.

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

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSetVariable()

◆ onKeyPress()

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

event after press a key

Definition at line 95 of file GNEAdditionalDialog.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onKeyRelease()

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

event after release a key

Definition at line 101 of file GNEAdditionalDialog.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ openAsModalDialog()

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

execute dialog as modal

Definition at line 76 of file GNEAdditionalDialog.cpp.

◆ operator=()

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

Invalidated assignment operator.

◆ resetChanges()

void GNEAdditionalDialog::resetChanges ( )
protectedinherited

reset changes did in this dialog.

Definition at line 140 of file GNEAdditionalDialog.cpp.

References GNEUndoList::abortLastChangeGroup(), GNEUndoList::begin(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEAdditionalDialog::myChangesDescription, and GNEAdditionalDialog::myEditedAdditional.

Referenced by GNECalibratorDialog::onCmdReset(), onCmdReset(), GNERerouterDialog::onCmdReset(), GNERerouterIntervalDialog::onCmdReset(), and GNEVariableSpeedSignDialog::onCmdReset().

Here is the caller graph for this function:

◆ updateCalibratorFlowValues()

Field Documentation

◆ myCalibratorFlowValid

bool GNECalibratorFlowDialog::myCalibratorFlowValid
protected

flag to check if current calibrator flow is valid

Definition at line 73 of file GNECalibratorFlowDialog.h.

Referenced by onCmdAccept(), and onCmdSetVariable().

◆ myCancelButton

FXButton* GNEAdditionalDialog::myCancelButton
privateinherited

cancel button

Definition at line 110 of file GNEAdditionalDialog.h.

◆ myChangesDescription

std::string GNEAdditionalDialog::myChangesDescription
privateinherited

description of changes did in this additional dialog

Definition at line 116 of file GNEAdditionalDialog.h.

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

◆ myComboBoxRoute

MFXComboBoxIcon* GNECalibratorFlowDialog::myComboBoxRoute
protected

TextField for Route.

Definition at line 82 of file GNECalibratorFlowDialog.h.

Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().

◆ myComboBoxVehicleType

MFXComboBoxIcon* GNECalibratorFlowDialog::myComboBoxVehicleType
protected

ComboBox for Type.

Definition at line 79 of file GNECalibratorFlowDialog.h.

Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().

◆ myContentFrame

FXVerticalFrame* GNEAdditionalDialog::myContentFrame
protectedinherited

frame for contents

Definition at line 85 of file GNEAdditionalDialog.h.

◆ myEditedAdditional

GNEAdditional* GNEAdditionalDialog::myEditedAdditional
protectedinherited

pointer to edited additional

Definition at line 79 of file GNEAdditionalDialog.h.

Referenced by GNEAdditionalDialog::acceptChanges(), GNEAdditionalDialog::cancelChanges(), GNEAdditionalDialog::getEditedAdditional(), GNEAdditionalDialog::initChanges(), onCmdAccept(), GNERerouterDialog::onCmdAccept(), GNERerouterIntervalDialog::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(), GNERerouterDialog::onCmdClickedInterval(), GNERerouterIntervalDialog::onCmdClickedParkingAreaReroute(), GNECalibratorDialog::onCmdClickedRoute(), GNERerouterIntervalDialog::onCmdClickedRouteProbReroute(), GNEVariableSpeedSignDialog::onCmdClickedStep(), GNECalibratorDialog::onCmdClickedVehicleType(), GNERerouterIntervalDialog::onCmdEditClosingLaneReroute(), GNERerouterIntervalDialog::onCmdEditClosingReroute(), GNERerouterIntervalDialog::onCmdEditDestProbReroute(), GNERerouterIntervalDialog::onCmdEditParkingAreaReroute(), GNERerouterIntervalDialog::onCmdEditRouteProbReroute(), GNEVariableSpeedSignDialog::onCmdEditStep(), onCmdSetVariable(), GNEAdditionalDialog::resetChanges(), updateCalibratorFlowValues(), GNECalibratorDialog::updateFlowAndLabelButton(), GNECalibratorDialog::updateFlowTable(), GNERerouterDialog::updateIntervalTable(), GNECalibratorDialog::updateRouteTable(), GNEVariableSpeedSignDialog::updateTableSteps(), and GNECalibratorDialog::updateVehicleTypeTable().

◆ myInvalidAttr

SumoXMLAttr GNECalibratorFlowDialog::myInvalidAttr
protected

current sumo attribute invalid

Definition at line 76 of file GNECalibratorFlowDialog.h.

Referenced by onCmdAccept(), and onCmdSetVariable().

◆ myKeepOldButton

FXButton* GNEAdditionalDialog::myKeepOldButton
privateinherited

accept button

Definition at line 107 of file GNEAdditionalDialog.h.

◆ myNumberOfChanges

int GNEAdditionalDialog::myNumberOfChanges
privateinherited

number of GNEChanges_... in dialog

Definition at line 119 of file GNEAdditionalDialog.h.

Referenced by GNEAdditionalDialog::initChanges().

◆ myRerouteCheckButton

FXCheckButton* GNECalibratorFlowDialog::myRerouteCheckButton
protected

checkButton for Reroute

Definition at line 121 of file GNECalibratorFlowDialog.h.

Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().

◆ myResetButton

FXButton* GNEAdditionalDialog::myResetButton
privateinherited

cancel button

Definition at line 113 of file GNEAdditionalDialog.h.

◆ myTextFieldArrivalLane

FXTextField* GNECalibratorFlowDialog::myTextFieldArrivalLane
protected

TextField for Arrival Lane.

Definition at line 103 of file GNECalibratorFlowDialog.h.

Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().

◆ myTextFieldArrivalPos

FXTextField* GNECalibratorFlowDialog::myTextFieldArrivalPos
protected

TextField for Arrival Pos.

Definition at line 106 of file GNECalibratorFlowDialog.h.

Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().

◆ myTextFieldArrivalPosLat

FXTextField* GNECalibratorFlowDialog::myTextFieldArrivalPosLat
protected

TextField for ArrivalPosLat.

Definition at line 127 of file GNECalibratorFlowDialog.h.

Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().

◆ myTextFieldArrivalSpeed

FXTextField* GNECalibratorFlowDialog::myTextFieldArrivalSpeed
protected

TextField for Arrival Speed.

Definition at line 109 of file GNECalibratorFlowDialog.h.

Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().

◆ myTextFieldBegin

FXTextField* GNECalibratorFlowDialog::myTextFieldBegin
protected

TextField for Begin.

Definition at line 130 of file GNECalibratorFlowDialog.h.

Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().

◆ myTextFieldColor

FXTextField* GNECalibratorFlowDialog::myTextFieldColor
protected

TextField for Color.

Definition at line 91 of file GNECalibratorFlowDialog.h.

Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().

◆ myTextFieldContainerNumber

FXTextField* GNECalibratorFlowDialog::myTextFieldContainerNumber
protected

TextField for Container Number.

Definition at line 118 of file GNECalibratorFlowDialog.h.

Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().

◆ myTextFieldDepartLane

FXTextField* GNECalibratorFlowDialog::myTextFieldDepartLane
protected

TextField for Depart Lane.

Definition at line 94 of file GNECalibratorFlowDialog.h.

Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().

◆ myTextFieldDepartPos

FXTextField* GNECalibratorFlowDialog::myTextFieldDepartPos
protected

TextField for Depart Pos.

Definition at line 97 of file GNECalibratorFlowDialog.h.

Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().

◆ myTextFieldDepartPosLat

FXTextField* GNECalibratorFlowDialog::myTextFieldDepartPosLat
protected

TextField for DepartPosLat.

Definition at line 124 of file GNECalibratorFlowDialog.h.

Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().

◆ myTextFieldDepartSpeed

FXTextField* GNECalibratorFlowDialog::myTextFieldDepartSpeed
protected

TextField for Depart Speed.

Definition at line 100 of file GNECalibratorFlowDialog.h.

Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().

◆ myTextFieldEnd

FXTextField* GNECalibratorFlowDialog::myTextFieldEnd
protected

TextField for End.

Definition at line 133 of file GNECalibratorFlowDialog.h.

Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().

◆ myTextFieldLine

FXTextField* GNECalibratorFlowDialog::myTextFieldLine
protected

TextField for Line.

Definition at line 112 of file GNECalibratorFlowDialog.h.

Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().

◆ myTextFieldPersonNumber

FXTextField* GNECalibratorFlowDialog::myTextFieldPersonNumber
protected

TextField for PersonNumber.

Definition at line 115 of file GNECalibratorFlowDialog.h.

Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().

◆ myTextFieldSpeed

FXTextField* GNECalibratorFlowDialog::myTextFieldSpeed
protected

TextField for Speed.

Definition at line 88 of file GNECalibratorFlowDialog.h.

Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().

◆ myTextFieldVehsPerHour

FXTextField* GNECalibratorFlowDialog::myTextFieldVehsPerHour
protected

TextField for VehsPerHour.

Definition at line 85 of file GNECalibratorFlowDialog.h.

Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().

◆ myUpdatingElement

bool GNEAdditionalDialog::myUpdatingElement
protectedinherited

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

Definition at line 82 of file GNEAdditionalDialog.h.

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


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