![]() |
Eclipse SUMO - Simulation of Urban MObility
|
ComboBox with icon. More...
#include <MFXComboBoxIcon.h>
Public Types | |
enum | { ID_LIST = FXPacker::ID_LAST , ID_TEXT , ID_LAST } |
FOX declaration. More... | |
Public Member Functions | |
FXint | appendIconItem (const FXString &text, FXIcon *icon=nullptr, FXColor bgColor=FXRGB(255, 255, 255), void *ptr=nullptr) |
append icon | |
void | clearItems () |
Remove all items from the list. | |
virtual void | create () |
Create server-side resources. | |
virtual void | destroy () |
Destroy server-side resources. | |
virtual void | detach () |
Detach server-side resources. | |
virtual void | disable () |
Disable combo box. | |
virtual void | enable () |
Enable combo box. | |
FXint | findItem (const FXString &text, FXint start=-1, FXuint flags=SEARCH_FORWARD|SEARCH_WRAP) const |
FXint | findItemByData (const void *ptr, FXint start=-1, FXuint flags=SEARCH_FORWARD|SEARCH_WRAP) const |
FXColor | getBackColor () const |
Get background color. | |
FXuint | getComboStyle () const |
Get the combobox style. | |
FXint | getCurrentItem () const |
Get the current item's index. | |
virtual FXint | getDefaultHeight () |
Return default height. | |
virtual FXint | getDefaultWidth () |
Return default width. | |
FXFont * | getFont () const |
Get text font. | |
const FXString & | getHelpText () const |
Get the combobox help text. | |
FXString | getItem (FXint index) const |
Return the item at the given index. | |
void * | getItemData (FXint index) const |
Get data pointer for specified item. | |
FXString | getItemText (FXint index) const |
Get text for specified item. | |
FXuint | getJustify () const |
Return text justification mode. | |
FXint | getNumColumns () const |
Get the number of columns. | |
FXint | getNumItems () const |
Return the number of items in the list. | |
FXint | getNumVisible () const |
Return the number of visible items. | |
FXColor | getSelBackColor () const |
Return selected background color. | |
FXColor | getSelTextColor () const |
Return selected text color. | |
FXListSortFunc | getSortFunc () const |
Return sort function. | |
FXString | getText () const |
Get the text. | |
FXColor | getTextColor () const |
Return text color. | |
const FXString & | getTipText () const |
Get the tool tip message for this combobox. | |
FXint | insertIconItem (FXint index, const FXString &text, FXIcon *icon=nullptr, FXColor bgColor=FXRGB(255, 255, 255), void *ptr=nullptr) |
Insert a new item at index. | |
FXbool | isEditable () const |
Return true if combobox is editable. | |
FXbool | isItemCurrent (FXint index) const |
Return true if current item. | |
FXbool | isPaneShown () const |
Is the pane shown. | |
virtual void | layout () |
Perform layout. | |
MFXComboBoxIcon (FXComposite *p, FXint cols, const bool haveIcons, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=COMBOBOX_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD) | |
Construct a Combo Box widget with room to display cols columns of text. | |
FXint | moveItem (FXint newindex, FXint oldindex) |
Move item from oldindex to newindex. | |
FXint | prependItem (const FXString &text, void *ptr=NULL) |
Prepend an item to the list. | |
void | removeItem (FXint index) |
Remove this item from the list. | |
virtual void | setBackColor (FXColor clr) |
Set window background color. | |
void | setComboStyle (FXuint mode) |
Set the combobox style. | |
void | setCurrentItem (FXint index, FXbool notify=FALSE) |
Set the current item (index is zero-based) | |
void | setCustomText (const FXString text) |
set custom text | |
void | setEditable (FXbool edit=TRUE) |
Set editable state. | |
void | setFont (FXFont *fnt) |
Set text font. | |
void | setHelpText (const FXString &txt) |
Set the combobox help text. | |
FXint | setIconItem (FXint index, const FXString &text, FXIcon *icon=nullptr, FXColor bgColor=FXRGB(255, 255, 255), void *ptr=nullptr) |
Replace the item at index. | |
bool | setItem (const FXString &text, FXIcon *icon) |
set Item | |
void | setItemData (FXint index, void *ptr) const |
Set data pointer for specified item. | |
void | setJustify (FXuint mode) |
Change text justification mode; default is JUSTIFY_LEFT. | |
void | setNumColumns (FXint cols) |
Set the number of columns. | |
void | setNumVisible (FXint nvis) |
Set the number of visible items in the drop down list. | |
void | setSelBackColor (FXColor clr) |
Change selected background color. | |
void | setSelTextColor (FXColor clr) |
Change selected text color. | |
void | setSortFunc (FXListSortFunc func) |
Change sort function. | |
void | setText (FXString text) |
Set text. | |
void | setTextColor (FXColor clr) |
Change text color. | |
void | setTipText (const FXString &txt) |
Set the tool tip message for this combobox. | |
void | sortItems () |
Sort items using current sort function. | |
virtual | ~MFXComboBoxIcon () |
Destructor. | |
long | onFocusUp (FXObject *, FXSelector, void *) |
Commands. | |
long | onFocusDown (FXObject *, FXSelector, void *) |
long | onFocusSelf (FXObject *, FXSelector, void *) |
long | onMouseWheel (FXObject *, FXSelector, void *) |
long | onTextButton (FXObject *, FXSelector, void *) |
long | onTextChanged (FXObject *, FXSelector, void *) |
long | onTextCommand (FXObject *, FXSelector, void *) |
long | onListClicked (FXObject *, FXSelector, void *) |
long | onFwdToText (FXObject *, FXSelector, void *) |
long | onUpdFmText (FXObject *, FXSelector, void *) |
Protected Member Functions | |
MFXComboBoxIcon () | |
FOX need this. | |
Protected Attributes | |
FXMenuButton * | myButton = nullptr |
myButton | |
const bool | myHaveIcons |
check if this iconComboBox have icons | |
FXLabel * | myIconLabel = nullptr |
label for icon | |
MFXListIcon * | myList = nullptr |
list | |
FXPopup * | myPane = nullptr |
popup | |
MFXTextFieldIcon * | myTextFieldIcon = nullptr |
textField with icon | |
Private Member Functions | |
MFXComboBoxIcon (const MFXComboBoxIcon &) | |
invalidate copy constructor | |
MFXComboBoxIcon & | operator= (const MFXComboBoxIcon &)=delete |
invalidate assignment operator | |
ComboBox with icon.
Definition at line 30 of file MFXComboBoxIcon.h.
anonymous enum |
FOX declaration.
enum for ID
Enumerator | |
---|---|
ID_LIST | |
ID_TEXT | |
ID_LAST |
Definition at line 36 of file MFXComboBoxIcon.h.
MFXComboBoxIcon::MFXComboBoxIcon | ( | FXComposite * | p, |
FXint | cols, | ||
const bool | haveIcons, | ||
FXObject * | tgt = NULL , |
||
FXSelector | sel = 0 , |
||
FXuint | opts = COMBOBOX_NORMAL , |
||
FXint | x = 0 , |
||
FXint | y = 0 , |
||
FXint | w = 0 , |
||
FXint | h = 0 , |
||
FXint | pl = DEFAULT_PAD , |
||
FXint | pr = DEFAULT_PAD , |
||
FXint | pt = DEFAULT_PAD , |
||
FXint | pb = DEFAULT_PAD |
||
) |
Construct a Combo Box widget with room to display cols columns of text.
Definition at line 65 of file MFXComboBoxIcon.cpp.
|
virtual |
Destructor.
Definition at line 91 of file MFXComboBoxIcon.cpp.
References myButton, myIconLabel, myList, myPane, and myTextFieldIcon.
|
protected |
FOX need this.
Definition at line 767 of file MFXComboBoxIcon.cpp.
|
private |
invalidate copy constructor
FXint MFXComboBoxIcon::appendIconItem | ( | const FXString & | text, |
FXIcon * | icon = nullptr , |
||
FXColor | bgColor = FXRGB(255, 255, 255) , |
||
void * | ptr = nullptr |
||
) |
append icon
Definition at line 325 of file MFXComboBoxIcon.cpp.
References getNumItems(), isItemCurrent(), myIconLabel, myList, myTextFieldIcon, and MFXTextFieldIcon::setIcon().
Referenced by GUIDialog_ViewSettings::buildContainersFrame(), GUIDialog_ViewSettings::buildPersonsFrame(), GUIDialog_ViewSettings::buildVehiclesFrame(), GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelParameters(), GNEMatchGenericDataAttribute::enableMatchGenericDataAttribute(), GUIPropertySchemeStorage< T >::fill(), GNEMeanDataFrame::MeanDataSelector::MeanDataSelector(), onTextCommand(), DemandElementSelector::refreshDemandElementSelector(), GNETagSelector::setCurrentTagType(), DemandElementSelector::setDemandElements(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNEMatchAttribute::updateTag(), GNEVehicleTypeDialog::VTypeAttributes::VShapeRow::VShapeRow(), and GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::VTypeAttributeRow().
void MFXComboBoxIcon::clearItems | ( | ) |
Remove all items from the list.
Definition at line 419 of file MFXComboBoxIcon.cpp.
References myList, myTextFieldIcon, and MFXTextFieldIcon::resetTextField().
Referenced by GNEMatchGenericDataAttribute::enableMatchGenericDataAttribute(), DemandElementSelector::refreshDemandElementSelector(), GNETagSelector::setCurrentTagType(), DemandElementSelector::setDemandElements(), and GNEMatchAttribute::updateTag().
|
virtual |
Create server-side resources.
Definition at line 102 of file MFXComboBoxIcon.cpp.
References myPane.
|
virtual |
Destroy server-side resources.
Definition at line 116 of file MFXComboBoxIcon.cpp.
References myPane.
|
virtual |
Detach server-side resources.
Definition at line 109 of file MFXComboBoxIcon.cpp.
References myPane.
|
virtual |
Disable combo box.
Definition at line 134 of file MFXComboBoxIcon.cpp.
References myButton, myIconLabel, and myTextFieldIcon.
Referenced by GNEMatchAttribute::disableMatchAttribute(), GNEMatchGenericDataAttribute::disableMatchGenericDataAttribute(), GNEMatchGenericDataAttribute::onCmdSetBegin(), and GNEMatchGenericDataAttribute::onCmdSetEnd().
|
virtual |
Enable combo box.
Definition at line 123 of file MFXComboBoxIcon.cpp.
References myButton, myIconLabel, and myTextFieldIcon.
Referenced by GNEMatchAttribute::enableMatchAttribute(), GNEMatchGenericDataAttribute::enableMatchGenericDataAttribute(), GNEMatchGenericDataAttribute::onCmdSetBegin(), and GNEMatchGenericDataAttribute::onCmdSetEnd().
FXint MFXComboBoxIcon::findItem | ( | const FXString & | text, |
FXint | start = -1 , |
||
FXuint | flags = SEARCH_FORWARD | SEARCH_WRAP |
||
) | const |
Search items by name, beginning from item start. If the start item is -1 the search will start at the first item in the list. Flags may be SEARCH_FORWARD or SEARCH_BACKWARD to control the search direction; this can be combined with SEARCH_NOWRAP or SEARCH_WRAP to control whether the search wraps at the start or end of the list. The option SEARCH_IGNORECASE causes a case-insensitive match. Finally, passing SEARCH_PREFIX causes searching for a prefix of the item name. Return -1 if no matching item is found.
Definition at line 427 of file MFXComboBoxIcon.cpp.
References myList.
FXint MFXComboBoxIcon::findItemByData | ( | const void * | ptr, |
FXint | start = -1 , |
||
FXuint | flags = SEARCH_FORWARD | SEARCH_WRAP |
||
) | const |
Search items by associated user data, beginning from item start. If the start item is -1 the search will start at the first item in the list. Flags may be SEARCH_FORWARD or SEARCH_BACKWARD to control the search direction; this can be combined with SEARCH_NOWRAP or SEARCH_WRAP to control whether the search wraps at the start or end of the list.
Definition at line 433 of file MFXComboBoxIcon.cpp.
References myList.
FXColor MFXComboBoxIcon::getBackColor | ( | ) | const |
Get background color.
Definition at line 523 of file MFXComboBoxIcon.cpp.
References myTextFieldIcon.
FXuint MFXComboBoxIcon::getComboStyle | ( | ) | const |
Get the combobox style.
Definition at line 497 of file MFXComboBoxIcon.cpp.
References COMBOBOX_MASK.
FXint MFXComboBoxIcon::getCurrentItem | ( | ) | const |
Get the current item's index.
Definition at line 279 of file MFXComboBoxIcon.cpp.
References myList.
Referenced by GUIDialog_ViewSettings::onCmdColorChange(), GNEMatchGenericDataAttribute::onCmdSetInterval(), onFocusDown(), onFocusUp(), and onMouseWheel().
|
virtual |
Return default height.
Definition at line 158 of file MFXComboBoxIcon.cpp.
References myButton, and myTextFieldIcon.
|
virtual |
Return default width.
Definition at line 145 of file MFXComboBoxIcon.cpp.
References myButton, myIconLabel, myPane, and myTextFieldIcon.
FXFont * MFXComboBoxIcon::getFont | ( | ) | const |
const FXString & MFXComboBoxIcon::getHelpText | ( | ) | const |
Get the combobox help text.
Definition at line 592 of file MFXComboBoxIcon.cpp.
References myTextFieldIcon.
FXString MFXComboBoxIcon::getItem | ( | FXint | index | ) | const |
Return the item at the given index.
Definition at line 285 of file MFXComboBoxIcon.cpp.
References myList.
Referenced by DemandElementSelector::refreshDemandElementSelector().
void * MFXComboBoxIcon::getItemData | ( | FXint | index | ) | const |
Get data pointer for specified item.
Definition at line 451 of file MFXComboBoxIcon.cpp.
References myList.
Referenced by onTextCommand().
FXString MFXComboBoxIcon::getItemText | ( | FXint | index | ) | const |
FXuint MFXComboBoxIcon::getJustify | ( | ) | const |
Return text justification mode.
Definition at line 509 of file MFXComboBoxIcon.cpp.
References myTextFieldIcon.
FXint MFXComboBoxIcon::getNumColumns | ( | ) | const |
Get the number of columns.
Definition at line 212 of file MFXComboBoxIcon.cpp.
References myTextFieldIcon.
FXint MFXComboBoxIcon::getNumItems | ( | ) | const |
Return the number of items in the list.
Definition at line 218 of file MFXComboBoxIcon.cpp.
References myList.
Referenced by appendIconItem(), GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelParameters(), GNEMatchGenericDataAttribute::enableMatchGenericDataAttribute(), insertIconItem(), GNEMeanDataFrame::MeanDataSelector::MeanDataSelector(), moveItem(), onFocusDown(), onFocusUp(), onMouseWheel(), DemandElementSelector::refreshDemandElementSelector(), GNETagSelector::setCurrentTagType(), setIconItem(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNEMatchAttribute::updateTag(), and GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::VTypeAttributeRow().
FXint MFXComboBoxIcon::getNumVisible | ( | ) | const |
Return the number of visible items.
Definition at line 224 of file MFXComboBoxIcon.cpp.
References myList.
FXColor MFXComboBoxIcon::getSelBackColor | ( | ) | const |
Return selected background color.
Definition at line 549 of file MFXComboBoxIcon.cpp.
References myTextFieldIcon.
FXColor MFXComboBoxIcon::getSelTextColor | ( | ) | const |
Return selected text color.
Definition at line 562 of file MFXComboBoxIcon.cpp.
References myTextFieldIcon.
FXListSortFunc MFXComboBoxIcon::getSortFunc | ( | ) | const |
FXString MFXComboBoxIcon::getText | ( | ) | const |
Get the text.
Definition at line 200 of file MFXComboBoxIcon.cpp.
References myTextFieldIcon.
Referenced by DemandElementSelector::onCmdSelectDemandElement(), GNEElementSet::onCmdSelectElementSet(), GNEMatchGenericDataAttribute::onCmdSelectTag(), GNETagSelector::onCmdSelectTag(), GNEMatchAttribute::onCmdSelMBTag(), onListClicked(), GUIDialog_ViewSettings::rebuildColorMatrices(), setCurrentItem(), and GNEVehicleTypeDialog::VTypeAttributes::VClassRow::setVariable().
FXColor MFXComboBoxIcon::getTextColor | ( | ) | const |
const FXString & MFXComboBoxIcon::getTipText | ( | ) | const |
Get the tool tip message for this combobox.
Definition at line 604 of file MFXComboBoxIcon.cpp.
References myTextFieldIcon.
FXint MFXComboBoxIcon::insertIconItem | ( | FXint | index, |
const FXString & | text, | ||
FXIcon * | icon = nullptr , |
||
FXColor | bgColor = FXRGB(255, 255, 255) , |
||
void * | ptr = nullptr |
||
) |
Insert a new item at index.
Definition at line 308 of file MFXComboBoxIcon.cpp.
References getNumItems(), isItemCurrent(), myIconLabel, myList, myTextFieldIcon, and MFXTextFieldIcon::setIcon().
Referenced by onTextCommand().
FXbool MFXComboBoxIcon::isEditable | ( | ) | const |
Return true if combobox is editable.
Definition at line 188 of file MFXComboBoxIcon.cpp.
References myTextFieldIcon.
FXbool MFXComboBoxIcon::isItemCurrent | ( | FXint | index | ) | const |
Return true if current item.
Definition at line 242 of file MFXComboBoxIcon.cpp.
References myList.
Referenced by appendIconItem(), insertIconItem(), prependItem(), and setIconItem().
FXbool MFXComboBoxIcon::isPaneShown | ( | ) | const |
Is the pane shown.
Definition at line 457 of file MFXComboBoxIcon.cpp.
References myPane.
Referenced by onUpdFmText().
|
virtual |
Perform layout.
Definition at line 167 of file MFXComboBoxIcon.cpp.
References myButton, myHaveIcons, myIconLabel, myList, myPane, and myTextFieldIcon.
FXint MFXComboBoxIcon::moveItem | ( | FXint | newindex, |
FXint | oldindex | ||
) |
Move item from oldindex to newindex.
Definition at line 379 of file MFXComboBoxIcon.cpp.
References getNumItems(), myIconLabel, myList, myTextFieldIcon, and MFXTextFieldIcon::setIcon().
long MFXComboBoxIcon::onFocusDown | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 724 of file MFXComboBoxIcon.cpp.
References getCurrentItem(), getNumItems(), and setCurrentItem().
Referenced by FXDEFMAP().
long MFXComboBoxIcon::onFocusSelf | ( | FXObject * | sender, |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 700 of file MFXComboBoxIcon.cpp.
References myTextFieldIcon.
Referenced by FXDEFMAP().
long MFXComboBoxIcon::onFocusUp | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Commands.
Definition at line 706 of file MFXComboBoxIcon.cpp.
References getCurrentItem(), getNumItems(), and setCurrentItem().
Referenced by FXDEFMAP().
long MFXComboBoxIcon::onFwdToText | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
Definition at line 616 of file MFXComboBoxIcon.cpp.
References myTextFieldIcon.
Referenced by FXDEFMAP().
long MFXComboBoxIcon::onListClicked | ( | FXObject * | , |
FXSelector | sel, | ||
void * | ptr | ||
) |
Definition at line 622 of file MFXComboBoxIcon.cpp.
References MFXListItemIcon::getBackGroundColor(), getText(), myButton, myIconLabel, myList, myTextFieldIcon, and MFXTextFieldIcon::setIcon().
Referenced by FXDEFMAP().
long MFXComboBoxIcon::onMouseWheel | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 741 of file MFXComboBoxIcon.cpp.
References getCurrentItem(), getNumItems(), and setCurrentItem().
Referenced by FXDEFMAP().
long MFXComboBoxIcon::onTextButton | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 647 of file MFXComboBoxIcon.cpp.
References myButton.
Referenced by FXDEFMAP().
long MFXComboBoxIcon::onTextChanged | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 658 of file MFXComboBoxIcon.cpp.
Referenced by FXDEFMAP().
long MFXComboBoxIcon::onTextCommand | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 664 of file MFXComboBoxIcon.cpp.
References appendIconItem(), COMBOBOX_INS_MASK, getItemData(), insertIconItem(), myIconLabel, myList, myTextFieldIcon, MFXTextFieldIcon::setIcon(), and setIconItem().
Referenced by FXDEFMAP().
long MFXComboBoxIcon::onUpdFmText | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 610 of file MFXComboBoxIcon.cpp.
References isPaneShown().
Referenced by FXDEFMAP().
|
privatedelete |
invalidate assignment operator
FXint MFXComboBoxIcon::prependItem | ( | const FXString & | text, |
void * | ptr = NULL |
||
) |
Prepend an item to the list.
Definition at line 365 of file MFXComboBoxIcon.cpp.
References isItemCurrent(), myIconLabel, myList, myTextFieldIcon, and MFXTextFieldIcon::setIcon().
void MFXComboBoxIcon::removeItem | ( | FXint | index | ) |
Remove this item from the list.
Definition at line 401 of file MFXComboBoxIcon.cpp.
References myIconLabel, myList, myTextFieldIcon, and MFXTextFieldIcon::setIcon().
|
virtual |
Set window background color.
Definition at line 515 of file MFXComboBoxIcon.cpp.
References myIconLabel, myList, and myTextFieldIcon.
void MFXComboBoxIcon::setComboStyle | ( | FXuint | mode | ) |
Set the combobox style.
Definition at line 480 of file MFXComboBoxIcon.cpp.
References COMBOBOX_MASK, myList, and myTextFieldIcon.
void MFXComboBoxIcon::setCurrentItem | ( | FXint | index, |
FXbool | notify = FALSE |
||
) |
Set the current item (index is zero-based)
Definition at line 248 of file MFXComboBoxIcon.cpp.
References MFXListItemIcon::getBackGroundColor(), getText(), myIconLabel, myList, myTextFieldIcon, MFXTextFieldIcon::resetTextField(), and MFXTextFieldIcon::setIcon().
Referenced by GUIDialog_ViewSettings::buildContainersFrame(), GUIDialog_ViewSettings::buildPersonsFrame(), GUIDialog_ViewSettings::buildVehiclesFrame(), GNEMatchGenericDataAttribute::enableMatchGenericDataAttribute(), GUIPropertySchemeStorage< T >::fill(), GUIDialog_ViewSettings::onCmdNameChange(), GNETagSelector::onCmdSelectTag(), onFocusDown(), onFocusUp(), onMouseWheel(), DemandElementSelector::refreshDemandElementSelector(), GNETagSelector::setCurrentTag(), and GNEMatchAttribute::updateTag().
void MFXComboBoxIcon::setCustomText | ( | const FXString | text | ) |
set custom text
Definition at line 358 of file MFXComboBoxIcon.cpp.
References myTextFieldIcon.
Referenced by DemandElementSelector::setDemandElement(), and DemandElementSelector::setDemandElements().
void MFXComboBoxIcon::setEditable | ( | FXbool | edit = TRUE | ) |
void MFXComboBoxIcon::setFont | ( | FXFont * | fnt | ) |
Set text font.
Definition at line 463 of file MFXComboBoxIcon.cpp.
References myList, and myTextFieldIcon.
void MFXComboBoxIcon::setHelpText | ( | const FXString & | txt | ) |
Set the combobox help text.
Definition at line 586 of file MFXComboBoxIcon.cpp.
References myTextFieldIcon.
FXint MFXComboBoxIcon::setIconItem | ( | FXint | index, |
const FXString & | text, | ||
FXIcon * | icon = nullptr , |
||
FXColor | bgColor = FXRGB(255, 255, 255) , |
||
void * | ptr = nullptr |
||
) |
Replace the item at index.
Definition at line 291 of file MFXComboBoxIcon.cpp.
References getNumItems(), isItemCurrent(), myIconLabel, myList, myTextFieldIcon, and MFXTextFieldIcon::setIcon().
Referenced by onTextCommand().
bool MFXComboBoxIcon::setItem | ( | const FXString & | text, |
FXIcon * | icon | ||
) |
set Item
Definition at line 339 of file MFXComboBoxIcon.cpp.
References MFXListItemIcon::getBackGroundColor(), myIconLabel, myList, myTextFieldIcon, and MFXTextFieldIcon::setIcon().
Referenced by DemandElementSelector::setDemandElement(), and DemandElementSelector::showDemandElementSelector().
void MFXComboBoxIcon::setItemData | ( | FXint | index, |
void * | ptr | ||
) | const |
Set data pointer for specified item.
Definition at line 445 of file MFXComboBoxIcon.cpp.
References myList.
void MFXComboBoxIcon::setJustify | ( | FXuint | mode | ) |
Change text justification mode; default is JUSTIFY_LEFT.
Definition at line 503 of file MFXComboBoxIcon.cpp.
References myTextFieldIcon.
void MFXComboBoxIcon::setNumColumns | ( | FXint | cols | ) |
Set the number of columns.
Definition at line 206 of file MFXComboBoxIcon.cpp.
References myTextFieldIcon.
void MFXComboBoxIcon::setNumVisible | ( | FXint | nvis | ) |
Set the number of visible items in the drop down list.
Definition at line 236 of file MFXComboBoxIcon.cpp.
References myList.
Referenced by GUIDialog_ViewSettings::buildContainersFrame(), GUIDialog_ViewSettings::buildDataFrame(), GUIDialog_ViewSettings::buildJunctionsFrame(), GUIDialog_ViewSettings::buildPersonsFrame(), GUIDialog_ViewSettings::buildPOIsFrame(), GUIDialog_ViewSettings::buildPolygonsFrame(), GUIDialog_ViewSettings::buildStreetsFrame(), GUIDialog_ViewSettings::buildVehiclesFrame(), GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelParameters(), GNEMatchGenericDataAttribute::enableMatchGenericDataAttribute(), GNEMeanDataFrame::MeanDataSelector::MeanDataSelector(), DemandElementSelector::refreshDemandElementSelector(), GNETagSelector::setCurrentTagType(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNEMatchAttribute::updateTag(), GNEVehicleTypeDialog::VTypeAttributes::VShapeRow::VShapeRow(), and GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::VTypeAttributeRow().
void MFXComboBoxIcon::setSelBackColor | ( | FXColor | clr | ) |
Change selected background color.
Definition at line 542 of file MFXComboBoxIcon.cpp.
References myList, and myTextFieldIcon.
void MFXComboBoxIcon::setSelTextColor | ( | FXColor | clr | ) |
Change selected text color.
Definition at line 555 of file MFXComboBoxIcon.cpp.
References myList, and myTextFieldIcon.
void MFXComboBoxIcon::setSortFunc | ( | FXListSortFunc | func | ) |
void MFXComboBoxIcon::setText | ( | FXString | text | ) |
void MFXComboBoxIcon::setTextColor | ( | FXColor | clr | ) |
Change text color.
Definition at line 529 of file MFXComboBoxIcon.cpp.
References myList, and myTextFieldIcon.
Referenced by GNEMatchAttribute::disableMatchAttribute(), GNEMatchGenericDataAttribute::disableMatchGenericDataAttribute(), DemandElementSelector::onCmdSelectDemandElement(), GNEElementSet::onCmdSelectElementSet(), GNEMatchGenericDataAttribute::onCmdSelectTag(), GNETagSelector::onCmdSelectTag(), GNEMatchAttribute::onCmdSelMBTag(), GNETagSelector::setCurrentTag(), GNETagSelector::setCurrentTagType(), GNEVehicleTypeDialog::VTypeAttributes::VClassRow::setVariable(), and GNEMatchAttribute::updateTag().
void MFXComboBoxIcon::setTipText | ( | const FXString & | txt | ) |
Set the tool tip message for this combobox.
Definition at line 598 of file MFXComboBoxIcon.cpp.
References myTextFieldIcon.
void MFXComboBoxIcon::sortItems | ( | ) |
Sort items using current sort function.
Definition at line 568 of file MFXComboBoxIcon.cpp.
References myList.
|
protected |
myButton
Definition at line 259 of file MFXComboBoxIcon.h.
Referenced by disable(), enable(), getDefaultHeight(), getDefaultWidth(), layout(), onListClicked(), onTextButton(), and ~MFXComboBoxIcon().
|
protected |
check if this iconComboBox have icons
Definition at line 268 of file MFXComboBoxIcon.h.
Referenced by layout().
|
protected |
label for icon
Definition at line 253 of file MFXComboBoxIcon.h.
Referenced by appendIconItem(), disable(), enable(), getDefaultWidth(), insertIconItem(), layout(), moveItem(), onListClicked(), onTextCommand(), prependItem(), removeItem(), setBackColor(), setCurrentItem(), setIconItem(), setItem(), and ~MFXComboBoxIcon().
|
protected |
list
Definition at line 262 of file MFXComboBoxIcon.h.
Referenced by appendIconItem(), clearItems(), findItem(), findItemByData(), getCurrentItem(), getItem(), getItemData(), getItemText(), getNumItems(), getNumVisible(), getSortFunc(), insertIconItem(), isItemCurrent(), layout(), moveItem(), onListClicked(), onTextCommand(), prependItem(), removeItem(), setBackColor(), setComboStyle(), setCurrentItem(), setFont(), setIconItem(), setItem(), setItemData(), setNumVisible(), setSelBackColor(), setSelTextColor(), setSortFunc(), setTextColor(), sortItems(), and ~MFXComboBoxIcon().
|
protected |
popup
Definition at line 265 of file MFXComboBoxIcon.h.
Referenced by create(), destroy(), detach(), getDefaultWidth(), isPaneShown(), layout(), and ~MFXComboBoxIcon().
|
protected |
textField with icon
Definition at line 256 of file MFXComboBoxIcon.h.
Referenced by appendIconItem(), clearItems(), disable(), enable(), getBackColor(), getDefaultHeight(), getDefaultWidth(), getFont(), getHelpText(), getJustify(), getNumColumns(), getSelBackColor(), getSelTextColor(), getText(), getTextColor(), getTipText(), insertIconItem(), isEditable(), layout(), moveItem(), onFocusSelf(), onFwdToText(), onListClicked(), onTextCommand(), prependItem(), removeItem(), setBackColor(), setComboStyle(), setCurrentItem(), setCustomText(), setEditable(), setFont(), setHelpText(), setIconItem(), setItem(), setJustify(), setNumColumns(), setSelBackColor(), setSelTextColor(), setText(), setTextColor(), setTipText(), and ~MFXComboBoxIcon().