Eclipse SUMO - Simulation of Urban MObility
GNETAZFrame::TAZSaveChanges Class Reference

#include <GNETAZFrame.h>

Inheritance diagram for GNETAZFrame::TAZSaveChanges:
Collaboration diagram for GNETAZFrame::TAZSaveChanges:

Public Member Functions

void enableButtonsAndBeginUndoList ()
 enable buttons save and cancel changes (And begin Undo List) More...
 
void hideTAZSaveChangesModul ()
 hide TAZ Save Changes Modul More...
 
bool isChangesPending () const
 return true if there is changes to save More...
 
void showTAZSaveChangesModul ()
 show TAZ Save Changes Modul More...
 
 TAZSaveChanges (GNETAZFrame *TAZFrameParent)
 FOX-declaration. More...
 
 ~TAZSaveChanges ()
 destructor More...
 
FOX-callbacks

Called when the user press the button save changes

long onCmdSaveChanges (FXObject *, FXSelector, void *)
 
long onCmdCancelChanges (FXObject *, FXSelector, void *)
 Called when the user press the button cancel changes. More...
 

Protected Member Functions

 TAZSaveChanges ()
 FOX needs this. More...
 

Private Attributes

FXButton * myCancelChangesButton
 FXButton for cancel changes in TAZEdges More...
 
FXButton * mySaveChangesButton
 FXButton for save changes in TAZEdges More...
 
GNETAZFramemyTAZFrameParent
 pointer to TAZFrame parent More...
 

Detailed Description

Definition at line 184 of file GNETAZFrame.h.

Constructor & Destructor Documentation

◆ TAZSaveChanges() [1/2]

GNETAZFrame::TAZSaveChanges::TAZSaveChanges ( GNETAZFrame TAZFrameParent)

FOX-declaration.

constructor

Definition at line 395 of file GNETAZFrame.cpp.

References GUIIconSubSys::getIcon(), GUIDesignButton, ICON_CANCEL, ICON_SAVE, MID_CANCEL, MID_OK, myCancelChangesButton, and mySaveChangesButton.

◆ ~TAZSaveChanges()

GNETAZFrame::TAZSaveChanges::~TAZSaveChanges ( )

destructor

Definition at line 407 of file GNETAZFrame.cpp.

◆ TAZSaveChanges() [2/2]

GNETAZFrame::TAZSaveChanges::TAZSaveChanges ( )
inlineprotected

FOX needs this.

Definition at line 218 of file GNETAZFrame.h.

Member Function Documentation

◆ enableButtonsAndBeginUndoList()

◆ hideTAZSaveChangesModul()

void GNETAZFrame::TAZSaveChanges::hideTAZSaveChangesModul ( )

hide TAZ Save Changes Modul

Definition at line 417 of file GNETAZFrame.cpp.

References GNETAZFrame::hide(), and onCmdCancelChanges().

Referenced by GNETAZFrame::TAZCurrent::setTAZ().

◆ isChangesPending()

bool GNETAZFrame::TAZSaveChanges::isChangesPending ( ) const

return true if there is changes to save

Definition at line 438 of file GNETAZFrame.cpp.

References mySaveChangesButton.

Referenced by GNEViewNet::hotkeyEnter(), and GNETAZFrame::processClick().

◆ onCmdCancelChanges()

long GNETAZFrame::TAZSaveChanges::onCmdCancelChanges ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdSaveChanges()

long GNETAZFrame::TAZSaveChanges::onCmdSaveChanges ( FXObject *  ,
FXSelector  ,
void *   
)

◆ showTAZSaveChangesModul()

void GNETAZFrame::TAZSaveChanges::showTAZSaveChangesModul ( )

show TAZ Save Changes Modul

Definition at line 411 of file GNETAZFrame.cpp.

References GNEFrame::show().

Referenced by GNETAZFrame::TAZCurrent::setTAZ().

Field Documentation

◆ myCancelChangesButton

FXButton* GNETAZFrame::TAZSaveChanges::myCancelChangesButton
private

FXButton for cancel changes in TAZEdges

Definition at line 228 of file GNETAZFrame.h.

Referenced by enableButtonsAndBeginUndoList(), onCmdCancelChanges(), onCmdSaveChanges(), and TAZSaveChanges().

◆ mySaveChangesButton

FXButton* GNETAZFrame::TAZSaveChanges::mySaveChangesButton
private

FXButton for save changes in TAZEdges

Definition at line 225 of file GNETAZFrame.h.

Referenced by enableButtonsAndBeginUndoList(), isChangesPending(), onCmdCancelChanges(), onCmdSaveChanges(), and TAZSaveChanges().

◆ myTAZFrameParent

GNETAZFrame* GNETAZFrame::TAZSaveChanges::myTAZFrameParent
private

pointer to TAZFrame parent

Definition at line 222 of file GNETAZFrame.h.

Referenced by enableButtonsAndBeginUndoList(), onCmdCancelChanges(), and onCmdSaveChanges().


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