SUMO - Simulation of Urban MObility
GNEAdditionalDialog Class Referenceabstract

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

#include <GNEAdditionalDialog.h>

Inheritance diagram for GNEAdditionalDialog:
Inheritance graph
Collaboration diagram for GNEAdditionalDialog:
Collaboration graph

Public Member Functions

 GNEAdditionalDialog (GNEAdditional *parent, int width, int height)
 FOX-declaration abstract. More...
 
 ~GNEAdditionalDialog ()
 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 changeAdditionalDialogHeader (const std::string &newHeader)
 change additional dialog header More...
 
 GNEAdditionalDialog ()
 FOX needs this. 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...
 

Private Member Functions

 GNEAdditionalDialog (const GNEAdditionalDialog &)=delete
 Invalidated copy constructor. More...
 
GNEAdditionalDialogoperator= (const GNEAdditionalDialog &)=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...
 
GNEUndoListmyUndoList
 pointer to UndoList More...
 

Detailed Description

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

Definition at line 51 of file GNEAdditionalDialog.h.

Constructor & Destructor Documentation

◆ GNEAdditionalDialog() [1/3]

◆ ~GNEAdditionalDialog()

GNEAdditionalDialog::~GNEAdditionalDialog ( )

destructor

Definition at line 79 of file GNEAdditionalDialog.cpp.

◆ GNEAdditionalDialog() [2/3]

GNEAdditionalDialog::GNEAdditionalDialog ( )
inlineprotected

FOX needs this.

Definition at line 83 of file GNEAdditionalDialog.h.

◆ GNEAdditionalDialog() [3/3]

GNEAdditionalDialog::GNEAdditionalDialog ( const GNEAdditionalDialog )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ acceptChanges()

◆ cancelChanges()

◆ changeAdditionalDialogHeader()

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

change additional dialog header

Definition at line 108 of file GNEAdditionalDialog.cpp.

◆ initChanges()

void GNEAdditionalDialog::initChanges ( )
protected

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

Definition at line 115 of file GNEAdditionalDialog.cpp.

References GNEUndoList::currentCommandGroupSize(), myChangesDescription, myNumberOfChanges, myUndoList, and GNEUndoList::p_begin().

◆ onCmdAccept()

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

◆ onCmdCancel()

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

◆ onCmdReset()

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

◆ onKeyPress()

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

event after press a key

Definition at line 96 of file GNEAdditionalDialog.cpp.

◆ onKeyRelease()

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

event after release a key

Definition at line 102 of file GNEAdditionalDialog.cpp.

◆ openAsModalDialog()

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

execute dialog as modal

Definition at line 83 of file GNEAdditionalDialog.cpp.

◆ operator=()

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

Invalidated assignment operator.

◆ resetChanges()

Field Documentation

◆ myAcceptButton

FXButton* GNEAdditionalDialog::myAcceptButton
private

accept button

Definition at line 108 of file GNEAdditionalDialog.h.

◆ myCancelButton

FXButton* GNEAdditionalDialog::myCancelButton
private

cancel button

Definition at line 111 of file GNEAdditionalDialog.h.

◆ myChangesDescription

std::string GNEAdditionalDialog::myChangesDescription
private

description of changes did in this additional dialog

Definition at line 117 of file GNEAdditionalDialog.h.

Referenced by initChanges(), and resetChanges().

◆ myContentFrame

FXVerticalFrame* GNEAdditionalDialog::myContentFrame
protected

frame for contents

Definition at line 86 of file GNEAdditionalDialog.h.

◆ myNumberOfChanges

int GNEAdditionalDialog::myNumberOfChanges
private

number of GNEChanges_... in dialog

Definition at line 120 of file GNEAdditionalDialog.h.

Referenced by initChanges().

◆ myResetButton

FXButton* GNEAdditionalDialog::myResetButton
private

cancel button

Definition at line 114 of file GNEAdditionalDialog.h.

◆ myUndoList

GNEUndoList* GNEAdditionalDialog::myUndoList
private

pointer to UndoList

Definition at line 123 of file GNEAdditionalDialog.h.

Referenced by acceptChanges(), cancelChanges(), initChanges(), and resetChanges().


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