30 FXObject* tgt, FXSelector sel, FXuint opts, FXint x, FXint y, FXint w, FXint h, FXint pl, FXint pr, FXint pt, FXint pb) :
31 MFXComboBoxIcon(p, staticToolTip, canSearch, visibleItems, tgt, sel, opts, x, y, w, h, pl, pr, pt, pb) {
54 if (currentIndex >= 0) {
75 fxerror(
"%s::setItem: index out of range.\n", getClassName());
const std::string & getSelectorText() const
get field string (by default tag in string format)
GUIIcon getGUIIcon() const
get GUI icon associated to this tag property
const GNEAttributeProperties * at(int index) const
get attribute value
static FXIcon * getIcon(const GUIIcon which)
returns a icon previously defined in the enum GUIIcon
long setCurrentItem(const FXint index, FXbool notify=FALSE)
Set the current item (index is zero-based)
FXint getCurrentItem() const
Get the current item's index.
virtual void clearItems()
Remove all items from the list.
FXint appendIconItem(const FXString &text, FXIcon *icon=nullptr, FXColor bgColor=FXRGB(255, 255, 255), void *ptr=nullptr)
append icon item in the last position
const GNETagProperties * getCurrentTagProperty() const
get current tag property
std::vector< const GNETagProperties * > myTagProperties
vector with tag properties
~MFXComboBoxTagProperty()
Destructor.
long setCurrentItem(const GNETagProperties *tagProperties, FXbool notify=FALSE)
Set the current item.
FXint appendTagItem(const GNETagProperties *tagProperties, FXColor bgColor=FXRGB(255, 255, 255), void *ptr=nullptr)
append item
void clearItems()
Remove all items from the list.
bool hasTagProperty(const GNETagProperties *tagProperties) const
check if the comboBox has the given tag property
MFXComboBoxTagProperty(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.
const GNETagProperties * getTagProperties(FXint index) const
get tag properties