Eclipse SUMO - Simulation of Urban MObility
|
#include <MFXTreeListDynamic.h>
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 | |
void | clearItems () |
clear items | |
FXWindow * | getFXWindow () |
get FXWindows associated with this MFXTreeListDynamic | |
FXTreeItemDynamic * | getItem (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=FXRGB(0, 0, 0)) |
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. | |
MFXTreeListDynamic & | operator= (const MFXTreeListDynamic &)=delete |
Invalidated assignment operator. | |
Definition at line 48 of file MFXTreeListDynamic.h.
MFXTreeListDynamic::MFXTreeListDynamic | ( | FXComposite * | p, |
FXObject * | tgt, | ||
FXSelector | sel, | ||
FXuint | opts | ||
) |
|
protected |
default constructor
Definition at line 206 of file MFXTreeListDynamic.cpp.
|
privatedelete |
Invalidated copy constructor.
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(), GNEElementTree::addListItem(), and GNEElementTree::showAttributeCarrierParents().
void MFXTreeListDynamic::clearItems | ( | ) |
clear items
Definition at line 121 of file MFXTreeListDynamic.cpp.
References myFXTreeItemDynamicItems.
Referenced by GNEElementTree::refreshHierarchicalElementTree().
FXWindow * MFXTreeListDynamic::getFXWindow | ( | ) |
get FXWindows associated with this MFXTreeListDynamic
Definition at line 164 of file MFXTreeListDynamic.cpp.
Referenced by GNEElementTree::createPopUpMenu().
FXTreeItemDynamic * MFXTreeListDynamic::getItem | ( | FXint | index | ) | const |
Get item.
Definition at line 176 of file MFXTreeListDynamic.cpp.
References myFXTreeItemDynamicItems.
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().
FXint MFXTreeListDynamic::getNumItems | ( | ) |
get num items
Definition at line 128 of file MFXTreeListDynamic.cpp.
FXint MFXTreeListDynamic::getSelectedIndex | ( | ) |
getSelected item index
Definition at line 134 of file MFXTreeListDynamic.cpp.
References mySelectedItem.
void MFXTreeListDynamic::hide | ( | ) |
Hide MFXTreeListDynamic.
Definition at line 107 of file MFXTreeListDynamic.cpp.
Referenced by GNEElementTree::hideHierarchicalElementTree().
long MFXTreeListDynamic::onLeftBtnPress | ( | FXObject * | obj, |
FXSelector | sel, | ||
void * | ptr | ||
) |
Definition at line 191 of file MFXTreeListDynamic.cpp.
References myFXTreeItemDynamicItems, and mySelectedItem.
Referenced by FXDEFMAP().
|
privatedelete |
Invalidated assignment operator.
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().
void MFXTreeListDynamic::resetSelectedItem | ( | ) |
reset selected item
Definition at line 182 of file MFXTreeListDynamic.cpp.
References myFXTreeItemDynamicItems, and mySelectedItem.
void MFXTreeListDynamic::show | ( | ) |
Show MFXTreeListDynamic.
Definition at line 98 of file MFXTreeListDynamic.cpp.
Referenced by GNEElementTree::showHierarchicalElementTree().
void MFXTreeListDynamic::update | ( | ) |
update
Definition at line 114 of file MFXTreeListDynamic.cpp.
|
protected |
list with current FXTreeItemDynamic elements
Definition at line 102 of file MFXTreeListDynamic.h.
Referenced by appendItem(), clearItems(), getItem(), onLeftBtnPress(), prependItem(), and resetSelectedItem().
|
protected |
selected item
Definition at line 105 of file MFXTreeListDynamic.h.
Referenced by getSelectedIndex(), onLeftBtnPress(), and resetSelectedItem().