Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
MFXListIcon Class Reference

A list item which allows for custom coloring. More...

#include <MFXListIcon.h>

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

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.
 
MFXListIconItemgetCursorItem () 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.
 
MFXListIconItemgetItem (FXint index) const
 Return the item at the given index.
 
MFXListIconItemgetItemAt (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

MFXListIconItemcreateItem (const FXString &text, FXIcon *icon, void *ptr)
 create item
 
 MFXListIcon ()
 FOX need this.
 
void recompute ()
 recompute list
 

Protected Attributes

FXint anchor = -1
 Anchor item.
 
MFXListIconItemcurrentItem = nullptr
 Current item.
 
MFXListIconItemcursor = 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.
 
MFXListIconItemviewable = 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
 
MFXListIconoperator= (const FXList &)=delete
 invalidate assignement operator
 
bool showItem (const FXString &itemName) const
 check if filter element
 

Detailed Description

A list item which allows for custom coloring.

Definition at line 30 of file MFXListIcon.h.

Member Typedef Documentation

◆ FXCompareFunc

typedef FXint(* MFXListIcon::FXCompareFunc) (const FXString &, const FXString &, FXint)
private

typedef used for comparing elements

Definition at line 314 of file MFXListIcon.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

FOX declaration.

Enumerator
ID_LOOKUPTIMER 
ID_LAST 

Definition at line 35 of file MFXListIcon.h.

Constructor & Destructor Documentation

◆ MFXListIcon() [1/3]

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 77 of file MFXListIcon.cpp.

◆ ~MFXListIcon()

MFXListIcon::~MFXListIcon ( )

Destructor.

Definition at line 89 of file MFXListIcon.cpp.

References clearItems(), font, and ID_LOOKUPTIMER.

◆ MFXListIcon() [2/3]

MFXListIcon::MFXListIcon ( )
protected

FOX need this.

Definition at line 1176 of file MFXListIcon.cpp.

References font.

◆ MFXListIcon() [3/3]

MFXListIcon::MFXListIcon ( const FXList &  )
privatedelete

invalidate copy constructor

Member Function Documentation

◆ appendItem() [1/2]

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 1042 of file MFXListIcon.cpp.

References createItem(), insertItem(), and items.

◆ appendItem() [2/2]

FXint MFXListIcon::appendItem ( MFXListIconItem item,
FXbool  notify = FALSE 
)

Append a [possibly subclassed] item to the list.

Definition at line 1036 of file MFXListIcon.cpp.

References insertItem(), and items.

Referenced by MFXComboBoxIcon::appendIconItem().

Here is the caller graph for this function:

◆ canFocus()

bool MFXListIcon::canFocus ( ) const

List widget can receive focus.

Definition at line 118 of file MFXListIcon.cpp.

◆ clearItems()

void MFXListIcon::clearItems ( FXbool  notify = FALSE)

Remove all items from list.

Definition at line 1100 of file MFXListIcon.cpp.

References anchor, currentItem, extent, filter, items, setFilter(), and viewable.

Referenced by MFXComboBoxIcon::clearItems(), and ~MFXListIcon().

Here is the caller graph for this function:

◆ create()

void MFXListIcon::create ( )

Create server-side resources.

Definition at line 98 of file MFXListIcon.cpp.

References font, and items.

◆ createItem()

MFXListIconItem * MFXListIcon::createItem ( const FXString &  text,
FXIcon *  icon,
void *  ptr 
)
protected

create item

Definition at line 1206 of file MFXListIcon.cpp.

Referenced by appendItem(), editItem(), and insertItem().

Here is the caller graph for this function:

◆ deselectItem()

FXbool MFXListIcon::deselectItem ( MFXListIconItem item,
FXbool  notify = FALSE 
)

Deselect item.

Definition at line 347 of file MFXListIcon.cpp.

References MFXListIconItem::isSelected(), MFXListIconItem::setSelected(), and updateItem().

Referenced by onLeftBtnRelease().

Here is the caller graph for this function:

◆ detach()

void MFXListIcon::detach ( )

Detach server-side resources.

Definition at line 108 of file MFXListIcon.cpp.

References font, and items.

◆ editItem()

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 973 of file MFXListIcon.cpp.

References createItem(), and setItem().

Referenced by MFXComboBoxIcon::updateIconItem().

Here is the caller graph for this function:

◆ findItem()

int MFXListIcon::findItem ( const FXString &  text) const

Search items by name (In all items)

Definition at line 300 of file MFXListIcon.cpp.

References items.

Referenced by MFXComboBoxIcon::findItem().

Here is the caller graph for this function:

◆ getAnchorItem()

FXint MFXListIcon::getAnchorItem ( ) const

Return anchor item, if any.

Definition at line 926 of file MFXListIcon.cpp.

References anchor.

◆ getContentHeight()

FXint MFXListIcon::getContentHeight ( )

Return content height.

Definition at line 183 of file MFXListIcon.cpp.

References listHeight, and recompute().

◆ getContentWidth()

FXint MFXListIcon::getContentWidth ( )

Compute and return content width.

Definition at line 174 of file MFXListIcon.cpp.

References listWidth, and recompute().

◆ getCurrentItemIndex()

FXint MFXListIcon::getCurrentItemIndex ( ) const

Return current item, if any.

Definition at line 873 of file MFXListIcon.cpp.

References currentItem, and items.

Referenced by MFXComboBoxIcon::getCurrentItem(), insertItem(), onKeyPress(), and removeItem().

Here is the caller graph for this function:

◆ getCursorItem()

MFXListIconItem * MFXListIcon::getCursorItem ( ) const

Get item under the cursor, if any.

Definition at line 932 of file MFXListIcon.cpp.

References cursor.

◆ getDefaultHeight()

FXint MFXListIcon::getDefaultHeight ( )

Return default height.

Definition at line 144 of file MFXListIcon.cpp.

References font, ICON_SIZE, itemFiltered, LINE_SPACING, and visible.

◆ getDefaultWidth()

FXint MFXListIcon::getDefaultWidth ( )

Return default width.

Definition at line 138 of file MFXListIcon.cpp.

◆ getFont()

FXFont * MFXListIcon::getFont ( ) const
inline

Return text font.

Definition at line 183 of file MFXListIcon.h.

References font.

Referenced by MFXListIconItem::draw(), MFXListIconItem::getHeight(), MFXListIconItem::getWidth(), and MFXListIconItem::hitItem().

Here is the caller graph for this function:

◆ getHelpText()

const FXString & MFXListIcon::getHelpText ( ) const
inline

Get the status line help text for this list.

Definition at line 209 of file MFXListIcon.h.

References help.

◆ getItem()

MFXListIconItem * MFXListIcon::getItem ( FXint  index) const

Return the item at the given index.

Definition at line 938 of file MFXListIcon.cpp.

References items.

Referenced by MFXComboBoxIcon::getItemText(), MFXComboBoxIcon::onTextCommand(), MFXComboBoxIcon::setCurrentItem(), and MFXComboBoxIcon::setCurrentItem().

Here is the caller graph for this function:

◆ getItemAt()

MFXListIconItem * MFXListIcon::getItemAt ( FXint  y) const

Return index of item at y, if any.

Definition at line 279 of file MFXListIcon.cpp.

References filter, itemFiltered, and items.

Referenced by onLeftBtnPress(), and onMotion().

Here is the caller graph for this function:

◆ getItemHeight()

FXint MFXListIcon::getItemHeight ( FXint  index) const

Return item height.

Definition at line 270 of file MFXListIcon.cpp.

References itemFiltered.

◆ getItemWidth()

FXint MFXListIcon::getItemWidth ( FXint  index) const

Return item width.

Definition at line 261 of file MFXListIcon.cpp.

References itemFiltered.

◆ getNumItems()

FXint MFXListIcon::getNumItems ( ) const
inline

Return the number of items in the list.

Definition at line 80 of file MFXListIcon.h.

References items.

Referenced by MFXComboBoxIcon::getNumItems(), MFXComboBoxIcon::onTextCommand(), MFXComboBoxIcon::removeItem(), and MFXComboBoxIcon::setCurrentItem().

Here is the caller graph for this function:

◆ getNumVisible()

FXint MFXListIcon::getNumVisible ( ) const
inline

Return number of visible items.

Definition at line 85 of file MFXListIcon.h.

References visible.

◆ getSelBackColor()

FXColor MFXListIcon::getSelBackColor ( ) const
inline

Return selected text background.

Definition at line 196 of file MFXListIcon.h.

References selbackColor.

Referenced by MFXListIconItem::draw().

Here is the caller graph for this function:

◆ getSelTextColor()

FXColor MFXListIcon::getSelTextColor ( ) const
inline

Return selected text color.

Definition at line 201 of file MFXListIcon.h.

References seltextColor.

Referenced by MFXListIconItem::draw().

Here is the caller graph for this function:

◆ getTextColor()

FXColor MFXListIcon::getTextColor ( ) const
inline

Return normal text color.

Definition at line 188 of file MFXListIcon.h.

References textColor.

Referenced by MFXListIconItem::draw().

Here is the caller graph for this function:

◆ getViewableItem()

FXint MFXListIcon::getViewableItem ( ) const

Return viewable item, if any.

Definition at line 884 of file MFXListIcon.cpp.

References filter, itemFiltered, items, and viewable.

Referenced by insertItem(), and removeItem().

Here is the caller graph for this function:

◆ hitItem()

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 311 of file MFXListIcon.cpp.

References MFXListIconItem::hitItem(), MFXListIconItem::x, and MFXListIconItem::y.

Referenced by onLeftBtnPress().

Here is the caller graph for this function:

◆ insertItem() [1/2]

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 1030 of file MFXListIcon.cpp.

References createItem(), and insertItem().

◆ insertItem() [2/2]

FXint MFXListIcon::insertItem ( FXint  index,
MFXListIconItem item,
FXbool  notify = FALSE 
)

Insert a new [possibly subclassed] item at the give index.

Definition at line 979 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().

Here is the caller graph for this function:

◆ isItemCurrent()

FXbool MFXListIcon::isItemCurrent ( FXint  index) const

Return TRUE if item is current.

Definition at line 211 of file MFXListIcon.cpp.

References currentItem, and items.

Referenced by MFXComboBoxIcon::isItemCurrent(), and MFXComboBoxIcon::removeItem().

Here is the caller graph for this function:

◆ isItemVisible()

FXbool MFXListIcon::isItemVisible ( MFXListIconItem item) const

Return TRUE if item is visible.

Definition at line 222 of file MFXListIcon.cpp.

References MFXListIconItem::getHeight(), and MFXListIconItem::y.

◆ killFocus()

void MFXListIcon::killFocus ( )

Remove the focus from this window.

Definition at line 131 of file MFXListIcon.cpp.

◆ killSelection()

FXbool MFXListIcon::killSelection ( FXbool  notify = FALSE)

Deselect all items.

Definition at line 382 of file MFXListIcon.cpp.

References items, and updateItem().

Referenced by selectItem(), and toggleItem().

Here is the caller graph for this function:

◆ layout()

void MFXListIcon::layout ( )

Perform layout.

Definition at line 192 of file MFXListIcon.cpp.

References itemFiltered, makeItemVisible(), and viewable.

Referenced by makeItemVisible().

Here is the caller graph for this function:

◆ makeItemVisible() [1/2]

void MFXListIcon::makeItemVisible ( FXint  index)

Scroll to bring item into view.

Definition at line 255 of file MFXListIcon.cpp.

References items, and makeItemVisible().

◆ makeItemVisible() [2/2]

void MFXListIcon::makeItemVisible ( MFXListIconItem item)

Scroll to bring item into view.

Definition at line 228 of file MFXListIcon.cpp.

References MFXListIconItem::getHeight(), layout(), viewable, and MFXListIconItem::y.

Referenced by layout(), makeItemVisible(), onKeyPress(), onLeftBtnRelease(), and MFXComboBoxIcon::setCurrentItem().

Here is the caller graph for this function:

◆ onAutoScroll()

long MFXListIcon::onAutoScroll ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 621 of file MFXListIcon.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onClicked()

long MFXListIcon::onClicked ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 833 of file MFXListIcon.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCommand()

long MFXListIcon::onCommand ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 827 of file MFXListIcon.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onDoubleClicked()

long MFXListIcon::onDoubleClicked ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 839 of file MFXListIcon.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onEnter()

long MFXListIcon::onEnter ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

Definition at line 400 of file MFXListIcon.cpp.

References cursor.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onFocusIn()

long MFXListIcon::onFocusIn ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

Definition at line 418 of file MFXListIcon.cpp.

References currentItem, MFXListIconItem::setFocus(), and updateItem().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onFocusOut()

long MFXListIcon::onFocusOut ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

Definition at line 463 of file MFXListIcon.cpp.

References currentItem, MFXListIconItem::setFocus(), and updateItem().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onKeyPress()

long MFXListIcon::onKeyPress ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 504 of file MFXListIcon.cpp.

References currentItem, filter, getCurrentItemIndex(), MFXListIconItem::isEnabled(), itemFiltered, items, lookup, makeItemVisible(), setAnchorItem(), setCurrentItem(), and toggleItem().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onKeyRelease()

long MFXListIcon::onKeyRelease ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 596 of file MFXListIcon.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onLeave()

long MFXListIcon::onLeave ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

Definition at line 409 of file MFXListIcon.cpp.

References cursor.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onLeftBtnPress()

long MFXListIcon::onLeftBtnPress ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 690 of file MFXListIcon.cpp.

References getItemAt(), hitItem(), selectItem(), setCurrentItem(), and state.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onLeftBtnRelease()

long MFXListIcon::onLeftBtnRelease ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 733 of file MFXListIcon.cpp.

References currentItem, deselectItem(), MFXListIconItem::isEnabled(), makeItemVisible(), setAnchorItem(), and state.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onLookupTimer()

long MFXListIcon::onLookupTimer ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 497 of file MFXListIcon.cpp.

References lookup.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onMotion()

long MFXListIcon::onMotion ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 627 of file MFXListIcon.cpp.

References cursor, getItemAt(), grabx, graby, and setCurrentItem().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onPaint()

long MFXListIcon::onPaint ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 474 of file MFXListIcon.cpp.

References itemFiltered, and listWidth.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onQueryHelp()

long MFXListIcon::onQueryHelp ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

Definition at line 450 of file MFXListIcon.cpp.

References help.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onQueryTip()

long MFXListIcon::onQueryTip ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

Definition at line 436 of file MFXListIcon.cpp.

References cursor, and MFXListIconItem::getText().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onRightBtnPress()

long MFXListIcon::onRightBtnPress ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 782 of file MFXListIcon.cpp.

References grabx, and graby.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onRightBtnRelease()

long MFXListIcon::onRightBtnRelease ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 802 of file MFXListIcon.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onTipTimer()

long MFXListIcon::onTipTimer ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 429 of file MFXListIcon.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onTripleClicked()

long MFXListIcon::onTripleClicked ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 845 of file MFXListIcon.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUngrabbed()

long MFXListIcon::onUngrabbed ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

Definition at line 817 of file MFXListIcon.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

MFXListIcon & MFXListIcon::operator= ( const FXList &  )
privatedelete

invalidate assignement operator

◆ recalc()

void MFXListIcon::recalc ( )

Recalculate layout.

Definition at line 154 of file MFXListIcon.cpp.

References cursor.

Referenced by setFilter(), and setNumVisible().

Here is the caller graph for this function:

◆ recompute()

void MFXListIcon::recompute ( )
protected

recompute list

Definition at line 1183 of file MFXListIcon.cpp.

References itemFiltered, listHeight, and listWidth.

Referenced by getContentHeight(), getContentWidth(), and setFilter().

Here is the caller graph for this function:

◆ removeItem()

void MFXListIcon::removeItem ( FXint  index,
FXbool  notify = FALSE 
)

Remove node from list.

Definition at line 1048 of file MFXListIcon.cpp.

References anchor, currentItem, extent, filter, getCurrentItemIndex(), getViewableItem(), items, setFilter(), MFXListIconItem::setFocus(), and viewable.

Referenced by MFXComboBoxIcon::removeItem().

Here is the caller graph for this function:

◆ selectItem()

FXbool MFXListIcon::selectItem ( MFXListIconItem item,
FXbool  notify = FALSE 
)

Select item by index.

Definition at line 331 of file MFXListIcon.cpp.

References MFXListIconItem::isSelected(), killSelection(), MFXListIconItem::setSelected(), and updateItem().

Referenced by onLeftBtnPress().

Here is the caller graph for this function:

◆ setAnchorItem()

void MFXListIcon::setAnchorItem ( MFXListIconItem item)

Change anchor item.

Definition at line 904 of file MFXListIcon.cpp.

References anchor, extent, filter, itemFiltered, and items.

Referenced by onKeyPress(), and onLeftBtnRelease().

Here is the caller graph for this function:

◆ setCurrentItem()

void MFXListIcon::setCurrentItem ( MFXListIconItem item,
FXbool  notify = FALSE 
)

Change current item.

Definition at line 851 of file MFXListIcon.cpp.

References currentItem, MFXListIconItem::setFocus(), and updateItem().

Referenced by onKeyPress(), onLeftBtnPress(), onMotion(), and MFXComboBoxIcon::setCurrentItem().

Here is the caller graph for this function:

◆ setFilter()

void MFXListIcon::setFilter ( const FXString &  value,
FXLabel *  label 
)

filter items in list

Definition at line 1127 of file MFXListIcon.cpp.

References filter, itemFiltered, items, recalc(), recompute(), and showItem().

Referenced by clearItems(), insertItem(), MFXComboBoxIcon::onCmdFilter(), removeItem(), and setItem().

Here is the caller graph for this function:

◆ setFocus()

void MFXListIcon::setFocus ( )

Move the focus to this window.

Definition at line 124 of file MFXListIcon.cpp.

◆ setHelpText()

void MFXListIcon::setHelpText ( const FXString &  text)

Set the status line help text for this list.

Definition at line 1161 of file MFXListIcon.cpp.

References help.

◆ setItem()

FXint MFXListIcon::setItem ( FXint  index,
MFXListIconItem item,
FXbool  notify = FALSE 
)

Replace the item with a [possibly subclassed] item.

Definition at line 947 of file MFXListIcon.cpp.

References filter, items, setFilter(), and MFXListIconItem::state.

Referenced by editItem().

Here is the caller graph for this function:

◆ setNumVisible()

void MFXListIcon::setNumVisible ( FXint  nvis)

Change the number of visible items.

Definition at line 162 of file MFXListIcon.cpp.

References recalc(), and visible.

Referenced by MFXComboBoxIcon::setNumVisible().

Here is the caller graph for this function:

◆ setTextColor()

void MFXListIcon::setTextColor ( FXColor  clr)

Change normal text color.

Definition at line 1152 of file MFXListIcon.cpp.

References textColor.

Referenced by MFXComboBoxIcon::setTextColor().

Here is the caller graph for this function:

◆ showItem()

bool MFXListIcon::showItem ( const FXString &  itemName) const
private

check if filter element

Definition at line 1212 of file MFXListIcon.cpp.

References filter, and tolowerString().

Referenced by setFilter().

Here is the caller graph for this function:

◆ toggleItem()

FXbool MFXListIcon::toggleItem ( MFXListIconItem item,
FXbool  notify = FALSE 
)

Toggle item selection state.

Definition at line 362 of file MFXListIcon.cpp.

References MFXListIconItem::isSelected(), killSelection(), MFXListIconItem::setSelected(), and updateItem().

Referenced by onKeyPress().

Here is the caller graph for this function:

◆ tolowerString()

FXString MFXListIcon::tolowerString ( const FXString &  str) const

tolower string

Definition at line 1167 of file MFXListIcon.cpp.

Referenced by MFXComboBoxIcon::onTextCommand(), MFXComboBoxIcon::setCurrentItem(), and showItem().

Here is the caller graph for this function:

◆ updateItem()

void MFXListIcon::updateItem ( MFXListIconItem item) const

Repaint item.

Definition at line 325 of file MFXListIcon.cpp.

References MFXListIconItem::getHeight(), and MFXListIconItem::y.

Referenced by deselectItem(), killSelection(), onFocusIn(), onFocusOut(), selectItem(), setCurrentItem(), and toggleItem().

Here is the caller graph for this function:

Field Documentation

◆ anchor

FXint MFXListIcon::anchor = -1
protected

Anchor item.

Definition at line 259 of file MFXListIcon.h.

Referenced by clearItems(), getAnchorItem(), insertItem(), removeItem(), and setAnchorItem().

◆ currentItem

MFXListIconItem* MFXListIcon::currentItem = nullptr
protected

◆ cursor

MFXListIconItem* MFXListIcon::cursor = nullptr
protected

Cursor item.

Definition at line 268 of file MFXListIcon.h.

Referenced by getCursorItem(), onEnter(), onLeave(), onMotion(), onQueryTip(), and recalc().

◆ extent

FXint MFXListIcon::extent = -1
protected

Extent item.

Definition at line 265 of file MFXListIcon.h.

Referenced by clearItems(), insertItem(), removeItem(), and setAnchorItem().

◆ filter

FXString MFXListIcon::filter
protected

◆ font

FXFont* MFXListIcon::font = nullptr
protected

Font.

Definition at line 274 of file MFXListIcon.h.

Referenced by create(), detach(), getDefaultHeight(), getFont(), MFXListIcon(), and ~MFXListIcon().

◆ grabx

FXint MFXListIcon::grabx = 0
protected

Grab point x.

Definition at line 298 of file MFXListIcon.h.

Referenced by onMotion(), and onRightBtnPress().

◆ graby

FXint MFXListIcon::graby = 0
protected

Grab point y.

Definition at line 301 of file MFXListIcon.h.

Referenced by onMotion(), and onRightBtnPress().

◆ help

FXString MFXListIcon::help
protected

Help text.

Definition at line 295 of file MFXListIcon.h.

Referenced by getHelpText(), onQueryHelp(), and setHelpText().

◆ itemFiltered

std::vector<MFXListIconItem*> MFXListIcon::itemFiltered
protected

◆ items

◆ listHeight

FXint MFXListIcon::listHeight = 0
protected

List height.

Definition at line 289 of file MFXListIcon.h.

Referenced by getContentHeight(), and recompute().

◆ listWidth

FXint MFXListIcon::listWidth = 0
protected

List width.

Definition at line 286 of file MFXListIcon.h.

Referenced by getContentWidth(), onPaint(), and recompute().

◆ lookup

FXString MFXListIcon::lookup
protected

Lookup string.

Definition at line 304 of file MFXListIcon.h.

Referenced by onKeyPress(), and onLookupTimer().

◆ selbackColor

FXColor MFXListIcon::selbackColor = 0
protected

Selected back color.

Definition at line 280 of file MFXListIcon.h.

Referenced by getSelBackColor().

◆ seltextColor

FXColor MFXListIcon::seltextColor = 0
protected

Selected text color.

Definition at line 283 of file MFXListIcon.h.

Referenced by getSelTextColor().

◆ state

FXbool MFXListIcon::state = FALSE
protected

State of item.

Definition at line 307 of file MFXListIcon.h.

Referenced by onLeftBtnPress(), and onLeftBtnRelease().

◆ textColor

FXColor MFXListIcon::textColor = 0
protected

Text color.

Definition at line 277 of file MFXListIcon.h.

Referenced by getTextColor(), and setTextColor().

◆ viewable

MFXListIconItem* MFXListIcon::viewable = nullptr
protected

Viewable item.

Definition at line 271 of file MFXListIcon.h.

Referenced by clearItems(), getViewableItem(), insertItem(), layout(), makeItemVisible(), and removeItem().

◆ visible

FXint MFXListIcon::visible = 0
protected

Number of rows high.

Definition at line 292 of file MFXListIcon.h.

Referenced by getDefaultHeight(), getNumVisible(), and setNumVisible().


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