Eclipse SUMO - Simulation of Urban MObility
FXTreeListDinamic Class Reference

FXTreeListDinamic. More...

#include <FXTreeListDinamic.h>

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

Public Member Functions

void clearItems ()
 clear items More...
 
 FXTreeListDinamic (FXComposite *p, FXObject *tgt, FXSelector sel, FXuint opts)
 FOX-declaration. More...
 
FXWindow * getFXWindow ()
 get FXWindows associated with this FXTreeListDinamic More...
 
FXTreeItemDynamicgetItem (FXint index) const
 Get item. More...
 
FXTreeItem * getItemAt (FXint x, FXint y) const
 Get item at x,y, if any. More...
 
FXint getNumItems ()
 get num items More...
 
FXint getSelectedIndex ()
 getSelected item index More...
 
void hide ()
 Hide FXTreeListDinamic. More...
 
FXTreeItem * insertItem (FXTreeItem *father, const FXString &text, FXIcon *oi)
 Insert item with given text and icon. More...
 
void resetSelectedItem ()
 reset selected item More...
 
void show ()
 Show FXTreeListDinamic. More...
 
void update ()
 update More...
 
FOX calls
long onLeftBtnPress (FXObject *, FXSelector, void *)
 

Protected Member Functions

 FXTreeListDinamic ()
 default constructor More...
 

Protected Attributes

std::vector< FXTreeItemDynamic * > myFXTreeItemDynamicItems
 list with current FXTreeItemDynamic elements More...
 
FXint mySelectedItem = -1
 selected item More...
 

Private Member Functions

 FXTreeListDinamic (const FXTreeListDinamic &)=delete
 Invalidated copy constructor. More...
 
FXTreeListDinamicoperator= (const FXTreeListDinamic &)=delete
 Invalidated assignment operator. More...
 

Detailed Description

FXTreeListDinamic.

Definition at line 48 of file FXTreeListDinamic.h.

Constructor & Destructor Documentation

◆ FXTreeListDinamic() [1/3]

FXTreeListDinamic::FXTreeListDinamic ( FXComposite *  p,
FXObject *  tgt,
FXSelector  sel,
FXuint  opts 
)

FOX-declaration.

Constructor

Definition at line 92 of file FXTreeListDinamic.cpp.

◆ FXTreeListDinamic() [2/3]

FXTreeListDinamic::FXTreeListDinamic ( )
protected

default constructor

Definition at line 194 of file FXTreeListDinamic.cpp.

◆ FXTreeListDinamic() [3/3]

FXTreeListDinamic::FXTreeListDinamic ( const FXTreeListDinamic )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ clearItems()

void FXTreeListDinamic::clearItems ( )

clear items

Definition at line 121 of file FXTreeListDinamic.cpp.

References myFXTreeItemDynamicItems.

Referenced by GNEElementTree::refreshHierarchicalElementTree(), and GNEUndoListDialog::updateList().

Here is the caller graph for this function:

◆ getFXWindow()

FXWindow * FXTreeListDinamic::getFXWindow ( )

get FXWindows associated with this FXTreeListDinamic

Definition at line 152 of file FXTreeListDinamic.cpp.

Referenced by GNEElementTree::createPopUpMenu().

Here is the caller graph for this function:

◆ getItem()

FXTreeItemDynamic * FXTreeListDinamic::getItem ( FXint  index) const

Get item.

Definition at line 164 of file FXTreeListDinamic.cpp.

References myFXTreeItemDynamicItems.

Referenced by GNEUndoListDialog::onCmdUpdate().

Here is the caller graph for this function:

◆ getItemAt()

FXTreeItem * FXTreeListDinamic::getItemAt ( FXint  x,
FXint  y 
) const

Get item at x,y, if any.

Definition at line 158 of file FXTreeListDinamic.cpp.

Referenced by GNEElementTree::onCmdShowChildMenu().

Here is the caller graph for this function:

◆ getNumItems()

FXint FXTreeListDinamic::getNumItems ( )

get num items

Definition at line 128 of file FXTreeListDinamic.cpp.

◆ getSelectedIndex()

FXint FXTreeListDinamic::getSelectedIndex ( )

getSelected item index

Definition at line 134 of file FXTreeListDinamic.cpp.

References mySelectedItem.

Referenced by GNEUndoListDialog::onCmdUpdate().

Here is the caller graph for this function:

◆ hide()

void FXTreeListDinamic::hide ( )

Hide FXTreeListDinamic.

Definition at line 107 of file FXTreeListDinamic.cpp.

Referenced by GNEElementTree::hideHierarchicalElementTree().

Here is the caller graph for this function:

◆ insertItem()

FXTreeItem * FXTreeListDinamic::insertItem ( FXTreeItem *  father,
const FXString &  text,
FXIcon *  oi 
)

Insert item with given text and icon.

Definition at line 140 of file FXTreeListDinamic.cpp.

References myFXTreeItemDynamicItems.

Referenced by GNEElementTree::addListItem(), GNEElementTree::showAttributeCarrierParents(), and GNEUndoListDialog::updateList().

Here is the caller graph for this function:

◆ onLeftBtnPress()

long FXTreeListDinamic::onLeftBtnPress ( FXObject *  obj,
FXSelector  sel,
void *  ptr 
)

Definition at line 179 of file FXTreeListDinamic.cpp.

References myFXTreeItemDynamicItems, and mySelectedItem.

◆ operator=()

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

Invalidated assignment operator.

◆ resetSelectedItem()

void FXTreeListDinamic::resetSelectedItem ( )

reset selected item

Definition at line 170 of file FXTreeListDinamic.cpp.

References myFXTreeItemDynamicItems, and mySelectedItem.

Referenced by GNEUndoListDialog::onCmdClose().

Here is the caller graph for this function:

◆ show()

void FXTreeListDinamic::show ( )

Show FXTreeListDinamic.

Definition at line 98 of file FXTreeListDinamic.cpp.

Referenced by GNEElementTree::showHierarchicalElementTree().

Here is the caller graph for this function:

◆ update()

void FXTreeListDinamic::update ( )

update

Definition at line 114 of file FXTreeListDinamic.cpp.

Referenced by GNEUndoListDialog::onCmdUpdate().

Here is the caller graph for this function:

Field Documentation

◆ myFXTreeItemDynamicItems

std::vector<FXTreeItemDynamic*> FXTreeListDinamic::myFXTreeItemDynamicItems
protected

list with current FXTreeItemDynamic elements

Definition at line 99 of file FXTreeListDinamic.h.

Referenced by clearItems(), getItem(), insertItem(), onLeftBtnPress(), and resetSelectedItem().

◆ mySelectedItem

FXint FXTreeListDinamic::mySelectedItem = -1
protected

selected item

Definition at line 102 of file FXTreeListDinamic.h.

Referenced by getSelectedIndex(), onLeftBtnPress(), and resetSelectedItem().


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