Eclipse SUMO - Simulation of Urban MObility
GNEUndoListDialog Class Reference

Dialog for edit rerouters. More...

#include <GNEUndoListDialog.h>

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

Data Structures

class  GUIRow
 row used for show GUI row elements More...
 
struct  UndoListRow
 

Public Member Functions

 GNEUndoListDialog (GNEApplicationWindow *GNEApp)
 FOX-declaration. More...
 
void hide ()
 hide window More...
 
void setFocus ()
 Move the focus to this window. More...
 
void show ()
 show window More...
 
bool shown () const
 check if dialog is shown More...
 
 ~GNEUndoListDialog ()
 destructor More...
 
FOX-callbacks

event after press close button

long onCmdClose (FXObject *, FXSelector, void *)
 
long onCmdSelectRow (FXObject *, FXSelector, void *)
 event after select row More...
 

Protected Member Functions

void recalcList ()
 recalc list destroying and creating rows More...
 
void updateList ()
 FOX needs this. More...
 

Protected Attributes

GNEApplicationWindowmyGNEApp
 pointer to GNEApplicationWindow More...
 
std::vector< GUIRow * > myGUIRows
 vector with rows More...
 
FXVerticalFrame * myRowFrame = nullptr
 frame for rows More...
 

Private Member Functions

 GNEUndoListDialog (const GNEUndoListDialog &)=delete
 Invalidated copy constructor. More...
 
GNEUndoListDialogoperator= (const GNEUndoListDialog &)=delete
 Invalidated assignment operator. More...
 

Detailed Description

Dialog for edit rerouters.

Definition at line 43 of file GNEUndoListDialog.h.

Constructor & Destructor Documentation

◆ GNEUndoListDialog() [1/2]

◆ ~GNEUndoListDialog()

GNEUndoListDialog::~GNEUndoListDialog ( )

destructor

Definition at line 63 of file GNEUndoListDialog.cpp.

◆ GNEUndoListDialog() [2/2]

GNEUndoListDialog::GNEUndoListDialog ( const GNEUndoListDialog )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ hide()

void GNEUndoListDialog::hide ( )

hide window

Definition at line 79 of file GNEUndoListDialog.cpp.

References myGNEApp.

Referenced by onCmdClose(), and GNEApplicationWindow::onUpdOpenUndoListDialog().

Here is the caller graph for this function:

◆ onCmdClose()

long GNEUndoListDialog::onCmdClose ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 99 of file GNEUndoListDialog.cpp.

References hide().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSelectRow()

long GNEUndoListDialog::onCmdSelectRow ( FXObject *  obj,
FXSelector  ,
void *   
)

event after select row

Definition at line 107 of file GNEUndoListDialog.cpp.

References GNEApplicationWindow::getUndoList(), myGNEApp, myGUIRows, GNEUndoList::redo(), GNEUndoList::undo(), and updateList().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

◆ recalcList()

void GNEUndoListDialog::recalcList ( )
protected

recalc list destroying and creating rows

Definition at line 174 of file GNEUndoListDialog.cpp.

References GNEUndoList::Iterator::end(), GUIMainWindow::getStaticTooltipView(), GNEApplicationWindow::getUndoList(), myGNEApp, myGUIRows, myRowFrame, and updateList().

Referenced by show().

Here is the caller graph for this function:

◆ setFocus()

void GNEUndoListDialog::setFocus ( )

Move the focus to this window.

Definition at line 93 of file GNEUndoListDialog.cpp.

Referenced by GNEApplicationWindow::onCmdOpenUndoListDialog().

Here is the caller graph for this function:

◆ show()

void GNEUndoListDialog::show ( )

show window

Definition at line 67 of file GNEUndoListDialog.cpp.

References myGNEApp, and recalcList().

Referenced by GNEApplicationWindow::onCmdOpenUndoListDialog().

Here is the caller graph for this function:

◆ shown()

bool GNEUndoListDialog::shown ( ) const

check if dialog is shown

Definition at line 87 of file GNEUndoListDialog.cpp.

Referenced by GNEApplicationWindow::onCmdOpenUndoListDialog(), and GNEApplicationWindow::onUpdOpenUndoListDialog().

Here is the caller graph for this function:

◆ updateList()

void GNEUndoListDialog::updateList ( )
protected

FOX needs this.

update list destroying and creating rows

Definition at line 132 of file GNEUndoListDialog.cpp.

References GNEUndoList::Iterator::end(), GNEUndoList::Iterator::getDescription(), GNEUndoList::Iterator::getIcon(), GNEUndoList::Iterator::getTimeStamp(), GNEApplicationWindow::getUndoList(), myGNEApp, and myGUIRows.

Referenced by onCmdSelectRow(), and recalcList().

Here is the caller graph for this function:

Field Documentation

◆ myGNEApp

GNEApplicationWindow* GNEUndoListDialog::myGNEApp
protected

pointer to GNEApplicationWindow

Definition at line 150 of file GNEUndoListDialog.h.

Referenced by hide(), onCmdSelectRow(), recalcList(), show(), and updateList().

◆ myGUIRows

std::vector<GUIRow*> GNEUndoListDialog::myGUIRows
protected

vector with rows

Definition at line 156 of file GNEUndoListDialog.h.

Referenced by onCmdSelectRow(), recalcList(), and updateList().

◆ myRowFrame

FXVerticalFrame* GNEUndoListDialog::myRowFrame = nullptr
protected

frame for rows

Definition at line 153 of file GNEUndoListDialog.h.

Referenced by recalcList().


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