![]() |
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 125 of file MFXIconComboBox.cpp.
References ID_LIST, ID_TEXT, myButton, myHaveIcons, myIconLabel, myList, myPane, and myTextFieldIcon.
|
virtual |
Destructor.
Definition at line 151 of file MFXIconComboBox.cpp.
References myButton, myIconLabel, myList, myPane, and myTextFieldIcon.
|
protected |
FOX need this.
Definition at line 829 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 387 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(), onTextCommand(), DemandElementSelector::refreshDemandElementSelector(), GNETagSelector::setCurrentTagType(), DemandElementSelector::setDemandElements(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNEMatchAttribute::updateTag(), GNEVehicleTypeDialog::VTypeAtributes::VShapeRow::VShapeRow(), and GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::VTypeAttributeRow().
void MFXIconComboBox::clearItems | ( | ) |
Remove all items from the list.
Definition at line 481 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 162 of file MFXIconComboBox.cpp.
References myPane.
|
virtual |
Destroy server-side resources.
Definition at line 176 of file MFXIconComboBox.cpp.
References myPane.
|
virtual |
Detach server-side resources.
Definition at line 169 of file MFXIconComboBox.cpp.
References myPane.
|
virtual |
Disable combo box.
Definition at line 194 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 183 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 489 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 495 of file MFXIconComboBox.cpp.
References myList.
FXColor MFXIconComboBox::getBackColor | ( | ) | const |
Get background color.
Definition at line 585 of file MFXIconComboBox.cpp.
References myTextFieldIcon.
FXuint MFXIconComboBox::getComboStyle | ( | ) | const |
Get the combobox style.
Definition at line 559 of file MFXIconComboBox.cpp.
References COMBOBOX_MASK.
FXint MFXIconComboBox::getCurrentItem | ( | ) | const |
Get the current item's index.
Definition at line 341 of file MFXIconComboBox.cpp.
References myList.
Referenced by GUIDialog_ViewSettings::onCmdColorChange(), GNEMatchGenericDataAttribute::onCmdSetInterval(), onFocusDown(), onFocusUp(), and onMouseWheel().
|
virtual |
Return default height.
Definition at line 218 of file MFXIconComboBox.cpp.
References myButton, and myTextFieldIcon.
|
virtual |
Return default width.
Definition at line 205 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 654 of file MFXIconComboBox.cpp.
References myTextFieldIcon.
FXString MFXIconComboBox::getItem | ( | FXint | index | ) | const |
Return the item at the given index.
Definition at line 347 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 513 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 571 of file MFXIconComboBox.cpp.
References myTextFieldIcon.
FXint MFXIconComboBox::getNumColumns | ( | ) | const |
Get the number of columns.
Definition at line 272 of file MFXIconComboBox.cpp.
References myTextFieldIcon.
FXint MFXIconComboBox::getNumItems | ( | ) | const |
Return the number of items in the list.
Definition at line 278 of file MFXIconComboBox.cpp.
References myList.
Referenced by appendIconItem(), GNEMatchGenericDataAttribute::enableMatchGenericDataAttribute(), insertIconItem(), moveItem(), onFocusDown(), onFocusUp(), onMouseWheel(), DemandElementSelector::refreshDemandElementSelector(), GNETagSelector::setCurrentTagType(), setIconItem(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNEMatchAttribute::updateTag(), and GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::VTypeAttributeRow().
FXint MFXIconComboBox::getNumVisible | ( | ) | const |
Return the number of visible items.
Definition at line 284 of file MFXIconComboBox.cpp.
References myList.
FXColor MFXIconComboBox::getSelBackColor | ( | ) | const |
Return selected background color.
Definition at line 611 of file MFXIconComboBox.cpp.
References myTextFieldIcon.
FXColor MFXIconComboBox::getSelTextColor | ( | ) | const |
Return selected text color.
Definition at line 624 of file MFXIconComboBox.cpp.
References myTextFieldIcon.
FXListSortFunc MFXIconComboBox::getSortFunc | ( | ) | const |
FXString MFXIconComboBox::getText | ( | ) | const |
Get the text.
Definition at line 260 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::VTypeAtributes::VClassRow::setVariable().
FXColor MFXIconComboBox::getTextColor | ( | ) | const |
const FXString & MFXIconComboBox::getTipText | ( | ) | const |
Get the tool tip message for this combobox.
Definition at line 666 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 370 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 248 of file MFXIconComboBox.cpp.
References myTextFieldIcon.
FXbool MFXIconComboBox::isItemCurrent | ( | FXint | index | ) | const |
Return true if current item.
Definition at line 304 of file MFXIconComboBox.cpp.
References myList.
Referenced by appendIconItem(), insertIconItem(), prependItem(), and setIconItem().
FXbool MFXIconComboBox::isPaneShown | ( | ) | const |
Is the pane shown.
Definition at line 519 of file MFXIconComboBox.cpp.
References myPane.
Referenced by onUpdFmText().
|
virtual |
Perform layout.
Definition at line 227 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 441 of file MFXIconComboBox.cpp.
References getNumItems(), myIconLabel, myList, and myTextFieldIcon.
long MFXIconComboBox::onFocusDown | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 786 of file MFXIconComboBox.cpp.
References getCurrentItem(), getNumItems(), and setCurrentItem().
Referenced by FXDEFMAP().
long MFXIconComboBox::onFocusSelf | ( | FXObject * | sender, |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 762 of file MFXIconComboBox.cpp.
References myTextFieldIcon.
Referenced by FXDEFMAP().
long MFXIconComboBox::onFocusUp | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Commands.
Definition at line 768 of file MFXIconComboBox.cpp.
References getCurrentItem(), getNumItems(), and setCurrentItem().
Referenced by FXDEFMAP().
long MFXIconComboBox::onFwdToText | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
Definition at line 678 of file MFXIconComboBox.cpp.
References myTextFieldIcon.
Referenced by FXDEFMAP().
long MFXIconComboBox::onListClicked | ( | FXObject * | , |
FXSelector | sel, | ||
void * | ptr | ||
) |
Definition at line 684 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 803 of file MFXIconComboBox.cpp.
References getCurrentItem(), getNumItems(), and setCurrentItem().
Referenced by FXDEFMAP().
long MFXIconComboBox::onTextButton | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 709 of file MFXIconComboBox.cpp.
References myButton.
Referenced by FXDEFMAP().
long MFXIconComboBox::onTextChanged | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 720 of file MFXIconComboBox.cpp.
Referenced by FXDEFMAP().
long MFXIconComboBox::onTextCommand | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 726 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 672 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 427 of file MFXIconComboBox.cpp.
References isItemCurrent(), myIconLabel, myList, and myTextFieldIcon.
void MFXIconComboBox::removeItem | ( | FXint | index | ) |
Remove this item from the list.
Definition at line 463 of file MFXIconComboBox.cpp.
References myIconLabel, myList, and myTextFieldIcon.
|
virtual |
Set window background color.
Definition at line 577 of file MFXIconComboBox.cpp.
References myIconLabel, myList, and myTextFieldIcon.
void MFXIconComboBox::setComboStyle | ( | FXuint | mode | ) |
Set the combobox style.
Definition at line 542 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 310 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 420 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 525 of file MFXIconComboBox.cpp.
References myList, and myTextFieldIcon.
void MFXIconComboBox::setHelpText | ( | const FXString & | txt | ) |
Set the combobox help text.
Definition at line 648 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 353 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 401 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 507 of file MFXIconComboBox.cpp.
References myList.
void MFXIconComboBox::setJustify | ( | FXuint | mode | ) |
Change text justification mode; default is JUSTIFY_LEFT.
Definition at line 565 of file MFXIconComboBox.cpp.
References myTextFieldIcon.
void MFXIconComboBox::setNumColumns | ( | FXint | cols | ) |
Set the number of columns.
Definition at line 266 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 296 of file MFXIconComboBox.cpp.
References ICON_HEIGHT, 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(), DemandElementSelector::refreshDemandElementSelector(), GNETagSelector::setCurrentTagType(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNEMatchAttribute::updateTag(), GNEVehicleTypeDialog::VTypeAtributes::VShapeRow::VShapeRow(), and GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::VTypeAttributeRow().
void MFXIconComboBox::setSelBackColor | ( | FXColor | clr | ) |
Change selected background color.
Definition at line 604 of file MFXIconComboBox.cpp.
References myList, and myTextFieldIcon.
void MFXIconComboBox::setSelTextColor | ( | FXColor | clr | ) |
Change selected text color.
Definition at line 617 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 591 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::VTypeAtributes::VClassRow::setVariable(), and GNEMatchAttribute::updateTag().
void MFXIconComboBox::setTipText | ( | const FXString & | txt | ) |
Set the tool tip message for this combobox.
Definition at line 660 of file MFXIconComboBox.cpp.
References myTextFieldIcon.
void MFXIconComboBox::sortItems | ( | ) |
Sort items using current sort function.
Definition at line 630 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().