Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEAdditionalDialog Class Referenceabstract

Dialog to edit sequences, parameters, etc.. of Additionals. More...

#include <GNEAdditionalDialog.h>

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

Public Member Functions

GNEAdditionalgetEditedAdditional () const
 get edited Additional
 
 GNEAdditionalDialog (GNEAdditional *parent, bool updatingElement, int width, int height)
 FOX-declaration abstract.
 
 ~GNEAdditionalDialog ()
 destructor
 
FOX-callbacks

event after press accept button

virtual long onCmdAccept (FXObject *sender, FXSelector sel, void *ptr)=0
 
virtual long onCmdCancel (FXObject *sender, FXSelector sel, void *ptr)=0
 event after press cancel button
 
virtual long onCmdReset (FXObject *, FXSelector, void *)=0
 event after press cancel 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

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

Private Member Functions

 GNEAdditionalDialog (const GNEAdditionalDialog &)=delete
 Invalidated copy constructor.
 
GNEAdditionalDialogoperator= (const GNEAdditionalDialog &)=delete
 Invalidated assignment operator.
 

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

Dialog to edit sequences, parameters, etc.. of Additionals.

Definition at line 42 of file GNEAdditionalDialog.h.

Constructor & Destructor Documentation

◆ GNEAdditionalDialog() [1/2]

GNEAdditionalDialog::GNEAdditionalDialog ( GNEAdditional parent,
bool  updatingElement,
int  width,
int  height 
)

◆ ~GNEAdditionalDialog()

GNEAdditionalDialog::~GNEAdditionalDialog ( )

destructor

Definition at line 69 of file GNEAdditionalDialog.cpp.

◆ GNEAdditionalDialog() [2/2]

GNEAdditionalDialog::GNEAdditionalDialog ( const GNEAdditionalDialog )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ acceptChanges()

void GNEAdditionalDialog::acceptChanges ( )
protected

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 myEditedAdditional.

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

Here is the caller graph for this function:

◆ cancelChanges()

void GNEAdditionalDialog::cancelChanges ( )
protected

Cancel changes did in this dialog.

Definition at line 134 of file GNEAdditionalDialog.cpp.

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

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

Here is the caller graph for this function:

◆ changeAdditionalDialogHeader()

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

change additional dialog header

Definition at line 107 of file GNEAdditionalDialog.cpp.

◆ getEditedAdditional()

GNEAdditional * GNEAdditionalDialog::getEditedAdditional ( ) const

get edited Additional

Definition at line 89 of file GNEAdditionalDialog.cpp.

References myEditedAdditional.

◆ initChanges()

void GNEAdditionalDialog::initChanges ( )
protected

◆ onCmdAccept()

virtual long GNEAdditionalDialog::onCmdAccept ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)
pure virtual

Implemented in GNECalibratorDialog, GNECalibratorFlowDialog, GNERerouterDialog, GNERerouterIntervalDialog, and GNEVariableSpeedSignDialog.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCancel()

virtual long GNEAdditionalDialog::onCmdCancel ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)
pure virtual

event after press cancel button

Implemented in GNECalibratorDialog, GNECalibratorFlowDialog, GNERerouterDialog, GNERerouterIntervalDialog, and GNEVariableSpeedSignDialog.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdReset()

virtual long GNEAdditionalDialog::onCmdReset ( FXObject *  ,
FXSelector  ,
void *   
)
pure virtual

event after press cancel button

Implemented in GNECalibratorDialog, GNECalibratorFlowDialog, GNERerouterDialog, GNERerouterIntervalDialog, and GNEVariableSpeedSignDialog.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onKeyPress()

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

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 
)

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)
protected

execute dialog as modal

Definition at line 76 of file GNEAdditionalDialog.cpp.

◆ operator=()

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

Invalidated assignment operator.

◆ resetChanges()

void GNEAdditionalDialog::resetChanges ( )
protected

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(), myChangesDescription, and myEditedAdditional.

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

Here is the caller graph for this function:

Field Documentation

◆ myAcceptButton

FXButton* GNEAdditionalDialog::myAcceptButton
private

accept button

Definition at line 107 of file GNEAdditionalDialog.h.

◆ myCancelButton

FXButton* GNEAdditionalDialog::myCancelButton
private

cancel button

Definition at line 110 of file GNEAdditionalDialog.h.

◆ myChangesDescription

std::string GNEAdditionalDialog::myChangesDescription
private

description of changes did in this additional dialog

Definition at line 116 of file GNEAdditionalDialog.h.

Referenced by initChanges(), and resetChanges().

◆ myContentFrame

FXVerticalFrame* GNEAdditionalDialog::myContentFrame
protected

frame for contents

Definition at line 85 of file GNEAdditionalDialog.h.

◆ myEditedAdditional

GNEAdditional* GNEAdditionalDialog::myEditedAdditional
protected

pointer to edited additional

Definition at line 79 of file GNEAdditionalDialog.h.

Referenced by acceptChanges(), cancelChanges(), getEditedAdditional(), initChanges(), GNECalibratorFlowDialog::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(), GNECalibratorFlowDialog::onCmdSetVariable(), resetChanges(), GNECalibratorFlowDialog::updateCalibratorFlowValues(), GNECalibratorDialog::updateFlowAndLabelButton(), GNECalibratorDialog::updateFlowTable(), GNERerouterDialog::updateIntervalTable(), GNECalibratorDialog::updateRouteTable(), GNEVariableSpeedSignDialog::updateTableSteps(), and GNECalibratorDialog::updateVehicleTypeTable().

◆ myNumberOfChanges

int GNEAdditionalDialog::myNumberOfChanges
private

number of GNEChanges_... in dialog

Definition at line 119 of file GNEAdditionalDialog.h.

Referenced by initChanges().

◆ myResetButton

FXButton* GNEAdditionalDialog::myResetButton
private

cancel button

Definition at line 113 of file GNEAdditionalDialog.h.

◆ myUpdatingElement

bool GNEAdditionalDialog::myUpdatingElement
protected

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: