Eclipse SUMO - Simulation of Urban MObility
MFXTreeListDynamic Class Reference

MFXTreeListDynamic. More...

#include <MFXTreeListDynamic.h>

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

Public Member Functions

FXTreeItem * appendItem (FXTreeItem *father, const FXString &text, FXIcon *oi, FXColor tColor=FXRGB(0, 0, 0))
 append item with given text and icon More...
 
void clearItems ()
 clear items More...
 
FXWindow * getFXWindow ()
 get FXWindows associated with this MFXTreeListDynamic 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 MFXTreeListDynamic. More...
 
 MFXTreeListDynamic (FXComposite *p, FXObject *tgt, FXSelector sel, FXuint opts)
 FOX-declaration. More...
 
FXTreeItem * prependItem (FXTreeItem *father, const FXString &text, FXIcon *oi, FXColor tColor=FXRGB(0, 0, 0))
 prepend item with given text and icon More...
 
void resetSelectedItem ()
 reset selected item More...
 
void show ()
 Show MFXTreeListDynamic. More...
 
void update ()
 update More...
 
FOX calls
long onLeftBtnPress (FXObject *, FXSelector, void *)
 

Protected Member Functions

 MFXTreeListDynamic ()
 default constructor More...
 

Protected Attributes

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

Private Member Functions

 MFXTreeListDynamic (const MFXTreeListDynamic &)=delete
 Invalidated copy constructor. More...
 
MFXTreeListDynamicoperator= (const MFXTreeListDynamic &)=delete
 Invalidated assignment operator. More...
 

Detailed Description

MFXTreeListDynamic.

Definition at line 48 of file MFXTreeListDynamic.h.

Constructor & Destructor Documentation

◆ MFXTreeListDynamic() [1/3]

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

FOX-declaration.

Constructor

Definition at line 92 of file MFXTreeListDynamic.cpp.

◆ MFXTreeListDynamic() [2/3]

MFXTreeListDynamic::MFXTreeListDynamic ( )
protected

default constructor

Definition at line 206 of file MFXTreeListDynamic.cpp.

◆ MFXTreeListDynamic() [3/3]

MFXTreeListDynamic::MFXTreeListDynamic ( const MFXTreeListDynamic )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ appendItem()

FXTreeItem * MFXTreeListDynamic::appendItem ( FXTreeItem *  father,
const FXString &  text,
FXIcon *  oi,
FXColor  tColor = FXRGB(0, 0, 0) 
)

append item with given text and icon

Definition at line 152 of file MFXTreeListDynamic.cpp.

References myFXTreeItemDynamicItems, and FXTreeItemDynamic::setTextColor().

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

Here is the caller graph for this function:

◆ clearItems()

void MFXTreeListDynamic::clearItems ( )

clear items

Definition at line 121 of file MFXTreeListDynamic.cpp.

References myFXTreeItemDynamicItems.

Referenced by GNEElementTree::refreshHierarchicalElementTree().

Here is the caller graph for this function:

◆ getFXWindow()

FXWindow * MFXTreeListDynamic::getFXWindow ( )

get FXWindows associated with this MFXTreeListDynamic

Definition at line 164 of file MFXTreeListDynamic.cpp.

Referenced by GNEElementTree::createPopUpMenu().

Here is the caller graph for this function:

◆ getItem()

FXTreeItemDynamic * MFXTreeListDynamic::getItem ( FXint  index) const

Get item.

Definition at line 176 of file MFXTreeListDynamic.cpp.

References myFXTreeItemDynamicItems.

◆ getItemAt()

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

Get item at x,y, if any.

Definition at line 170 of file MFXTreeListDynamic.cpp.

Referenced by GNEElementTree::onCmdShowChildMenu().

Here is the caller graph for this function:

◆ getNumItems()

FXint MFXTreeListDynamic::getNumItems ( )

get num items

Definition at line 128 of file MFXTreeListDynamic.cpp.

◆ getSelectedIndex()

FXint MFXTreeListDynamic::getSelectedIndex ( )

getSelected item index

Definition at line 134 of file MFXTreeListDynamic.cpp.

References mySelectedItem.

◆ hide()

void MFXTreeListDynamic::hide ( )

Hide MFXTreeListDynamic.

Definition at line 107 of file MFXTreeListDynamic.cpp.

Referenced by GNEElementTree::hideHierarchicalElementTree().

Here is the caller graph for this function:

◆ onLeftBtnPress()

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

Definition at line 191 of file MFXTreeListDynamic.cpp.

References myFXTreeItemDynamicItems, and mySelectedItem.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

◆ prependItem()

FXTreeItem * MFXTreeListDynamic::prependItem ( FXTreeItem *  father,
const FXString &  text,
FXIcon *  oi,
FXColor  tColor = FXRGB(0, 0, 0) 
)

prepend item with given text and icon

Definition at line 140 of file MFXTreeListDynamic.cpp.

References myFXTreeItemDynamicItems, and FXTreeItemDynamic::setTextColor().

◆ resetSelectedItem()

void MFXTreeListDynamic::resetSelectedItem ( )

reset selected item

Definition at line 182 of file MFXTreeListDynamic.cpp.

References myFXTreeItemDynamicItems, and mySelectedItem.

◆ show()

void MFXTreeListDynamic::show ( )

Show MFXTreeListDynamic.

Definition at line 98 of file MFXTreeListDynamic.cpp.

Referenced by GNEElementTree::showHierarchicalElementTree().

Here is the caller graph for this function:

◆ update()

void MFXTreeListDynamic::update ( )

update

Definition at line 114 of file MFXTreeListDynamic.cpp.

Field Documentation

◆ myFXTreeItemDynamicItems

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

list with current FXTreeItemDynamic elements

Definition at line 102 of file MFXTreeListDynamic.h.

Referenced by appendItem(), clearItems(), getItem(), onLeftBtnPress(), prependItem(), and resetSelectedItem().

◆ mySelectedItem

FXint MFXTreeListDynamic::mySelectedItem = -1
protected

selected item

Definition at line 105 of file MFXTreeListDynamic.h.

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


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