Eclipse SUMO - Simulation of Urban MObility
GNEDemandElementDialog Class Referenceabstract

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

#include <GNEDemandElementDialog.h>

Inheritance diagram for GNEDemandElementDialog:
Collaboration diagram for GNEDemandElementDialog:

Public Member Functions

GNEDemandElementgetEditedDemandElement () const
 get edited DemandElement More...
 
 GNEDemandElementDialog (GNEDemandElement *parent, bool updatingElement, int width, int height)
 FOX-declaration abstract. More...
 
 ~GNEDemandElementDialog ()
 destructor More...
 
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 More...
 
virtual long onCmdReset (FXObject *, FXSelector, void *)=0
 event after press cancel button More...
 
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 changeDemandElementDialogHeader (const std::string &newHeader)
 change additional dialog header 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

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

Private Member Functions

 GNEDemandElementDialog (const GNEDemandElementDialog &)=delete
 Invalidated copy constructor. More...
 
GNEDemandElementDialogoperator= (const GNEDemandElementDialog &)=delete
 Invalidated assignment operator. More...
 

Private Attributes

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

Detailed Description

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

Definition at line 44 of file GNEDemandElementDialog.h.

Constructor & Destructor Documentation

◆ GNEDemandElementDialog() [1/2]

◆ ~GNEDemandElementDialog()

GNEDemandElementDialog::~GNEDemandElementDialog ( )

destructor

Definition at line 70 of file GNEDemandElementDialog.cpp.

◆ GNEDemandElementDialog() [2/2]

GNEDemandElementDialog::GNEDemandElementDialog ( const GNEDemandElementDialog )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ acceptChanges()

void GNEDemandElementDialog::acceptChanges ( )
protected

◆ cancelChanges()

void GNEDemandElementDialog::cancelChanges ( )
protected

◆ changeDemandElementDialogHeader()

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

change additional dialog header

Definition at line 108 of file GNEDemandElementDialog.cpp.

Referenced by GNEVehicleTypeDialog::GNEVehicleTypeDialog().

◆ getEditedDemandElement()

GNEDemandElement * GNEDemandElementDialog::getEditedDemandElement ( ) const

get edited DemandElement

Definition at line 90 of file GNEDemandElementDialog.cpp.

References myEditedDemandElement.

◆ initChanges()

void GNEDemandElementDialog::initChanges ( )
protected

◆ onCmdAccept()

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

Implemented in GNEVehicleTypeDialog, and GNERouteDialog.

Referenced by FXDEFMAP().

◆ onCmdCancel()

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

event after press cancel button

Implemented in GNEVehicleTypeDialog, and GNERouteDialog.

Referenced by FXDEFMAP().

◆ onCmdReset()

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

event after press cancel button

Implemented in GNEVehicleTypeDialog, and GNERouteDialog.

Referenced by FXDEFMAP().

◆ onKeyPress()

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

event after press a key

Definition at line 96 of file GNEDemandElementDialog.cpp.

Referenced by FXDEFMAP().

◆ onKeyRelease()

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

event after release a key

Definition at line 102 of file GNEDemandElementDialog.cpp.

Referenced by FXDEFMAP().

◆ openAsModalDialog()

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

execute dialog as modal

Definition at line 77 of file GNEDemandElementDialog.cpp.

Referenced by GNEVehicleTypeDialog::GNEVehicleTypeDialog().

◆ operator=()

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

Invalidated assignment operator.

◆ resetChanges()

void GNEDemandElementDialog::resetChanges ( )
protected

Field Documentation

◆ myAcceptButton

FXButton* GNEDemandElementDialog::myAcceptButton
private

accept button

Definition at line 109 of file GNEDemandElementDialog.h.

◆ myCancelButton

FXButton* GNEDemandElementDialog::myCancelButton
private

cancel button

Definition at line 112 of file GNEDemandElementDialog.h.

◆ myChangesDescription

std::string GNEDemandElementDialog::myChangesDescription
private

description of changes did in this additional dialog

Definition at line 118 of file GNEDemandElementDialog.h.

Referenced by initChanges(), and resetChanges().

◆ myContentFrame

FXVerticalFrame* GNEDemandElementDialog::myContentFrame
protected

frame for contents

Definition at line 87 of file GNEDemandElementDialog.h.

Referenced by GNEVehicleTypeDialog::GNEVehicleTypeDialog().

◆ myEditedDemandElement

◆ myNumberOfChanges

int GNEDemandElementDialog::myNumberOfChanges
private

number of GNEChanges_... in dialog

Definition at line 121 of file GNEDemandElementDialog.h.

Referenced by initChanges().

◆ myResetButton

FXButton* GNEDemandElementDialog::myResetButton
private

cancel button

Definition at line 115 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 84 of file GNEDemandElementDialog.h.

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


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