![]() |
Eclipse SUMO - Simulation of Urban MObility
|
A list item which allows for custom coloring. More...
#include <MFXListIcon.h>
Public Types | |
enum | { ID_LOOKUPTIMER = FXScrollArea::ID_LAST , ID_LAST } |
FOX declaration. More... | |
Public Member Functions | |
FXint | appendItem (const FXString &text, FXIcon *icon=NULL, void *ptr=NULL, FXbool notify=FALSE) |
Append new item with given text and optional icon, and user-data pointer. | |
FXint | appendItem (MFXListIconItem *item, FXbool notify=FALSE) |
Append a [possibly subclassed] item to the list. | |
bool | canFocus () const |
List widget can receive focus. | |
void | clearItems (FXbool notify=FALSE) |
Remove all items from list. | |
void | create () |
Create server-side resources. | |
FXbool | deselectItem (MFXListIconItem *item, FXbool notify=FALSE) |
Deselect item. | |
void | detach () |
Detach server-side resources. | |
FXint | editItem (FXint index, const FXString &text, FXIcon *icon=NULL, void *ptr=NULL, FXbool notify=FALSE) |
Replace items text, icon, and user-data pointer. | |
int | findItem (const FXString &text) const |
Search items by name (In all items) | |
FXint | getAnchorItem () const |
Return anchor item, if any. | |
FXint | getContentHeight () |
Return content height. | |
FXint | getContentWidth () |
Compute and return content width. | |
FXint | getCurrentItemIndex () const |
Return current item, if any. | |
MFXListIconItem * | getCursorItem () const |
Get item under the cursor, if any. | |
FXint | getDefaultHeight () |
Return default height. | |
FXint | getDefaultWidth () |
Return default width. | |
FXFont * | getFont () const |
Return text font. | |
const FXString & | getHelpText () const |
Get the status line help text for this list. | |
MFXListIconItem * | getItem (FXint index) const |
Return the item at the given index. | |
MFXListIconItem * | getItemAt (FXint y) const |
Return index of item at y, if any. | |
FXint | getItemHeight (FXint index) const |
Return item height. | |
FXint | getItemWidth (FXint index) const |
Return item width. | |
FXint | getNumItems () const |
Return the number of items in the list. | |
FXint | getNumVisible () const |
Return number of visible items. | |
FXColor | getSelBackColor () const |
Return selected text background. | |
FXColor | getSelTextColor () const |
Return selected text color. | |
FXColor | getTextColor () const |
Return normal text color. | |
FXint | getViewableItem () const |
Return viewable item, if any. | |
FXint | hitItem (MFXListIconItem *item, FXint x, FXint y) const |
Return item hit code: 0 no hit; 1 hit the icon; 2 hit the text. | |
FXint | insertItem (FXint index, const FXString &text, FXIcon *icon=NULL, void *ptr=NULL, FXbool notify=FALSE) |
Insert item at index with given text, icon, and user-data pointer. | |
FXint | insertItem (FXint index, MFXListIconItem *item, FXbool notify=FALSE) |
Insert a new [possibly subclassed] item at the give index. | |
FXbool | isItemCurrent (FXint index) const |
Return TRUE if item is current. | |
FXbool | isItemVisible (MFXListIconItem *item) const |
Return TRUE if item is visible. | |
void | killFocus () |
Remove the focus from this window. | |
FXbool | killSelection (FXbool notify=FALSE) |
Deselect all items. | |
void | layout () |
Perform layout. | |
void | makeItemVisible (FXint index) |
Scroll to bring item into view. | |
void | makeItemVisible (MFXListIconItem *item) |
Scroll to bring item into view. | |
MFXListIcon (FXComposite *p, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=LIST_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0) | |
Construct a list with initially no items in it. | |
void | recalc () |
Recalculate layout. | |
void | removeItem (FXint index, FXbool notify=FALSE) |
Remove node from list. | |
FXbool | selectItem (MFXListIconItem *item, FXbool notify=FALSE) |
Select item by index. | |
void | setAnchorItem (MFXListIconItem *item) |
Change anchor item. | |
void | setCurrentItem (MFXListIconItem *item, FXbool notify=FALSE) |
Change current item. | |
void | setFilter (const FXString &value, FXLabel *label) |
filter items in list | |
void | setFocus () |
Move the focus to this window. | |
void | setHelpText (const FXString &text) |
Set the status line help text for this list. | |
FXint | setItem (FXint index, MFXListIconItem *item, FXbool notify=FALSE) |
Replace the item with a [possibly subclassed] item. | |
void | setNumVisible (FXint nvis) |
Change the number of visible items. | |
void | setTextColor (FXColor clr) |
Change normal text color. | |
FXbool | toggleItem (MFXListIconItem *item, FXbool notify=FALSE) |
Toggle item selection state. | |
FXString | tolowerString (const FXString &str) const |
tolower string | |
void | updateItem (MFXListIconItem *item) const |
Repaint item. | |
~MFXListIcon () | |
Destructor. | |
call functions | |
long | onPaint (FXObject *, FXSelector, void *) |
long | onEnter (FXObject *, FXSelector, void *) |
long | onLeave (FXObject *, FXSelector, void *) |
long | onUngrabbed (FXObject *, FXSelector, void *) |
long | onKeyPress (FXObject *, FXSelector, void *) |
long | onKeyRelease (FXObject *, FXSelector, void *) |
long | onLeftBtnPress (FXObject *, FXSelector, void *) |
long | onLeftBtnRelease (FXObject *, FXSelector, void *) |
long | onRightBtnPress (FXObject *, FXSelector, void *) |
long | onRightBtnRelease (FXObject *, FXSelector, void *) |
long | onMotion (FXObject *, FXSelector, void *) |
long | onFocusIn (FXObject *, FXSelector, void *) |
long | onFocusOut (FXObject *, FXSelector, void *) |
long | onAutoScroll (FXObject *, FXSelector, void *) |
long | onClicked (FXObject *, FXSelector, void *) |
long | onDoubleClicked (FXObject *, FXSelector, void *) |
long | onTripleClicked (FXObject *, FXSelector, void *) |
long | onCommand (FXObject *, FXSelector, void *) |
long | onQueryTip (FXObject *, FXSelector, void *) |
long | onQueryHelp (FXObject *, FXSelector, void *) |
long | onTipTimer (FXObject *, FXSelector, void *) |
long | onLookupTimer (FXObject *, FXSelector, void *) |
Protected Member Functions | |
MFXListIconItem * | createItem (const FXString &text, FXIcon *icon, void *ptr) |
create item | |
MFXListIcon () | |
FOX need this. | |
void | recompute () |
recompute list | |
Protected Attributes | |
FXint | anchor = -1 |
Anchor item. | |
MFXListIconItem * | currentItem = nullptr |
Current item. | |
MFXListIconItem * | cursor = nullptr |
Cursor item. | |
FXint | extent = -1 |
Extent item. | |
FXString | filter |
filter | |
FXFont * | font = nullptr |
Font. | |
FXint | grabx = 0 |
Grab point x. | |
FXint | graby = 0 |
Grab point y. | |
FXString | help |
Help text. | |
std::vector< MFXListIconItem * > | itemFiltered |
Selected item list. | |
std::vector< MFXListIconItem * > | items |
Item list. | |
FXint | listHeight = 0 |
List height. | |
FXint | listWidth = 0 |
List width. | |
FXString | lookup |
Lookup string. | |
FXColor | selbackColor = 0 |
Selected back color. | |
FXColor | seltextColor = 0 |
Selected text color. | |
FXbool | state = FALSE |
State of item. | |
FXColor | textColor = 0 |
Text color. | |
MFXListIconItem * | viewable = nullptr |
Viewable item. | |
FXint | visible = 0 |
Number of rows high. | |
Private Types | |
typedef FXint(* | FXCompareFunc) (const FXString &, const FXString &, FXint) |
typedef used for comparing elements | |
Private Member Functions | |
MFXListIcon (const FXList &)=delete | |
invalidate copy constructor | |
MFXListIcon & | operator= (const FXList &)=delete |
invalidate assignement operator | |
bool | showItem (const FXString &itemName) const |
check if filter element | |
A list item which allows for custom coloring.
Definition at line 38 of file MFXListIcon.h.
|
private |
typedef used for comparing elements
Definition at line 322 of file MFXListIcon.h.
anonymous enum |
MFXListIcon::MFXListIcon | ( | FXComposite * | p, |
FXObject * | tgt = NULL , |
||
FXSelector | sel = 0 , |
||
FXuint | opts = LIST_NORMAL , |
||
FXint | x = 0 , |
||
FXint | y = 0 , |
||
FXint | w = 0 , |
||
FXint | h = 0 |
||
) |
Construct a list with initially no items in it.
Definition at line 74 of file MFXListIcon.cpp.
MFXListIcon::~MFXListIcon | ( | ) |
Destructor.
Definition at line 86 of file MFXListIcon.cpp.
References clearItems(), font, and ID_LOOKUPTIMER.
|
protected |
|
privatedelete |
invalidate copy constructor
FXint MFXListIcon::appendItem | ( | const FXString & | text, |
FXIcon * | icon = NULL , |
||
void * | ptr = NULL , |
||
FXbool | notify = FALSE |
||
) |
Append new item with given text and optional icon, and user-data pointer.
Definition at line 1039 of file MFXListIcon.cpp.
References createItem(), insertItem(), and items.
FXint MFXListIcon::appendItem | ( | MFXListIconItem * | item, |
FXbool | notify = FALSE |
||
) |
Append a [possibly subclassed] item to the list.
Definition at line 1033 of file MFXListIcon.cpp.
References insertItem(), and items.
Referenced by MFXComboBoxIcon::appendIconItem().
bool MFXListIcon::canFocus | ( | ) | const |
List widget can receive focus.
Definition at line 115 of file MFXListIcon.cpp.
void MFXListIcon::clearItems | ( | FXbool | notify = FALSE | ) |
Remove all items from list.
Definition at line 1097 of file MFXListIcon.cpp.
References anchor, currentItem, extent, filter, items, setFilter(), and viewable.
Referenced by MFXComboBoxIcon::clearItems(), and ~MFXListIcon().
void MFXListIcon::create | ( | ) |
Create server-side resources.
Definition at line 95 of file MFXListIcon.cpp.
|
protected |
create item
Definition at line 1203 of file MFXListIcon.cpp.
Referenced by appendItem(), editItem(), and insertItem().
FXbool MFXListIcon::deselectItem | ( | MFXListIconItem * | item, |
FXbool | notify = FALSE |
||
) |
Deselect item.
Definition at line 344 of file MFXListIcon.cpp.
References MFXListIconItem::isSelected(), MFXListIconItem::setSelected(), and updateItem().
Referenced by onLeftBtnRelease().
void MFXListIcon::detach | ( | ) |
Detach server-side resources.
Definition at line 105 of file MFXListIcon.cpp.
FXint MFXListIcon::editItem | ( | FXint | index, |
const FXString & | text, | ||
FXIcon * | icon = NULL , |
||
void * | ptr = NULL , |
||
FXbool | notify = FALSE |
||
) |
Replace items text, icon, and user-data pointer.
Definition at line 970 of file MFXListIcon.cpp.
References createItem(), and setItem().
Referenced by MFXComboBoxIcon::updateIconItem().
int MFXListIcon::findItem | ( | const FXString & | text | ) | const |
Search items by name (In all items)
Definition at line 297 of file MFXListIcon.cpp.
References items.
Referenced by MFXComboBoxIcon::findItem().
FXint MFXListIcon::getAnchorItem | ( | ) | const |
FXint MFXListIcon::getContentHeight | ( | ) |
Return content height.
Definition at line 180 of file MFXListIcon.cpp.
References listHeight, and recompute().
FXint MFXListIcon::getContentWidth | ( | ) |
Compute and return content width.
Definition at line 171 of file MFXListIcon.cpp.
References listWidth, and recompute().
FXint MFXListIcon::getCurrentItemIndex | ( | ) | const |
Return current item, if any.
Definition at line 870 of file MFXListIcon.cpp.
References currentItem, and items.
Referenced by MFXComboBoxIcon::getCurrentItem(), insertItem(), onKeyPress(), and removeItem().
MFXListIconItem * MFXListIcon::getCursorItem | ( | ) | const |
Get item under the cursor, if any.
Definition at line 929 of file MFXListIcon.cpp.
References cursor.
FXint MFXListIcon::getDefaultHeight | ( | ) |
Return default height.
Definition at line 141 of file MFXListIcon.cpp.
References font, ICON_SIZE, itemFiltered, LINE_SPACING, and visible.
FXint MFXListIcon::getDefaultWidth | ( | ) |
Return default width.
Definition at line 135 of file MFXListIcon.cpp.
|
inline |
Return text font.
Definition at line 191 of file MFXListIcon.h.
References font.
Referenced by MFXListIconItem::draw(), MFXListIconItem::getHeight(), MFXListIconItem::getWidth(), and MFXListIconItem::hitItem().
|
inline |
Get the status line help text for this list.
Definition at line 217 of file MFXListIcon.h.
References help.
MFXListIconItem * MFXListIcon::getItem | ( | FXint | index | ) | const |
Return the item at the given index.
Definition at line 935 of file MFXListIcon.cpp.
References items.
Referenced by MFXComboBoxIcon::getItemText(), MFXComboBoxIcon::onTextCommand(), MFXComboBoxIcon::setCurrentItem(), and MFXComboBoxIcon::setCurrentItem().
MFXListIconItem * MFXListIcon::getItemAt | ( | FXint | y | ) | const |
Return index of item at y, if any.
Definition at line 276 of file MFXListIcon.cpp.
References filter, itemFiltered, and items.
Referenced by onLeftBtnPress(), and onMotion().
FXint MFXListIcon::getItemHeight | ( | FXint | index | ) | const |
FXint MFXListIcon::getItemWidth | ( | FXint | index | ) | const |
|
inline |
Return the number of items in the list.
Definition at line 88 of file MFXListIcon.h.
References items.
Referenced by MFXComboBoxIcon::getNumItems(), MFXComboBoxIcon::onTextCommand(), MFXComboBoxIcon::removeItem(), and MFXComboBoxIcon::setCurrentItem().
|
inline |
|
inline |
Return selected text background.
Definition at line 204 of file MFXListIcon.h.
References selbackColor.
Referenced by MFXListIconItem::draw().
|
inline |
Return selected text color.
Definition at line 209 of file MFXListIcon.h.
References seltextColor.
Referenced by MFXListIconItem::draw().
|
inline |
Return normal text color.
Definition at line 196 of file MFXListIcon.h.
References textColor.
Referenced by MFXListIconItem::draw().
FXint MFXListIcon::getViewableItem | ( | ) | const |
Return viewable item, if any.
Definition at line 881 of file MFXListIcon.cpp.
References filter, itemFiltered, items, and viewable.
Referenced by insertItem(), and removeItem().
FXint MFXListIcon::hitItem | ( | MFXListIconItem * | item, |
FXint | x, | ||
FXint | y | ||
) | const |
Return item hit code: 0 no hit; 1 hit the icon; 2 hit the text.
Definition at line 308 of file MFXListIcon.cpp.
References MFXListIconItem::hitItem(), MFXListIconItem::x, and MFXListIconItem::y.
Referenced by onLeftBtnPress().
FXint MFXListIcon::insertItem | ( | FXint | index, |
const FXString & | text, | ||
FXIcon * | icon = NULL , |
||
void * | ptr = NULL , |
||
FXbool | notify = FALSE |
||
) |
Insert item at index with given text, icon, and user-data pointer.
Definition at line 1027 of file MFXListIcon.cpp.
References createItem(), and insertItem().
FXint MFXListIcon::insertItem | ( | FXint | index, |
MFXListIconItem * | item, | ||
FXbool | notify = FALSE |
||
) |
Insert a new [possibly subclassed] item at the give index.
Definition at line 976 of file MFXListIcon.cpp.
References anchor, currentItem, extent, filter, getCurrentItemIndex(), getViewableItem(), items, setFilter(), MFXListIconItem::setFocus(), and viewable.
Referenced by appendItem(), appendItem(), MFXComboBoxIcon::insertIconItem(), and insertItem().
FXbool MFXListIcon::isItemCurrent | ( | FXint | index | ) | const |
Return TRUE if item is current.
Definition at line 208 of file MFXListIcon.cpp.
References currentItem, and items.
Referenced by MFXComboBoxIcon::isItemCurrent(), and MFXComboBoxIcon::removeItem().
FXbool MFXListIcon::isItemVisible | ( | MFXListIconItem * | item | ) | const |
Return TRUE if item is visible.
Definition at line 219 of file MFXListIcon.cpp.
References MFXListIconItem::getHeight(), and MFXListIconItem::y.
void MFXListIcon::killFocus | ( | ) |
Remove the focus from this window.
Definition at line 128 of file MFXListIcon.cpp.
FXbool MFXListIcon::killSelection | ( | FXbool | notify = FALSE | ) |
Deselect all items.
Definition at line 379 of file MFXListIcon.cpp.
References items, and updateItem().
Referenced by selectItem(), and toggleItem().
void MFXListIcon::layout | ( | ) |
Perform layout.
Definition at line 189 of file MFXListIcon.cpp.
References itemFiltered, makeItemVisible(), and viewable.
Referenced by makeItemVisible().
void MFXListIcon::makeItemVisible | ( | FXint | index | ) |
Scroll to bring item into view.
Definition at line 252 of file MFXListIcon.cpp.
References items, and makeItemVisible().
void MFXListIcon::makeItemVisible | ( | MFXListIconItem * | item | ) |
Scroll to bring item into view.
Definition at line 225 of file MFXListIcon.cpp.
References MFXListIconItem::getHeight(), layout(), viewable, and MFXListIconItem::y.
Referenced by layout(), makeItemVisible(), onKeyPress(), onLeftBtnRelease(), and MFXComboBoxIcon::setCurrentItem().
long MFXListIcon::onAutoScroll | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 618 of file MFXListIcon.cpp.
Referenced by FXDEFMAP().
long MFXListIcon::onClicked | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 830 of file MFXListIcon.cpp.
Referenced by FXDEFMAP().
long MFXListIcon::onCommand | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 824 of file MFXListIcon.cpp.
Referenced by FXDEFMAP().
long MFXListIcon::onDoubleClicked | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 836 of file MFXListIcon.cpp.
Referenced by FXDEFMAP().
long MFXListIcon::onEnter | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
Definition at line 397 of file MFXListIcon.cpp.
References cursor.
Referenced by FXDEFMAP().
long MFXListIcon::onFocusIn | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
Definition at line 415 of file MFXListIcon.cpp.
References currentItem, MFXListIconItem::setFocus(), and updateItem().
Referenced by FXDEFMAP().
long MFXListIcon::onFocusOut | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
Definition at line 460 of file MFXListIcon.cpp.
References currentItem, MFXListIconItem::setFocus(), and updateItem().
Referenced by FXDEFMAP().
long MFXListIcon::onKeyPress | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 501 of file MFXListIcon.cpp.
References currentItem, filter, getCurrentItemIndex(), MFXListIconItem::isEnabled(), itemFiltered, items, lookup, makeItemVisible(), setAnchorItem(), setCurrentItem(), and toggleItem().
Referenced by FXDEFMAP().
long MFXListIcon::onKeyRelease | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 593 of file MFXListIcon.cpp.
Referenced by FXDEFMAP().
long MFXListIcon::onLeave | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
Definition at line 406 of file MFXListIcon.cpp.
References cursor.
Referenced by FXDEFMAP().
long MFXListIcon::onLeftBtnPress | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 687 of file MFXListIcon.cpp.
References getItemAt(), hitItem(), selectItem(), setCurrentItem(), and state.
Referenced by FXDEFMAP().
long MFXListIcon::onLeftBtnRelease | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 730 of file MFXListIcon.cpp.
References currentItem, deselectItem(), MFXListIconItem::isEnabled(), makeItemVisible(), setAnchorItem(), and state.
Referenced by FXDEFMAP().
long MFXListIcon::onLookupTimer | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 494 of file MFXListIcon.cpp.
References lookup.
Referenced by FXDEFMAP().
long MFXListIcon::onMotion | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 624 of file MFXListIcon.cpp.
References cursor, getItemAt(), grabx, graby, and setCurrentItem().
Referenced by FXDEFMAP().
long MFXListIcon::onPaint | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 471 of file MFXListIcon.cpp.
References itemFiltered, and listWidth.
Referenced by FXDEFMAP().
long MFXListIcon::onQueryHelp | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
Definition at line 447 of file MFXListIcon.cpp.
References help.
Referenced by FXDEFMAP().
long MFXListIcon::onQueryTip | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
Definition at line 433 of file MFXListIcon.cpp.
References cursor, and MFXListIconItem::getText().
Referenced by FXDEFMAP().
long MFXListIcon::onRightBtnPress | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 779 of file MFXListIcon.cpp.
Referenced by FXDEFMAP().
long MFXListIcon::onRightBtnRelease | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 799 of file MFXListIcon.cpp.
Referenced by FXDEFMAP().
long MFXListIcon::onTipTimer | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 426 of file MFXListIcon.cpp.
Referenced by FXDEFMAP().
long MFXListIcon::onTripleClicked | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 842 of file MFXListIcon.cpp.
Referenced by FXDEFMAP().
long MFXListIcon::onUngrabbed | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
Definition at line 814 of file MFXListIcon.cpp.
Referenced by FXDEFMAP().
|
privatedelete |
invalidate assignement operator
void MFXListIcon::recalc | ( | ) |
Recalculate layout.
Definition at line 151 of file MFXListIcon.cpp.
References cursor.
Referenced by setFilter(), and setNumVisible().
|
protected |
recompute list
Definition at line 1180 of file MFXListIcon.cpp.
References itemFiltered, listHeight, and listWidth.
Referenced by getContentHeight(), getContentWidth(), and setFilter().
void MFXListIcon::removeItem | ( | FXint | index, |
FXbool | notify = FALSE |
||
) |
Remove node from list.
Definition at line 1045 of file MFXListIcon.cpp.
References anchor, currentItem, extent, filter, getCurrentItemIndex(), getViewableItem(), items, setFilter(), MFXListIconItem::setFocus(), and viewable.
Referenced by MFXComboBoxIcon::removeItem().
FXbool MFXListIcon::selectItem | ( | MFXListIconItem * | item, |
FXbool | notify = FALSE |
||
) |
Select item by index.
Definition at line 328 of file MFXListIcon.cpp.
References MFXListIconItem::isSelected(), killSelection(), MFXListIconItem::setSelected(), and updateItem().
Referenced by onLeftBtnPress().
void MFXListIcon::setAnchorItem | ( | MFXListIconItem * | item | ) |
Change anchor item.
Definition at line 901 of file MFXListIcon.cpp.
References anchor, extent, filter, itemFiltered, and items.
Referenced by onKeyPress(), and onLeftBtnRelease().
void MFXListIcon::setCurrentItem | ( | MFXListIconItem * | item, |
FXbool | notify = FALSE |
||
) |
Change current item.
Definition at line 848 of file MFXListIcon.cpp.
References currentItem, MFXListIconItem::setFocus(), and updateItem().
Referenced by onKeyPress(), onLeftBtnPress(), onMotion(), and MFXComboBoxIcon::setCurrentItem().
void MFXListIcon::setFilter | ( | const FXString & | value, |
FXLabel * | label | ||
) |
filter items in list
Definition at line 1124 of file MFXListIcon.cpp.
References filter, itemFiltered, items, recalc(), recompute(), and showItem().
Referenced by clearItems(), insertItem(), MFXComboBoxIcon::onCmdFilter(), removeItem(), and setItem().
void MFXListIcon::setFocus | ( | ) |
Move the focus to this window.
Definition at line 121 of file MFXListIcon.cpp.
void MFXListIcon::setHelpText | ( | const FXString & | text | ) |
Set the status line help text for this list.
Definition at line 1158 of file MFXListIcon.cpp.
References help.
FXint MFXListIcon::setItem | ( | FXint | index, |
MFXListIconItem * | item, | ||
FXbool | notify = FALSE |
||
) |
Replace the item with a [possibly subclassed] item.
Definition at line 944 of file MFXListIcon.cpp.
References filter, items, setFilter(), and MFXListIconItem::state.
Referenced by editItem().
void MFXListIcon::setNumVisible | ( | FXint | nvis | ) |
Change the number of visible items.
Definition at line 159 of file MFXListIcon.cpp.
References recalc(), and visible.
Referenced by MFXComboBoxIcon::setNumVisible().
void MFXListIcon::setTextColor | ( | FXColor | clr | ) |
Change normal text color.
Definition at line 1149 of file MFXListIcon.cpp.
References textColor.
Referenced by MFXComboBoxIcon::setTextColor().
|
private |
check if filter element
Definition at line 1209 of file MFXListIcon.cpp.
References filter, and tolowerString().
Referenced by setFilter().
FXbool MFXListIcon::toggleItem | ( | MFXListIconItem * | item, |
FXbool | notify = FALSE |
||
) |
Toggle item selection state.
Definition at line 359 of file MFXListIcon.cpp.
References MFXListIconItem::isSelected(), killSelection(), MFXListIconItem::setSelected(), and updateItem().
Referenced by onKeyPress().
FXString MFXListIcon::tolowerString | ( | const FXString & | str | ) | const |
tolower string
Definition at line 1164 of file MFXListIcon.cpp.
Referenced by MFXComboBoxIcon::onTextCommand(), MFXComboBoxIcon::setCurrentItem(), and showItem().
void MFXListIcon::updateItem | ( | MFXListIconItem * | item | ) | const |
Repaint item.
Definition at line 322 of file MFXListIcon.cpp.
References MFXListIconItem::getHeight(), and MFXListIconItem::y.
Referenced by deselectItem(), killSelection(), onFocusIn(), onFocusOut(), selectItem(), setCurrentItem(), and toggleItem().
|
protected |
Anchor item.
Definition at line 267 of file MFXListIcon.h.
Referenced by clearItems(), getAnchorItem(), insertItem(), removeItem(), and setAnchorItem().
|
protected |
Current item.
Definition at line 270 of file MFXListIcon.h.
Referenced by clearItems(), getCurrentItemIndex(), insertItem(), isItemCurrent(), onFocusIn(), onFocusOut(), onKeyPress(), onLeftBtnRelease(), removeItem(), and setCurrentItem().
|
protected |
Cursor item.
Definition at line 276 of file MFXListIcon.h.
Referenced by getCursorItem(), onEnter(), onLeave(), onMotion(), onQueryTip(), and recalc().
|
protected |
Extent item.
Definition at line 273 of file MFXListIcon.h.
Referenced by clearItems(), insertItem(), removeItem(), and setAnchorItem().
|
protected |
filter
Definition at line 318 of file MFXListIcon.h.
Referenced by clearItems(), getItemAt(), getViewableItem(), insertItem(), onKeyPress(), removeItem(), setAnchorItem(), setFilter(), setItem(), and showItem().
|
protected |
Font.
Definition at line 282 of file MFXListIcon.h.
Referenced by create(), detach(), getDefaultHeight(), getFont(), MFXListIcon(), and ~MFXListIcon().
|
protected |
Grab point x.
Definition at line 306 of file MFXListIcon.h.
Referenced by onMotion(), and onRightBtnPress().
|
protected |
Grab point y.
Definition at line 309 of file MFXListIcon.h.
Referenced by onMotion(), and onRightBtnPress().
|
protected |
Help text.
Definition at line 303 of file MFXListIcon.h.
Referenced by getHelpText(), onQueryHelp(), and setHelpText().
|
protected |
Selected item list.
Definition at line 264 of file MFXListIcon.h.
Referenced by getDefaultHeight(), getItemAt(), getItemHeight(), getItemWidth(), getViewableItem(), layout(), onKeyPress(), onPaint(), recompute(), setAnchorItem(), and setFilter().
|
protected |
Item list.
Definition at line 261 of file MFXListIcon.h.
Referenced by appendItem(), appendItem(), clearItems(), create(), detach(), findItem(), getCurrentItemIndex(), getItem(), getItemAt(), getNumItems(), getViewableItem(), insertItem(), isItemCurrent(), killSelection(), makeItemVisible(), onKeyPress(), removeItem(), setAnchorItem(), setFilter(), and setItem().
|
protected |
List height.
Definition at line 297 of file MFXListIcon.h.
Referenced by getContentHeight(), and recompute().
|
protected |
List width.
Definition at line 294 of file MFXListIcon.h.
Referenced by getContentWidth(), onPaint(), and recompute().
|
protected |
Lookup string.
Definition at line 312 of file MFXListIcon.h.
Referenced by onKeyPress(), and onLookupTimer().
|
protected |
|
protected |
|
protected |
State of item.
Definition at line 315 of file MFXListIcon.h.
Referenced by onLeftBtnPress(), and onLeftBtnRelease().
|
protected |
Text color.
Definition at line 285 of file MFXListIcon.h.
Referenced by getTextColor(), and setTextColor().
|
protected |
Viewable item.
Definition at line 279 of file MFXListIcon.h.
Referenced by clearItems(), getViewableItem(), insertItem(), layout(), makeItemVisible(), and removeItem().
|
protected |
Number of rows high.
Definition at line 300 of file MFXListIcon.h.
Referenced by getDefaultHeight(), getNumVisible(), and setNumVisible().