![]() |
Eclipse SUMO - Simulation of Urban MObility
|
ComboBox with icon. More...
#include <MFXIconComboBox.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 More... | |
| void | clearItems () |
| Remove all items from the list. More... | |
| virtual void | create () |
| Create server-side resources. More... | |
| virtual void | destroy () |
| Destroy server-side resources. More... | |
| virtual void | detach () |
| Detach server-side resources. More... | |
| virtual void | disable () |
| Disable combo box. More... | |
| virtual void | enable () |
| Enable combo box. More... | |
| 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. More... | |
| FXuint | getComboStyle () const |
| Get the combobox style. More... | |
| FXint | getCurrentItem () const |
| Get the current item's index. More... | |
| virtual FXint | getDefaultHeight () |
| Return default height. More... | |
| virtual FXint | getDefaultWidth () |
| Return default width. More... | |
| FXFont * | getFont () const |
| Get text font. More... | |
| const FXString & | getHelpText () const |
| Get the combobox help text. More... | |
| FXString | getItem (FXint index) const |
| Return the item at the given index. More... | |
| void * | getItemData (FXint index) const |
| Get data pointer for specified item. More... | |
| FXString | getItemText (FXint index) const |
| Get text for specified item. More... | |
| FXuint | getJustify () const |
| Return text justification mode. More... | |
| FXint | getNumColumns () const |
| Get the number of columns. More... | |
| FXint | getNumItems () const |
| Return the number of items in the list. More... | |
| FXint | getNumVisible () const |
| Return the number of visible items. More... | |
| FXColor | getSelBackColor () const |
| Return selected background color. More... | |
| FXColor | getSelTextColor () const |
| Return selected text color. More... | |
| FXListSortFunc | getSortFunc () const |
| Return sort function. More... | |
| FXString | getText () const |
| Get the text. More... | |
| FXColor | getTextColor () const |
| Return text color. More... | |
| const FXString & | getTipText () const |
| Get the tool tip message for this combobox. More... | |
| 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. More... | |
| FXbool | isEditable () const |
| Return true if combobox is editable. More... | |
| FXbool | isItemCurrent (FXint index) const |
| Return true if current item. More... | |
| FXbool | isPaneShown () const |
| Is the pane shown. More... | |
| virtual void | layout () |
| Perform layout. More... | |
| MFXIconComboBox (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. More... | |
| FXint | moveItem (FXint newindex, FXint oldindex) |
| Move item from oldindex to newindex. More... | |
| FXint | prependItem (const FXString &text, void *ptr=NULL) |
| Prepend an item to the list. More... | |
| void | removeItem (FXint index) |
| Remove this item from the list. More... | |
| virtual void | setBackColor (FXColor clr) |
| Set window background color. More... | |
| void | setComboStyle (FXuint mode) |
| Set the combobox style. More... | |
| void | setCurrentItem (FXint index, FXbool notify=FALSE) |
| Set the current item (index is zero-based) More... | |
| void | setCustomText (const FXString text) |
| set custom text More... | |
| void | setEditable (FXbool edit=TRUE) |
| Set editable state. More... | |
| void | setFont (FXFont *fnt) |
| Set text font. More... | |
| void | setHelpText (const FXString &txt) |
| Set the combobox help text. More... | |
| FXint | setIconItem (FXint index, const FXString &text, FXIcon *icon=nullptr, FXColor bgColor=FXRGB(255, 255, 255), void *ptr=nullptr) |
| Replace the item at index. More... | |
| bool | setItem (const FXString &text, FXIcon *icon) |
| set Item More... | |
| void | setItemData (FXint index, void *ptr) const |
| Set data pointer for specified item. More... | |
| void | setJustify (FXuint mode) |
| Change text justification mode; default is JUSTIFY_LEFT. More... | |
| void | setNumColumns (FXint cols) |
| Set the number of columns. More... | |
| void | setNumVisible (FXint nvis) |
| Set the number of visible items in the drop down list. More... | |
| void | setSelBackColor (FXColor clr) |
| Change selected background color. More... | |
| void | setSelTextColor (FXColor clr) |
| Change selected text color. More... | |
| void | setSortFunc (FXListSortFunc func) |
| Change sort function. More... | |
| void | setText (FXString text) |
| Set text. More... | |
| void | setTextColor (FXColor clr) |
| Change text color. More... | |
| void | setTipText (const FXString &txt) |
| Set the tool tip message for this combobox. More... | |
| void | sortItems () |
| Sort items using current sort function. More... | |
| virtual | ~MFXIconComboBox () |
| Destructor. More... | |
| long | onFocusUp (FXObject *, FXSelector, void *) |
| Commands. More... | |
| 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 | |
| MFXIconComboBox () | |
| FOX need this. More... | |
Protected Attributes | |
| FXMenuButton * | myButton = nullptr |
| myButton More... | |
| const bool | myHaveIcons |
| check if this iconComboBox have icons More... | |
| FXLabel * | myIconLabel = nullptr |
| label for icon More... | |
| FXList * | myList = nullptr |
| list More... | |
| FXPopup * | myPane = nullptr |
| popup More... | |
| MFXTextFieldIcon * | myTextFieldIcon = nullptr |
| textField with icon More... | |
Private Member Functions | |
| MFXIconComboBox (const MFXIconComboBox &) | |
| invalidate copy constructor More... | |
| MFXIconComboBox & | operator= (const MFXIconComboBox &)=delete |
| invalidate assignment operator More... | |
ComboBox with icon.
Definition at line 53 of file MFXIconComboBox.h.
| anonymous enum |
FOX declaration.
enum for ID
| Enumerator | |
|---|---|
| ID_LIST | |
| ID_TEXT | |
| ID_LAST | |
Definition at line 59 of file MFXIconComboBox.h.
| MFXIconComboBox::MFXIconComboBox | ( | 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 122 of file MFXIconComboBox.cpp.
References ID_LIST, ID_TEXT, myButton, myHaveIcons, myIconLabel, myList, myPane, and myTextFieldIcon.
|
virtual |
Destructor.
Definition at line 148 of file MFXIconComboBox.cpp.
References myButton, myIconLabel, myList, myPane, and myTextFieldIcon.
|
protected |
FOX need this.
Definition at line 825 of file MFXIconComboBox.cpp.
|
private |
invalidate copy constructor
| FXint MFXIconComboBox::appendIconItem | ( | const FXString & | text, |
| FXIcon * | icon = nullptr, |
||
| FXColor | bgColor = FXRGB(255, 255, 255), |
||
| void * | ptr = nullptr |
||
| ) |
append icon
Definition at line 383 of file MFXIconComboBox.cpp.
References getNumItems(), isItemCurrent(), myIconLabel, myList, and myTextFieldIcon.
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 MFXIconComboBox::clearItems | ( | ) |
Remove all items from the list.
Definition at line 477 of file MFXIconComboBox.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 159 of file MFXIconComboBox.cpp.
References myPane.
|
virtual |
Destroy server-side resources.
Definition at line 173 of file MFXIconComboBox.cpp.
References myPane.
|
virtual |
Detach server-side resources.
Definition at line 166 of file MFXIconComboBox.cpp.
References myPane.
|
virtual |
Disable combo box.
Definition at line 191 of file MFXIconComboBox.cpp.
References myButton, myIconLabel, and myTextFieldIcon.
Referenced by GNEMatchAttribute::disableMatchAttribute(), GNEMatchGenericDataAttribute::disableMatchGenericDataAttribute(), GNEMatchGenericDataAttribute::onCmdSetBegin(), and GNEMatchGenericDataAttribute::onCmdSetEnd().
|
virtual |
Enable combo box.
Definition at line 180 of file MFXIconComboBox.cpp.
References myButton, myIconLabel, and myTextFieldIcon.
Referenced by GNEMatchAttribute::enableMatchAttribute(), GNEMatchGenericDataAttribute::enableMatchGenericDataAttribute(), GNEMatchGenericDataAttribute::onCmdSetBegin(), and GNEMatchGenericDataAttribute::onCmdSetEnd().
| FXint MFXIconComboBox::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 485 of file MFXIconComboBox.cpp.
References myList.
| FXint MFXIconComboBox::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 491 of file MFXIconComboBox.cpp.
References myList.
| FXColor MFXIconComboBox::getBackColor | ( | ) | const |
Get background color.
Definition at line 581 of file MFXIconComboBox.cpp.
References myTextFieldIcon.
| FXuint MFXIconComboBox::getComboStyle | ( | ) | const |
Get the combobox style.
Definition at line 555 of file MFXIconComboBox.cpp.
References COMBOBOX_MASK.
| FXint MFXIconComboBox::getCurrentItem | ( | ) | const |
Get the current item's index.
Definition at line 337 of file MFXIconComboBox.cpp.
References myList.
Referenced by GUIDialog_ViewSettings::onCmdColorChange(), GNEMatchGenericDataAttribute::onCmdSetInterval(), onFocusDown(), onFocusUp(), and onMouseWheel().
|
virtual |
Return default height.
Definition at line 215 of file MFXIconComboBox.cpp.
References myButton, and myTextFieldIcon.
|
virtual |
Return default width.
Definition at line 202 of file MFXIconComboBox.cpp.
References myButton, myIconLabel, myPane, and myTextFieldIcon.
| FXFont * MFXIconComboBox::getFont | ( | ) | const |
| const FXString & MFXIconComboBox::getHelpText | ( | ) | const |
Get the combobox help text.
Definition at line 650 of file MFXIconComboBox.cpp.
References myTextFieldIcon.
| FXString MFXIconComboBox::getItem | ( | FXint | index | ) | const |
Return the item at the given index.
Definition at line 343 of file MFXIconComboBox.cpp.
References myList.
Referenced by DemandElementSelector::refreshDemandElementSelector().
| void * MFXIconComboBox::getItemData | ( | FXint | index | ) | const |
Get data pointer for specified item.
Definition at line 509 of file MFXIconComboBox.cpp.
References myList.
Referenced by onTextCommand().
| FXString MFXIconComboBox::getItemText | ( | FXint | index | ) | const |
| FXuint MFXIconComboBox::getJustify | ( | ) | const |
Return text justification mode.
Definition at line 567 of file MFXIconComboBox.cpp.
References myTextFieldIcon.
| FXint MFXIconComboBox::getNumColumns | ( | ) | const |
Get the number of columns.
Definition at line 269 of file MFXIconComboBox.cpp.
References myTextFieldIcon.
| FXint MFXIconComboBox::getNumItems | ( | ) | const |
Return the number of items in the list.
Definition at line 275 of file MFXIconComboBox.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 MFXIconComboBox::getNumVisible | ( | ) | const |
Return the number of visible items.
Definition at line 281 of file MFXIconComboBox.cpp.
References myList.
| FXColor MFXIconComboBox::getSelBackColor | ( | ) | const |
Return selected background color.
Definition at line 607 of file MFXIconComboBox.cpp.
References myTextFieldIcon.
| FXColor MFXIconComboBox::getSelTextColor | ( | ) | const |
Return selected text color.
Definition at line 620 of file MFXIconComboBox.cpp.
References myTextFieldIcon.
| FXListSortFunc MFXIconComboBox::getSortFunc | ( | ) | const |
| FXString MFXIconComboBox::getText | ( | ) | const |
Get the text.
Definition at line 257 of file MFXIconComboBox.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 MFXIconComboBox::getTextColor | ( | ) | const |
| const FXString & MFXIconComboBox::getTipText | ( | ) | const |
Get the tool tip message for this combobox.
Definition at line 662 of file MFXIconComboBox.cpp.
References myTextFieldIcon.
| FXint MFXIconComboBox::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 366 of file MFXIconComboBox.cpp.
References getNumItems(), isItemCurrent(), myIconLabel, myList, and myTextFieldIcon.
Referenced by onTextCommand().
| FXbool MFXIconComboBox::isEditable | ( | ) | const |
Return true if combobox is editable.
Definition at line 245 of file MFXIconComboBox.cpp.
References myTextFieldIcon.
| FXbool MFXIconComboBox::isItemCurrent | ( | FXint | index | ) | const |
Return true if current item.
Definition at line 300 of file MFXIconComboBox.cpp.
References myList.
Referenced by appendIconItem(), insertIconItem(), prependItem(), and setIconItem().
| FXbool MFXIconComboBox::isPaneShown | ( | ) | const |
Is the pane shown.
Definition at line 515 of file MFXIconComboBox.cpp.
References myPane.
Referenced by onUpdFmText().
|
virtual |
Perform layout.
Definition at line 224 of file MFXIconComboBox.cpp.
References myButton, myHaveIcons, myIconLabel, myList, myPane, and myTextFieldIcon.
| FXint MFXIconComboBox::moveItem | ( | FXint | newindex, |
| FXint | oldindex | ||
| ) |
Move item from oldindex to newindex.
Definition at line 437 of file MFXIconComboBox.cpp.
References getNumItems(), myIconLabel, myList, and myTextFieldIcon.
| long MFXIconComboBox::onFocusDown | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 782 of file MFXIconComboBox.cpp.
References getCurrentItem(), getNumItems(), and setCurrentItem().
Referenced by FXDEFMAP().
| long MFXIconComboBox::onFocusSelf | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 758 of file MFXIconComboBox.cpp.
References myTextFieldIcon.
Referenced by FXDEFMAP().
| long MFXIconComboBox::onFocusUp | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Commands.
Definition at line 764 of file MFXIconComboBox.cpp.
References getCurrentItem(), getNumItems(), and setCurrentItem().
Referenced by FXDEFMAP().
| long MFXIconComboBox::onFwdToText | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Definition at line 674 of file MFXIconComboBox.cpp.
References myTextFieldIcon.
Referenced by FXDEFMAP().
| long MFXIconComboBox::onListClicked | ( | FXObject * | , |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Definition at line 680 of file MFXIconComboBox.cpp.
References MFXListItem::getBackGroundColor(), getText(), myButton, myIconLabel, myList, and myTextFieldIcon.
Referenced by FXDEFMAP().
| long MFXIconComboBox::onMouseWheel | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 799 of file MFXIconComboBox.cpp.
References getCurrentItem(), getNumItems(), and setCurrentItem().
Referenced by FXDEFMAP().
| long MFXIconComboBox::onTextButton | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 705 of file MFXIconComboBox.cpp.
References myButton.
Referenced by FXDEFMAP().
| long MFXIconComboBox::onTextChanged | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 716 of file MFXIconComboBox.cpp.
Referenced by FXDEFMAP().
| long MFXIconComboBox::onTextCommand | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 722 of file MFXIconComboBox.cpp.
References appendIconItem(), COMBOBOX_INS_MASK, getItemData(), insertIconItem(), myIconLabel, myList, myTextFieldIcon, and setIconItem().
Referenced by FXDEFMAP().
| long MFXIconComboBox::onUpdFmText | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 668 of file MFXIconComboBox.cpp.
References isPaneShown().
Referenced by FXDEFMAP().
|
privatedelete |
invalidate assignment operator
| FXint MFXIconComboBox::prependItem | ( | const FXString & | text, |
| void * | ptr = NULL |
||
| ) |
Prepend an item to the list.
Definition at line 423 of file MFXIconComboBox.cpp.
References isItemCurrent(), myIconLabel, myList, and myTextFieldIcon.
| void MFXIconComboBox::removeItem | ( | FXint | index | ) |
Remove this item from the list.
Definition at line 459 of file MFXIconComboBox.cpp.
References myIconLabel, myList, and myTextFieldIcon.
|
virtual |
Set window background color.
Definition at line 573 of file MFXIconComboBox.cpp.
References myIconLabel, myList, and myTextFieldIcon.
| void MFXIconComboBox::setComboStyle | ( | FXuint | mode | ) |
Set the combobox style.
Definition at line 538 of file MFXIconComboBox.cpp.
References COMBOBOX_MASK, myList, and myTextFieldIcon.
| void MFXIconComboBox::setCurrentItem | ( | FXint | index, |
| FXbool | notify = FALSE |
||
| ) |
Set the current item (index is zero-based)
Definition at line 306 of file MFXIconComboBox.cpp.
References MFXListItem::getBackGroundColor(), getText(), myIconLabel, myList, myTextFieldIcon, and MFXTextFieldIcon::resetTextField().
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 MFXIconComboBox::setCustomText | ( | const FXString | text | ) |
set custom text
Definition at line 416 of file MFXIconComboBox.cpp.
References myTextFieldIcon.
Referenced by DemandElementSelector::setDemandElement(), and DemandElementSelector::setDemandElements().
| void MFXIconComboBox::setEditable | ( | FXbool | edit = TRUE | ) |
| void MFXIconComboBox::setFont | ( | FXFont * | fnt | ) |
Set text font.
Definition at line 521 of file MFXIconComboBox.cpp.
References myList, and myTextFieldIcon.
| void MFXIconComboBox::setHelpText | ( | const FXString & | txt | ) |
Set the combobox help text.
Definition at line 644 of file MFXIconComboBox.cpp.
References myTextFieldIcon.
| FXint MFXIconComboBox::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 349 of file MFXIconComboBox.cpp.
References getNumItems(), isItemCurrent(), myIconLabel, myList, and myTextFieldIcon.
Referenced by onTextCommand().
| bool MFXIconComboBox::setItem | ( | const FXString & | text, |
| FXIcon * | icon | ||
| ) |
set Item
Definition at line 397 of file MFXIconComboBox.cpp.
References MFXListItem::getBackGroundColor(), myIconLabel, myList, and myTextFieldIcon.
Referenced by DemandElementSelector::setDemandElement(), and DemandElementSelector::showDemandElementSelector().
| void MFXIconComboBox::setItemData | ( | FXint | index, |
| void * | ptr | ||
| ) | const |
Set data pointer for specified item.
Definition at line 503 of file MFXIconComboBox.cpp.
References myList.
| void MFXIconComboBox::setJustify | ( | FXuint | mode | ) |
Change text justification mode; default is JUSTIFY_LEFT.
Definition at line 561 of file MFXIconComboBox.cpp.
References myTextFieldIcon.
| void MFXIconComboBox::setNumColumns | ( | FXint | cols | ) |
Set the number of columns.
Definition at line 263 of file MFXIconComboBox.cpp.
References myTextFieldIcon.
| void MFXIconComboBox::setNumVisible | ( | FXint | nvis | ) |
Set the number of visible items in the drop down list.
Definition at line 293 of file MFXIconComboBox.cpp.
References ICON_SIZE, ICON_SPACING, and 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 MFXIconComboBox::setSelBackColor | ( | FXColor | clr | ) |
Change selected background color.
Definition at line 600 of file MFXIconComboBox.cpp.
References myList, and myTextFieldIcon.
| void MFXIconComboBox::setSelTextColor | ( | FXColor | clr | ) |
Change selected text color.
Definition at line 613 of file MFXIconComboBox.cpp.
References myList, and myTextFieldIcon.
| void MFXIconComboBox::setSortFunc | ( | FXListSortFunc | func | ) |
| void MFXIconComboBox::setText | ( | FXString | text | ) |
| void MFXIconComboBox::setTextColor | ( | FXColor | clr | ) |
Change text color.
Definition at line 587 of file MFXIconComboBox.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 MFXIconComboBox::setTipText | ( | const FXString & | txt | ) |
Set the tool tip message for this combobox.
Definition at line 656 of file MFXIconComboBox.cpp.
References myTextFieldIcon.
| void MFXIconComboBox::sortItems | ( | ) |
Sort items using current sort function.
Definition at line 626 of file MFXIconComboBox.cpp.
References myList.
|
protected |
myButton
Definition at line 282 of file MFXIconComboBox.h.
Referenced by disable(), enable(), getDefaultHeight(), getDefaultWidth(), layout(), MFXIconComboBox(), onListClicked(), onTextButton(), and ~MFXIconComboBox().
|
protected |
check if this iconComboBox have icons
Definition at line 291 of file MFXIconComboBox.h.
Referenced by layout(), and MFXIconComboBox().
|
protected |
label for icon
Definition at line 276 of file MFXIconComboBox.h.
Referenced by appendIconItem(), disable(), enable(), getDefaultWidth(), insertIconItem(), layout(), MFXIconComboBox(), moveItem(), onListClicked(), onTextCommand(), prependItem(), removeItem(), setBackColor(), setCurrentItem(), setIconItem(), setItem(), and ~MFXIconComboBox().
|
protected |
list
Definition at line 285 of file MFXIconComboBox.h.
Referenced by appendIconItem(), clearItems(), findItem(), findItemByData(), getCurrentItem(), getItem(), getItemData(), getItemText(), getNumItems(), getNumVisible(), getSortFunc(), insertIconItem(), isItemCurrent(), layout(), MFXIconComboBox(), moveItem(), onListClicked(), onTextCommand(), prependItem(), removeItem(), setBackColor(), setComboStyle(), setCurrentItem(), setFont(), setIconItem(), setItem(), setItemData(), setNumVisible(), setSelBackColor(), setSelTextColor(), setSortFunc(), setTextColor(), sortItems(), and ~MFXIconComboBox().
|
protected |
popup
Definition at line 288 of file MFXIconComboBox.h.
Referenced by create(), destroy(), detach(), getDefaultWidth(), isPaneShown(), layout(), MFXIconComboBox(), and ~MFXIconComboBox().
|
protected |
textField with icon
Definition at line 279 of file MFXIconComboBox.h.
Referenced by appendIconItem(), clearItems(), disable(), enable(), getBackColor(), getDefaultHeight(), getDefaultWidth(), getFont(), getHelpText(), getJustify(), getNumColumns(), getSelBackColor(), getSelTextColor(), getText(), getTextColor(), getTipText(), insertIconItem(), isEditable(), layout(), MFXIconComboBox(), moveItem(), onFocusSelf(), onFwdToText(), onListClicked(), onTextCommand(), prependItem(), removeItem(), setBackColor(), setComboStyle(), setCurrentItem(), setCustomText(), setEditable(), setFont(), setHelpText(), setIconItem(), setItem(), setJustify(), setNumColumns(), setSelBackColor(), setSelTextColor(), setText(), setTextColor(), setTipText(), and ~MFXIconComboBox().