Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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=GUIDesignTextColorBlack)
 append item with given text and icon
void clearItems ()
 clear items
FXWindow * getFXWindow ()
 get FXWindows associated with this MFXTreeListDynamic
FXTreeItemDynamicgetItem (FXint index) const
 Get item.
FXTreeItem * getItemAt (FXint x, FXint y) const
 Get item at x,y, if any.
FXint getNumItems ()
 get num items
FXint getSelectedIndex ()
 getSelected item index
void hide ()
 Hide MFXTreeListDynamic.
 MFXTreeListDynamic (FXComposite *p, FXObject *tgt, FXSelector sel, FXuint opts)
 FOX-declaration.
FXTreeItem * prependItem (FXTreeItem *father, const FXString &text, FXIcon *oi, FXColor tColor=GUIDesignTextColorBlack)
 prepend item with given text and icon
void resetSelectedItem ()
 reset selected item
void show ()
 Show MFXTreeListDynamic.
void update ()
 update
FOX calls
long onLeftBtnPress (FXObject *, FXSelector, void *)

Protected Member Functions

 MFXTreeListDynamic ()
 default constructor

Protected Attributes

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

Private Member Functions

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

Detailed Description

MFXTreeListDynamic.

Definition at line 52 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.

Referenced by MFXTreeListDynamic(), and operator=().

Here is the caller graph for this function:

◆ 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.

References MFXTreeListDynamic().

Member Function Documentation

◆ appendItem()

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

append item with given text and icon

Definition at line 152 of file MFXTreeListDynamic.cpp.

References myFXTreeItemDynamicItems, and FXTreeItemDynamic::setTextColor().

◆ clearItems()

void MFXTreeListDynamic::clearItems ( )

clear items

Definition at line 121 of file MFXTreeListDynamic.cpp.

References myFXTreeItemDynamicItems.

◆ getFXWindow()

FXWindow * MFXTreeListDynamic::getFXWindow ( )

get FXWindows associated with this MFXTreeListDynamic

Definition at line 164 of file MFXTreeListDynamic.cpp.

◆ 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.

◆ 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.

◆ 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.

References MFXTreeListDynamic().

◆ prependItem()

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

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.

◆ 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 106 of file MFXTreeListDynamic.h.

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

◆ mySelectedItem

FXint MFXTreeListDynamic::mySelectedItem = -1
protected

selected item

Definition at line 109 of file MFXTreeListDynamic.h.

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


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