![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <MFXComboBoxIcon.h>
Public Types | |
| enum | { ID_LIST = FXPacker::ID_LAST , ID_TEXT , ID_SEARCH , 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 item in the last position | |
| virtual void | clearItems () |
| Remove all items from the list. | |
| void | create () |
| Create server-side resources. | |
| void | destroy () |
| Destroy server-side resources. | |
| void | detach () |
| Detach server-side resources. | |
| void | disable () |
| Disable combo box. | |
| void | enable () |
| Enable combo box. | |
| FXint | findItem (const FXString &text) const |
| find item | |
| FXint | getCurrentItem () const |
| Get the current item's index. | |
| FXint | getDefaultHeight () |
| Return default height. | |
| FXint | getDefaultWidth () |
| Return default width. | |
| std::string | getItemText (FXint index) const |
| Get text for specified item. | |
| FXint | getNumItems () const |
| Return the number of items in the list. | |
| 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 icon item in the given position | |
| FXbool | isItemCurrent (FXint index) const |
| Return true if current item. | |
| void | layout () |
| Perform layout. | |
| MFXComboBoxIcon (FXComposite *p, MFXStaticToolTip *staticToolTip, const bool canSearch, const int visibleItems, FXObject *tgt, FXSelector sel, FXuint opts, 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. | |
| void | removeItem (FXint index) |
| Remove this item from the list. | |
| void | setBackColor (FXColor clr) |
| Set window background color. | |
| long | setCurrentItem (const FXint index, FXbool notify=FALSE) |
| Set the current item (index is zero-based) | |
| long | setCurrentItem (const FXString &text, FXbool notify=FALSE) |
| Set the current item. | |
| void | setNumVisible (FXint nvis) |
| Set the number of visible items in the drop down list. | |
| void | setText (const FXString &text, FXbool notify=FALSE) |
| Set the text in the textField. | |
| void | setTextColor (FXColor clr) |
| Change text color. | |
| void | setTipText (const FXString &txt) |
| Set the tool tip message for this combobox. | |
| FXint | updateIconItem (FXint index, const FXString &text, FXIcon *icon=nullptr, FXColor bgColor=FXRGB(255, 255, 255), void *ptr=nullptr) |
| Replace the item at index. | |
| ~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 *) |
| long | onCmdFilter (FXObject *, FXSelector, void *) |
Protected Member Functions | |
| MFXComboBoxIcon () | |
| FOX need this. | |
Protected Attributes | |
| FXMenuButton * | myButton = nullptr |
| myButton | |
| MFXListIcon * | myList = nullptr |
| list with all items | |
| FXLabel * | myNoItemsLabel = nullptr |
| no items label | |
| FXPopup * | myPane = nullptr |
| popup in which place search label and list | |
| MFXTextFieldIcon * | myTextFieldIcon = nullptr |
| textField icon | |
| MFXTextFieldSearch * | myTextFieldSearch = nullptr |
| text field search | |
Private Member Functions | |
| MFXComboBoxIcon (const MFXComboBoxIcon &)=delete | |
| invalidate copy constructor | |
| MFXComboBoxIcon & | operator= (const MFXComboBoxIcon &)=delete |
| invalidate assignment operator | |
Definition at line 39 of file MFXComboBoxIcon.h.
| anonymous enum |
FOX declaration.
enum for ID
| Enumerator | |
|---|---|
| ID_LIST | |
| ID_TEXT | |
| ID_SEARCH | |
| ID_LAST | |
Definition at line 45 of file MFXComboBoxIcon.h.
| MFXComboBoxIcon::MFXComboBoxIcon | ( | FXComposite * | p, |
| MFXStaticToolTip * | staticToolTip, | ||
| const bool | canSearch, | ||
| const int | visibleItems, | ||
| FXObject * | tgt, | ||
| FXSelector | sel, | ||
| FXuint | opts, | ||
| 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 64 of file MFXComboBoxIcon.cpp.
References EMPTY, GUIDesignTextColorRed, ID_LIST, ID_TEXT, and TL.
| MFXComboBoxIcon::~MFXComboBoxIcon | ( | ) |
Destructor.
Definition at line 100 of file MFXComboBoxIcon.cpp.
References myButton, myList, myNoItemsLabel, myPane, myTextFieldIcon, and myTextFieldSearch.
|
protected |
FOX need this.
Definition at line 517 of file MFXComboBoxIcon.cpp.
|
privatedelete |
invalidate copy constructor
| FXint MFXComboBoxIcon::appendIconItem | ( | const FXString & | text, |
| FXIcon * | icon = nullptr, |
||
| FXColor | bgColor = FXRGB(255, 255, 255), |
||
| void * | ptr = nullptr |
||
| ) |
append icon item in the last position
Definition at line 290 of file MFXComboBoxIcon.cpp.
References MFXListIcon::appendItem(), getNumItems(), isItemCurrent(), myList, myTextFieldIcon, MFXTextFieldIcon::setIcon(), and MFXTextFieldIcon::setText().
Referenced by GUISettingsHandler::addSettings(), MFXComboBoxAttrProperty::appendAttrItem(), MFXComboBoxTagProperty::appendTagItem(), GUIDialog_ViewSettings::buildContainersFrame(), GUIDialog_ViewSettings::buildHeader(), GUIDialog_ViewSettings::buildPersonsFrame(), GUIParameterTracker::buildToolBar(), GUIDialog_ViewSettings::buildVehiclesFrame(), GUIViewTraffic::buildViewToolBars(), GNEViewNet::buildViewToolBars(), GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelParameters(), GUIPropertySchemeStorage< T >::fill(), GUITLLogicPhasesTrackerWindow::initToolBar(), GUIDialog_ViewSettings::loadSettings(), GNEMeanDataFrame::MeanDataSelector::MeanDataSelector(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdSaveSetting(), GUIDialog_ViewSettings::rebuildColorMatrices(), GNEDemandElementSelector::refreshDemandElementSelector(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNEDemandElementSelector::setDemandElements(), GNEAttributesEditorRow::showValueComboBox(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETagSelector::updateTagTypes(), GNEVehicleTypeDialog::VTypeAttributes::VShapeRow::VShapeRow(), and GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::VTypeAttributeRow().
|
virtual |
Remove all items from the list.
Reimplemented in MFXComboBoxAttrProperty, and MFXComboBoxTagProperty.
Definition at line 318 of file MFXComboBoxIcon.cpp.
References MFXListIcon::clearItems(), myList, myTextFieldIcon, and MFXTextFieldIcon::setText().
Referenced by MFXComboBoxAttrProperty::clearItems(), MFXComboBoxTagProperty::clearItems(), GUIDialog_ViewSettings::rebuildColorMatrices(), GNEDemandElementSelector::refreshDemandElementSelector(), GNEDemandElementSelector::setDemandElements(), GNEAttributesEditorRow::showValueComboBox(), and GNETagSelector::updateTagTypes().
| void MFXComboBoxIcon::create | ( | ) |
Create server-side resources.
Definition at line 114 of file MFXComboBoxIcon.cpp.
References myPane.
| void MFXComboBoxIcon::destroy | ( | ) |
Destroy server-side resources.
Definition at line 128 of file MFXComboBoxIcon.cpp.
References myPane.
| void MFXComboBoxIcon::detach | ( | ) |
Detach server-side resources.
Definition at line 121 of file MFXComboBoxIcon.cpp.
References myPane.
| void MFXComboBoxIcon::disable | ( | ) |
Disable combo box.
Definition at line 145 of file MFXComboBoxIcon.cpp.
References MFXTextFieldIcon::disable(), myButton, and myTextFieldIcon.
Referenced by GUIDialog_ViewSettings::buildStreetsFrame(), GNEAttributesEditorRow::disable(), GNEMatchAttribute::disableMatchAttribute(), GNEAttributesEditorRow::enableElements(), GNEMatchAttribute::refreshMatchAttribute(), GNEAttributesEditorRow::showValueComboBox(), GNETLSEditorFrame::TLSPrograms::TLSPrograms(), and GNETagSelector::updateTagTypes().
| void MFXComboBoxIcon::enable | ( | ) |
Enable combo box.
Definition at line 135 of file MFXComboBoxIcon.cpp.
References MFXTextFieldIcon::enable(), myButton, and myTextFieldIcon.
Referenced by GNEMatchAttribute::enableMatchAttribute(), GUIDialog_ViewSettings::rebuildColorMatrices(), GNEMatchAttribute::refreshMatchAttribute(), GNEAttributesEditorRow::showValueComboBox(), and GNETagSelector::updateTagTypes().
| FXint MFXComboBoxIcon::findItem | ( | const FXString & | text | ) | const |
find item
Definition at line 326 of file MFXComboBoxIcon.cpp.
References MFXListIcon::findItem(), and myList.
Referenced by GUIApplicationWindow::eventOccurred(), GUIApplicationWindow::handleEvent_SimulationLoaded(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdSaveSetting(), and GNEAttributesEditorRow::showValueComboBox().
| FXint MFXComboBoxIcon::getCurrentItem | ( | ) | const |
Get the current item's index.
Definition at line 255 of file MFXComboBoxIcon.cpp.
References MFXListIcon::getCurrentItemIndex(), and myList.
Referenced by GUITLLogicPhasesTrackerWindow::drawValues(), MFXComboBoxAttrProperty::getCurrentAttrProperty(), GUIDialog_ViewSettings::getCurrentScheme(), MFXComboBoxTagProperty::getCurrentTagProperty(), GNEFileSelector::getFileExtension(), GUITLLogicPhasesTrackerWindow::loadSettings(), GUIParameterTracker::onCmdChangeAggregation(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdDeleteSetting(), GUIDialog_ViewSettings::onCmdSaveSetting(), onFocusDown(), onFocusUp(), onMouseWheel(), GUIDialog_ViewSettings::onUpdDeleteSetting(), GUIDialog_ViewSettings::onUpdExportSetting(), GUIDialog_ViewSettings::onUpdSaveSetting(), GUITLLogicPhasesTrackerWindow::saveSettings(), and GUIDialog_ViewSettings::setCurrentScheme().
| FXint MFXComboBoxIcon::getDefaultHeight | ( | ) |
Return default height.
Definition at line 163 of file MFXComboBoxIcon.cpp.
References MFXTextFieldIcon::getDefaultHeight(), myButton, and myTextFieldIcon.
| FXint MFXComboBoxIcon::getDefaultWidth | ( | ) |
Return default width.
Definition at line 155 of file MFXComboBoxIcon.cpp.
References MFXTextFieldIcon::getDefaultWidth(), myButton, myPane, and myTextFieldIcon.
| std::string MFXComboBoxIcon::getItemText | ( | FXint | index | ) | const |
Get text for specified item.
Definition at line 332 of file MFXComboBoxIcon.cpp.
References MFXListIcon::getItem(), MFXListIconItem::getText(), and myList.
Referenced by GUIDialog_ViewSettings::getCurrentScheme(), GUIDialog_ViewSettings::onCmdDeleteSetting(), GUIDialog_ViewSettings::onCmdNameChange(), GUIDialog_ViewSettings::rebuildColorMatrices(), GNEDemandElementSelector::refreshDemandElementSelector(), GUIDialog_ViewSettings::setCurrentScheme(), and GNETagSelector::setCurrentTag().
| FXint MFXComboBoxIcon::getNumItems | ( | ) | const |
Return the number of items in the list.
Definition at line 194 of file MFXComboBoxIcon.cpp.
References MFXListIcon::getNumItems(), and myList.
Referenced by appendIconItem(), GUIViewTraffic::buildViewToolBars(), GNEViewNet::buildViewToolBars(), GUIDialog_ViewSettings::onCmdNameChange(), onFocusDown(), onFocusUp(), onMouseWheel(), GUIDialog_ViewSettings::rebuildColorMatrices(), GNEDemandElementSelector::refreshDemandElementSelector(), GNEMatchAttribute::refreshMatchAttribute(), setCurrentItem(), GUIDialog_ViewSettings::setCurrentScheme(), GNETagSelector::setCurrentTag(), GNEAttributesEditorRow::showValueComboBox(), updateIconItem(), and GNETagSelector::updateTagTypes().
| FXString MFXComboBoxIcon::getText | ( | ) | const |
Get the text.
Definition at line 188 of file MFXComboBoxIcon.cpp.
References MFXTextFieldIcon::getText(), and myTextFieldIcon.
Referenced by GNEAttributesEditorRow::fillSumoBaseObject(), GNEAttributesEditorRow::getCurrentValue(), GUIDialog_ViewSettings::onCmdColorChange(), GNEDemandElementSelector::onCmdSelectDemandElement(), GNEPlanSelector::onCmdSelectPlan(), GNETagSelector::onCmdSelectTag(), GNEAttributesEditorRow::onCmdSetAttribute(), GNEDistributionRefDialog::onCmdSetReference(), onListClicked(), GUIDialog_ViewSettings::rebuildColorMatrices(), and GNEVehicleTypeDialog::VTypeAttributes::VClassRow::setVariable().
| FXColor MFXComboBoxIcon::getTextColor | ( | ) | const |
Return text color.
Definition at line 352 of file MFXComboBoxIcon.cpp.
References MFXTextFieldIcon::getTextColor(), and myTextFieldIcon.
Referenced by GNEAttributesEditorRow::fillSumoBaseObject(), GNEPlanSelector::isPlanValid(), GNEAttributesEditorRow::isValueValid(), GNEDistributionRefDialog::onCmdAccept(), GNEDistributionRefDialog::onCmdSetProbability(), and GNEDistributionRefDialog::onCmdSetReference().
| const FXString & MFXComboBoxIcon::getTipText | ( | ) | const |
Get the tool tip message for this combobox.
Definition at line 364 of file MFXComboBoxIcon.cpp.
References MFXTextFieldIcon::getTipText(), and myTextFieldIcon.
| FXint MFXComboBoxIcon::insertIconItem | ( | FXint | index, |
| const FXString & | text, | ||
| FXIcon * | icon = nullptr, |
||
| FXColor | bgColor = FXRGB(255, 255, 255), |
||
| void * | ptr = nullptr |
||
| ) |
insert icon item in the given position
Definition at line 277 of file MFXComboBoxIcon.cpp.
References MFXListIcon::insertItem(), isItemCurrent(), myList, myTextFieldIcon, MFXTextFieldIcon::setIcon(), and MFXTextFieldIcon::setText().
Referenced by GUIDialog_ViewSettings::onCmdSaveSetting().
| FXbool MFXComboBoxIcon::isItemCurrent | ( | FXint | index | ) | const |
Return true if current item.
Definition at line 212 of file MFXComboBoxIcon.cpp.
References MFXListIcon::isItemCurrent(), and myList.
Referenced by appendIconItem(), insertIconItem(), and updateIconItem().
| void MFXComboBoxIcon::layout | ( | ) |
Perform layout.
Definition at line 172 of file MFXComboBoxIcon.cpp.
References myButton, myNoItemsLabel, myPane, myTextFieldIcon, and myTextFieldSearch.
| long MFXComboBoxIcon::onCmdFilter | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 376 of file MFXComboBoxIcon.cpp.
References MFXTextFieldIcon::getText(), myList, myNoItemsLabel, myPane, myTextFieldSearch, and MFXListIcon::setFilter().
Referenced by FXDEFMAP().
| long MFXComboBoxIcon::onFocusDown | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 474 of file MFXComboBoxIcon.cpp.
References getCurrentItem(), getNumItems(), and setCurrentItem().
Referenced by FXDEFMAP().
| long MFXComboBoxIcon::onFocusSelf | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 450 of file MFXComboBoxIcon.cpp.
References myTextFieldIcon.
Referenced by FXDEFMAP().
| long MFXComboBoxIcon::onFocusUp | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Commands.
Definition at line 456 of file MFXComboBoxIcon.cpp.
References getCurrentItem(), getNumItems(), and setCurrentItem().
Referenced by FXDEFMAP().
| long MFXComboBoxIcon::onFwdToText | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Definition at line 386 of file MFXComboBoxIcon.cpp.
References myTextFieldIcon.
Referenced by FXDEFMAP().
| long MFXComboBoxIcon::onListClicked | ( | FXObject * | , |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Definition at line 392 of file MFXComboBoxIcon.cpp.
References MFXListIconItem::getBackGroundColor(), MFXListIconItem::getIcon(), getText(), MFXListIconItem::getText(), myButton, myTextFieldIcon, MFXTextFieldIcon::selectAll(), MFXTextFieldIcon::setIcon(), and MFXTextFieldIcon::setText().
Referenced by FXDEFMAP().
| long MFXComboBoxIcon::onMouseWheel | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 491 of file MFXComboBoxIcon.cpp.
References getCurrentItem(), getNumItems(), and setCurrentItem().
Referenced by FXDEFMAP().
| long MFXComboBoxIcon::onTextButton | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 415 of file MFXComboBoxIcon.cpp.
References myButton.
Referenced by FXDEFMAP().
| long MFXComboBoxIcon::onTextChanged | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 426 of file MFXComboBoxIcon.cpp.
Referenced by FXDEFMAP().
| long MFXComboBoxIcon::onTextCommand | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 432 of file MFXComboBoxIcon.cpp.
References CANCEL, GUIIconSubSys::getIcon(), MFXListIcon::getItem(), MFXListIcon::getNumItems(), MFXListIconItem::getText(), MFXTextFieldIcon::getText(), GUIDesignBackgroundColorWhite, myList, myTextFieldIcon, setCurrentItem(), MFXTextFieldIcon::setIcon(), and MFXListIcon::tolowerString().
Referenced by FXDEFMAP().
| long MFXComboBoxIcon::onUpdFmText | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 370 of file MFXComboBoxIcon.cpp.
References myPane.
Referenced by FXDEFMAP().
|
privatedelete |
invalidate assignment operator
| void MFXComboBoxIcon::removeItem | ( | FXint | index | ) |
Remove this item from the list.
Definition at line 303 of file MFXComboBoxIcon.cpp.
References MFXListIcon::getNumItems(), MFXListIcon::isItemCurrent(), myList, MFXListIcon::removeItem(), and setCurrentItem().
Referenced by GUIDialog_ViewSettings::onCmdDeleteSetting(), GUIDialog_ViewSettings::onCmdNameChange(), and GUIDialog_ViewSettings::onCmdSaveSetting().
| void MFXComboBoxIcon::setBackColor | ( | FXColor | clr | ) |
Set window background color.
Definition at line 338 of file MFXComboBoxIcon.cpp.
References myList, and myTextFieldIcon.
Referenced by GNEAttributesEditorRow::onCmdSetAttribute(), and GNEAttributesEditorRow::showValueComboBox().
| long MFXComboBoxIcon::setCurrentItem | ( | const FXint | index, |
| FXbool | notify = FALSE |
||
| ) |
Set the current item (index is zero-based)
Definition at line 218 of file MFXComboBoxIcon.cpp.
References MFXListIconItem::getBackGroundColor(), MFXListIconItem::getIcon(), MFXListIcon::getItem(), getNumItems(), MFXListIconItem::getText(), MFXListIcon::makeItemVisible(), myList, myTextFieldIcon, MFXListIcon::setCurrentItem(), MFXTextFieldIcon::setIcon(), and MFXTextFieldIcon::setText().
Referenced by GUISettingsHandler::addSettings(), GUIDialog_ViewSettings::buildContainersFrame(), GUIDialog_ViewSettings::buildHeader(), GUIDialog_ViewSettings::buildPersonsFrame(), GUIDialog_ViewSettings::buildVehiclesFrame(), GUIViewTraffic::buildViewToolBars(), GNEViewNet::buildViewToolBars(), GUIApplicationWindow::eventOccurred(), GUIPropertySchemeStorage< T >::fill(), GUIApplicationWindow::handleEvent_SimulationLoaded(), GUITLLogicPhasesTrackerWindow::loadSettings(), GUIDialog_ViewSettings::loadSettings(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), GUIDialog_ViewSettings::onCmdSaveSetting(), onFocusDown(), onFocusUp(), onMouseWheel(), onTextCommand(), GNEDemandElementSelector::refreshDemandElementSelector(), GNEPlanSelector::refreshPlanSelector(), removeItem(), setCurrentItem(), MFXComboBoxAttrProperty::setCurrentItem(), MFXComboBoxTagProperty::setCurrentItem(), GUIDialog_ViewSettings::setCurrentScheme(), GNETagSelector::setCurrentTag(), GNEDemandElementSelector::setDemandElement(), GNEFileSelector::setFilter(), GNEDemandElementSelector::showDemandElementSelector(), and GNEAttributesEditorRow::showValueComboBox().
| long MFXComboBoxIcon::setCurrentItem | ( | const FXString & | text, |
| FXbool | notify = FALSE |
||
| ) |
Set the current item.
Definition at line 241 of file MFXComboBoxIcon.cpp.
References MFXListIcon::getItem(), MFXListIcon::getNumItems(), MFXListIconItem::getText(), myList, setCurrentItem(), and MFXListIcon::tolowerString().
| void MFXComboBoxIcon::setNumVisible | ( | FXint | nvis | ) |
Set the number of visible items in the drop down list.
Definition at line 200 of file MFXComboBoxIcon.cpp.
References myList, and MFXListIcon::setNumVisible().
| void MFXComboBoxIcon::setText | ( | const FXString & | text, |
| FXbool | notify = FALSE |
||
| ) |
Set the text in the textField.
Definition at line 206 of file MFXComboBoxIcon.cpp.
References myTextFieldIcon, and MFXTextFieldIcon::setText().
| void MFXComboBoxIcon::setTextColor | ( | FXColor | clr | ) |
Change text color.
Definition at line 345 of file MFXComboBoxIcon.cpp.
References myList, myTextFieldIcon, MFXListIcon::setTextColor(), and MFXTextFieldIcon::setTextColor().
Referenced by GNEMatchAttribute::disableMatchAttribute(), GNEDemandElementSelector::onCmdSelectDemandElement(), GNEPlanSelector::onCmdSelectPlan(), GNETagSelector::onCmdSelectTag(), GNEAttributesEditorRow::onCmdSetAttribute(), GNEDistributionRefDialog::onCmdSetReference(), GNETagSelector::setCurrentTag(), GNEVehicleTypeDialog::VTypeAttributes::VClassRow::setVariable(), and GNEAttributesEditorRow::showValueComboBox().
| void MFXComboBoxIcon::setTipText | ( | const FXString & | txt | ) |
Set the tool tip message for this combobox.
Definition at line 358 of file MFXComboBoxIcon.cpp.
References myTextFieldIcon, and MFXTextFieldIcon::setTipText().
| FXint MFXComboBoxIcon::updateIconItem | ( | 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 261 of file MFXComboBoxIcon.cpp.
References MFXListIcon::editItem(), getNumItems(), isItemCurrent(), myList, myTextFieldIcon, MFXTextFieldIcon::setIcon(), and MFXTextFieldIcon::setText().
|
protected |
myButton
Definition at line 170 of file MFXComboBoxIcon.h.
Referenced by disable(), enable(), getDefaultHeight(), getDefaultWidth(), layout(), onListClicked(), onTextButton(), and ~MFXComboBoxIcon().
|
protected |
list with all items
Definition at line 173 of file MFXComboBoxIcon.h.
Referenced by appendIconItem(), clearItems(), findItem(), getCurrentItem(), getItemText(), getNumItems(), insertIconItem(), isItemCurrent(), onCmdFilter(), onTextCommand(), removeItem(), setBackColor(), setCurrentItem(), setCurrentItem(), setNumVisible(), setTextColor(), updateIconItem(), and ~MFXComboBoxIcon().
|
protected |
no items label
Definition at line 182 of file MFXComboBoxIcon.h.
Referenced by layout(), onCmdFilter(), and ~MFXComboBoxIcon().
|
protected |
popup in which place search label and list
Definition at line 179 of file MFXComboBoxIcon.h.
Referenced by create(), destroy(), detach(), getDefaultWidth(), layout(), onCmdFilter(), onUpdFmText(), and ~MFXComboBoxIcon().
|
protected |
textField icon
Definition at line 167 of file MFXComboBoxIcon.h.
Referenced by appendIconItem(), clearItems(), disable(), enable(), getDefaultHeight(), getDefaultWidth(), getText(), getTextColor(), getTipText(), insertIconItem(), layout(), onFocusSelf(), onFwdToText(), onListClicked(), onTextCommand(), setBackColor(), setCurrentItem(), setText(), setTextColor(), setTipText(), updateIconItem(), and ~MFXComboBoxIcon().
|
protected |
text field search
Definition at line 176 of file MFXComboBoxIcon.h.
Referenced by layout(), onCmdFilter(), and ~MFXComboBoxIcon().