21#ifndef __ANTARES_UI_COMMON_COMPONENT_SPOTLIGHT_SPOTLIGHT_IITEM_HXX__
22#define __ANTARES_UI_COMMON_COMPONENT_SPOTLIGHT_SPOTLIGHT_IITEM_HXX__
33template<
class StringT>
36 return (pGroup == group);
44template<
class StringT>
48 pCacheCaption = wxStringFromUTF8(pCaption);
56template<
class StringT>
59 pSubCaption = caption;
62template<
class StringT>
114template<
class StringT>
117 pLeftTags.push_back(std::make_shared<Tag>(text));
120template<
class StringT>
126 pLeftTags.push_back(std::make_shared<Tag>(text, r, g, b));
129template<
class StringT>
132 pRightTags.push_back(std::make_shared<Tag>(text));
135template<
class StringT>
141 pRightTags.push_back(std::make_shared<Tag>(text, r, g, b));
152 return pCountedAsResult;
157 pCountedAsResult = v;
virtual uint height() const
Height of the cell.
Definition iitem.hxx:78
virtual uint width() const
Width of the cell.
Definition iitem.hxx:73
const Yuni::String & caption() const
Get the caption.
Definition iitem.hxx:39
bool selected() const
Get if the item is selected.
Definition iitem.hxx:99
GroupType pGroup
The group.
Definition spotlight.h:210
void addTag(const StringT &text)
Add a new tag.
Definition iitem.hxx:115
void unselect()
Mark the item as not selected.
Definition iitem.hxx:109
bool countedAsResult() const
Get if this item should be counted as a result.
Definition iitem.hxx:150
const GroupType & group() const
Get the group of the item.
Definition iitem.hxx:28
const wxBitmap & image() const
Get the item& image.
Definition iitem.hxx:83
const Yuni::String & subcaption() const
Get the sub-caption.
Definition iitem.hxx:51
virtual bool canBeSelected() const
Get if the item can be selected.
Definition iitem.hxx:68
void clearTags()
Clear all tags.
Definition iitem.hxx:144
bool isSameGroup(const StringT &group) const
Compare with another group.
Definition iitem.hxx:34
void select()
Mark the item as selected.
Definition iitem.hxx:104
Yuni::CString< 64, false > GroupType
Group.
Definition spotlight.h:37
void addRightTag(const StringT &text)
Add a new tag on the right.
Definition iitem.hxx:130