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

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

#include <GNEDemandElementDialog.h>

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

Public Member Functions

GNEDemandElement * getEditedDemandElement () const
 get edited DemandElement
 
 GNEDemandElementDialog (GNEDemandElement *parent, bool updatingElement, int width, int height)
 FOX-declaration abstract.
 
 ~GNEDemandElementDialog ()
 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
 
long onCmdFocusOnFrame (FXObject *sender, FXSelector sel, void *ptr)
 focus on frame
 

Protected Member Functions

void acceptChanges ()
 Accept changes did in this dialog.
 
void cancelChanges ()
 Cancel changes did in this dialog.
 
void changeDemandElementDialogHeader (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
 
GNEDemandElement * myEditedDemandElement
 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

 GNEDemandElementDialog (const GNEDemandElementDialog &)=delete
 Invalidated copy constructor.
 
GNEDemandElementDialog & operator= (const GNEDemandElementDialog &)=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
 
FXButton * myFocusButton
 focus button
 
int myNumberOfChanges
 number of GNEChanges_... in dialog
 
FXButton * myResetButton
 cancel button
 

Detailed Description

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

Definition at line 42 of file GNEDemandElementDialog.h.

Constructor & Destructor Documentation

◆ GNEDemandElementDialog() [1/2]

GNEDemandElementDialog::GNEDemandElementDialog ( GNEDemandElement *  parent,
bool  updatingElement,
int  width,
int  height 
)

◆ ~GNEDemandElementDialog()

GNEDemandElementDialog::~GNEDemandElementDialog ( )

destructor

Definition at line 72 of file GNEDemandElementDialog.cpp.

◆ GNEDemandElementDialog() [2/2]

GNEDemandElementDialog::GNEDemandElementDialog ( const GNEDemandElementDialog &  )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ acceptChanges()

void GNEDemandElementDialog::acceptChanges ( )
protected

Accept changes did in this dialog.

Definition at line 133 of file GNEDemandElementDialog.cpp.

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

Referenced by GNERouteDialog::onCmdAccept(), and GNEVehicleTypeDialog::onCmdAccept().

Here is the caller graph for this function:

◆ cancelChanges()

void GNEDemandElementDialog::cancelChanges ( )
protected

Cancel changes did in this dialog.

Definition at line 144 of file GNEDemandElementDialog.cpp.

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

Referenced by GNERouteDialog::onCmdCancel(), and GNEVehicleTypeDialog::onCmdCancel().

Here is the caller graph for this function:

◆ changeDemandElementDialogHeader()

void GNEDemandElementDialog::changeDemandElementDialogHeader ( const std::string &  newHeader)
protected

change additional dialog header

Definition at line 117 of file GNEDemandElementDialog.cpp.

Referenced by GNEVehicleTypeDialog::GNEVehicleTypeDialog().

Here is the caller graph for this function:

◆ getEditedDemandElement()

GNEDemandElement * GNEDemandElementDialog::getEditedDemandElement ( ) const

get edited DemandElement

Definition at line 92 of file GNEDemandElementDialog.cpp.

References myEditedDemandElement.

◆ initChanges()

void GNEDemandElementDialog::initChanges ( )
protected

init a new group of changes that will be do it in dialog

Definition at line 124 of file GNEDemandElementDialog.cpp.

References GNEUndoList::begin(), GNEUndoList::currentCommandGroupSize(), GNETagProperties::getGUIIcon(), GNEAttributeCarrier::getNet(), GNEAttributeCarrier::getTagProperty(), GNEViewNet::getUndoList(), GNENet::getViewNet(), myChangesDescription, myEditedDemandElement, and myNumberOfChanges.

Referenced by GNEVehicleTypeDialog::GNEVehicleTypeDialog().

Here is the caller graph for this function:

◆ onCmdAccept()

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

Implemented in GNERouteDialog, and GNEVehicleTypeDialog.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCancel()

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

event after press cancel button

Implemented in GNERouteDialog, and GNEVehicleTypeDialog.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdFocusOnFrame()

long GNEDemandElementDialog::onCmdFocusOnFrame ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

focus on frame

Definition at line 110 of file GNEDemandElementDialog.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdReset()

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

event after press cancel button

Implemented in GNERouteDialog, and GNEVehicleTypeDialog.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onKeyPress()

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

event after press a key

Definition at line 98 of file GNEDemandElementDialog.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onKeyRelease()

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

event after release a key

Definition at line 104 of file GNEDemandElementDialog.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ openAsModalDialog()

FXint GNEDemandElementDialog::openAsModalDialog ( FXuint  placement = PLACEMENT_CURSOR)
protected

execute dialog as modal

Definition at line 79 of file GNEDemandElementDialog.cpp.

Referenced by GNEVehicleTypeDialog::GNEVehicleTypeDialog().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

◆ resetChanges()

void GNEDemandElementDialog::resetChanges ( )
protected

reset changes did in this dialog.

Definition at line 150 of file GNEDemandElementDialog.cpp.

References GNEUndoList::abortLastChangeGroup(), GNEUndoList::begin(), GNETagProperties::getGUIIcon(), GNEAttributeCarrier::getNet(), GNEAttributeCarrier::getTagProperty(), GNEViewNet::getUndoList(), GNENet::getViewNet(), myChangesDescription, and myEditedDemandElement.

Referenced by GNERouteDialog::onCmdReset(), and GNEVehicleTypeDialog::onCmdReset().

Here is the caller graph for this function:

Field Documentation

◆ myAcceptButton

FXButton* GNEDemandElementDialog::myAcceptButton
private

accept button

Definition at line 110 of file GNEDemandElementDialog.h.

◆ myCancelButton

FXButton* GNEDemandElementDialog::myCancelButton
private

cancel button

Definition at line 113 of file GNEDemandElementDialog.h.

◆ myChangesDescription

std::string GNEDemandElementDialog::myChangesDescription
private

description of changes did in this additional dialog

Definition at line 122 of file GNEDemandElementDialog.h.

Referenced by initChanges(), and resetChanges().

◆ myContentFrame

FXVerticalFrame* GNEDemandElementDialog::myContentFrame
protected

frame for contents

Definition at line 88 of file GNEDemandElementDialog.h.

Referenced by GNEVehicleTypeDialog::GNEVehicleTypeDialog().

◆ myEditedDemandElement

◆ myFocusButton

FXButton* GNEDemandElementDialog::myFocusButton
private

focus button

Definition at line 119 of file GNEDemandElementDialog.h.

◆ myNumberOfChanges

int GNEDemandElementDialog::myNumberOfChanges
private

number of GNEChanges_... in dialog

Definition at line 125 of file GNEDemandElementDialog.h.

Referenced by initChanges().

◆ myResetButton

FXButton* GNEDemandElementDialog::myResetButton
private

cancel button

Definition at line 116 of file GNEDemandElementDialog.h.

◆ myUpdatingElement

bool GNEDemandElementDialog::myUpdatingElement
protected

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

Definition at line 85 of file GNEDemandElementDialog.h.

Referenced by GNEVehicleTypeDialog::GNEVehicleTypeDialog(), GNERouteDialog::onCmdAccept(), and GNEVehicleTypeDialog::onCmdAccept().


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