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

#include <GNEVariableSpeedSignDialog.h>

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

Public Member Functions

GNEAdditionalgetEditedAdditional () const
 get edited Additional
 
 GNEVariableSpeedSignDialog (GNEVariableSpeedSign *editedVariableSpeedSign)
 FOX-declaration.
 
 ~GNEVariableSpeedSignDialog ()
 destructor
 
FOX-callbacks

event called after press add row button

long onCmdAddStep (FXObject *, FXSelector, void *)
 
long onCmdEditStep (FXObject *, FXSelector, void *)
 event called after edit row
 
long onCmdClickedStep (FXObject *, FXSelector, void *)
 event called after clicked a row
 
long onCmdSortSteps (FXObject *, FXSelector, void *)
 event called after clicked over sort step button
 
long onCmdAccept (FXObject *, FXSelector, void *)
 event called after press accept button
 
long onCmdCancel (FXObject *, FXSelector, void *)
 event called after press cancel button
 
long onCmdReset (FXObject *, FXSelector, void *)
 event called after press cancel 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
 

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.
 

Protected Attributes

FXButton * myAddStepButton
 Button for insert row.
 
FXVerticalFrame * myContentFrame
 frame for contents
 
GNEAdditionalmyEditedAdditional
 pointer to edited additional
 
FXButton * mySortStepButton
 Button for sort row.
 
FXTable * myStepsTable
 Table with the data.
 
bool myStepsValids
 
bool myUpdatingElement
 flag to indicate if additional are being created or modified (cannot be changed after open dialog)
 

Private Member Functions

 GNEVariableSpeedSignDialog (const GNEVariableSpeedSignDialog &)=delete
 Invalidated copy constructor.
 
GNEVariableSpeedSignDialogoperator= (const GNEVariableSpeedSignDialog &)=delete
 Invalidated assignment operator.
 
void updateTableSteps ()
 update data table
 

Private Attributes

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

Detailed Description

Definition at line 42 of file GNEVariableSpeedSignDialog.h.

Constructor & Destructor Documentation

◆ GNEVariableSpeedSignDialog() [1/2]

◆ ~GNEVariableSpeedSignDialog()

GNEVariableSpeedSignDialog::~GNEVariableSpeedSignDialog ( )

destructor

Definition at line 76 of file GNEVariableSpeedSignDialog.cpp.

◆ GNEVariableSpeedSignDialog() [2/2]

GNEVariableSpeedSignDialog::GNEVariableSpeedSignDialog ( const GNEVariableSpeedSignDialog )
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(), GNECalibratorFlowDialog::onCmdAccept(), GNERerouterDialog::onCmdAccept(), GNERerouterIntervalDialog::onCmdAccept(), and 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(), GNECalibratorFlowDialog::onCmdCancel(), GNERerouterDialog::onCmdCancel(), GNERerouterIntervalDialog::onCmdCancel(), and 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 GNEVariableSpeedSignDialog::onCmdAccept ( FXObject *  ,
FXSelector  ,
void *   
)
virtual

event called after press accept button

Implements GNEAdditionalDialog.

Definition at line 159 of file GNEVariableSpeedSignDialog.cpp.

References GNEAdditionalDialog::acceptChanges(), myStepsValids, SUMO_TAG_STEP, SUMO_TAG_VSS, toString(), and WRITE_DEBUG.

◆ onCmdAddStep()

long GNEVariableSpeedSignDialog::onCmdAddStep ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 80 of file GNEVariableSpeedSignDialog.cpp.

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

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCancel()

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

event called after press cancel button

Implements GNEAdditionalDialog.

Definition at line 180 of file GNEVariableSpeedSignDialog.cpp.

References GNEAdditionalDialog::cancelChanges().

◆ onCmdClickedStep()

long GNEVariableSpeedSignDialog::onCmdClickedStep ( FXObject *  ,
FXSelector  ,
void *   
)

event called after clicked a row

Definition at line 128 of file GNEVariableSpeedSignDialog.cpp.

References GNEUndoList::add(), GNEHierarchicalElement::getChildAdditionals(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEAdditionalDialog::myEditedAdditional, myStepsTable, and updateTableSteps().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdEditStep()

long GNEVariableSpeedSignDialog::onCmdEditStep ( FXObject *  ,
FXSelector  ,
void *   
)

event called after edit row

Definition at line 92 of file GNEVariableSpeedSignDialog.cpp.

References CORRECT, GNEHierarchicalElement::getChildAdditionals(), GUIIconSubSys::getIcon(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), INCORRECT, GNEAdditional::isValid(), GNEAdditionalDialog::myEditedAdditional, myStepsTable, myStepsValids, GNEAdditional::setAttribute(), SUMO_ATTR_SPEED, SUMO_ATTR_TIME, and toString().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdReset()

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

event called after press cancel button

Implements GNEAdditionalDialog.

Definition at line 190 of file GNEVariableSpeedSignDialog.cpp.

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

◆ onCmdSortSteps()

long GNEVariableSpeedSignDialog::onCmdSortSteps ( FXObject *  ,
FXSelector  ,
void *   
)

event called after clicked over sort step button

Definition at line 151 of file GNEVariableSpeedSignDialog.cpp.

References updateTableSteps().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ 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=()

GNEVariableSpeedSignDialog & GNEVariableSpeedSignDialog::operator= ( const GNEVariableSpeedSignDialog )
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(), GNECalibratorFlowDialog::onCmdReset(), GNERerouterDialog::onCmdReset(), GNERerouterIntervalDialog::onCmdReset(), and onCmdReset().

Here is the caller graph for this function:

◆ updateTableSteps()

void GNEVariableSpeedSignDialog::updateTableSteps ( )
private

update data table

Definition at line 200 of file GNEVariableSpeedSignDialog.cpp.

References CORRECT, GNEHierarchicalElement::getChildAdditionals(), GUIIconSubSys::getIcon(), GUIDesignHeight, GNEAdditionalDialog::myEditedAdditional, myStepsTable, REMOVE, SUMO_ATTR_SPEED, and SUMO_ATTR_TIME.

Referenced by onCmdAddStep(), onCmdClickedStep(), onCmdReset(), and onCmdSortSteps().

Here is the caller graph for this function:

Field Documentation

◆ myAcceptButton

FXButton* GNEAdditionalDialog::myAcceptButton
privateinherited

accept button

Definition at line 107 of file GNEAdditionalDialog.h.

◆ myAddStepButton

FXButton* GNEVariableSpeedSignDialog::myAddStepButton
protected

Button for insert row.

Definition at line 84 of file GNEVariableSpeedSignDialog.h.

◆ 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().

◆ 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(), GNECalibratorFlowDialog::onCmdAccept(), GNERerouterDialog::onCmdAccept(), GNERerouterIntervalDialog::onCmdAccept(), GNERerouterIntervalDialog::onCmdAddClosingLaneReroute(), GNERerouterIntervalDialog::onCmdAddClosingReroute(), GNERerouterIntervalDialog::onCmdAddDestProbReroute(), GNECalibratorDialog::onCmdAddFlow(), GNERerouterIntervalDialog::onCmdAddParkingAreaReroute(), GNECalibratorDialog::onCmdAddRoute(), GNERerouterIntervalDialog::onCmdAddRouteProbReroute(), onCmdAddStep(), GNECalibratorDialog::onCmdAddVehicleType(), GNERerouterIntervalDialog::onCmdChangeBeginEnd(), GNERerouterIntervalDialog::onCmdClickedClosingLaneReroute(), GNERerouterIntervalDialog::onCmdClickedClosingReroute(), GNERerouterIntervalDialog::onCmdClickedDestProbReroute(), GNECalibratorDialog::onCmdClickedFlow(), GNERerouterDialog::onCmdClickedInterval(), GNERerouterIntervalDialog::onCmdClickedParkingAreaReroute(), GNECalibratorDialog::onCmdClickedRoute(), GNERerouterIntervalDialog::onCmdClickedRouteProbReroute(), onCmdClickedStep(), GNECalibratorDialog::onCmdClickedVehicleType(), GNERerouterIntervalDialog::onCmdEditClosingLaneReroute(), GNERerouterIntervalDialog::onCmdEditClosingReroute(), GNERerouterIntervalDialog::onCmdEditDestProbReroute(), GNERerouterIntervalDialog::onCmdEditParkingAreaReroute(), GNERerouterIntervalDialog::onCmdEditRouteProbReroute(), onCmdEditStep(), GNECalibratorFlowDialog::onCmdSetVariable(), GNEAdditionalDialog::resetChanges(), GNECalibratorFlowDialog::updateCalibratorFlowValues(), GNECalibratorDialog::updateFlowAndLabelButton(), GNECalibratorDialog::updateFlowTable(), GNERerouterDialog::updateIntervalTable(), GNECalibratorDialog::updateRouteTable(), updateTableSteps(), and GNECalibratorDialog::updateVehicleTypeTable().

◆ myNumberOfChanges

int GNEAdditionalDialog::myNumberOfChanges
privateinherited

number of GNEChanges_... in dialog

Definition at line 119 of file GNEAdditionalDialog.h.

Referenced by GNEAdditionalDialog::initChanges().

◆ myResetButton

FXButton* GNEAdditionalDialog::myResetButton
privateinherited

cancel button

Definition at line 113 of file GNEAdditionalDialog.h.

◆ mySortStepButton

FXButton* GNEVariableSpeedSignDialog::mySortStepButton
protected

Button for sort row.

Definition at line 87 of file GNEVariableSpeedSignDialog.h.

◆ myStepsTable

FXTable* GNEVariableSpeedSignDialog::myStepsTable
protected

Table with the data.

Definition at line 81 of file GNEVariableSpeedSignDialog.h.

Referenced by onCmdClickedStep(), onCmdEditStep(), and updateTableSteps().

◆ myStepsValids

bool GNEVariableSpeedSignDialog::myStepsValids
protected

Definition at line 90 of file GNEVariableSpeedSignDialog.h.

Referenced by onCmdAccept(), and onCmdEditStep().

◆ 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 GNECalibratorFlowDialog::onCmdAccept(), and GNERerouterIntervalDialog::onCmdAccept().


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