26 #ifndef YQItemSelector_h 27 #define YQItemSelector_h 29 #include <QScrollArea> 32 #include <yui/YItemSelector.h> 52 bool enforceSingleSelection =
true );
66 virtual void addItem( YItem * item );
73 virtual void addItems(
const YItemCollection & itemCollection );
80 virtual void selectItem( YItem * item,
bool selected =
true );
122 virtual void setSize(
int newWidth,
int newHeight );
182 const YItemCustomStatusVector & customStates );
198 QWidget * _itemContainer;
199 QButtonGroup * _buttonGroup;
200 QVBoxLayout * _itemLayout;
202 QMap<YItem *, YQSelectorItemWidget *> _itemWidgets;
259 void setLabel(
const QString & label );
273 QLabel * descriptionLabel()
const {
return _descriptionLabel; }
274 QLabel * iconLabel()
const {
return _iconLabel; }
275 YItem * item()
const {
return _item; }
284 void slotSelectionChanged(
bool selected );
290 const std::string & description,
291 const std::string & iconName,
320 QAbstractButton * _headingToggle;
321 QLabel * _descriptionLabel;
328 #endif // YQItemSelector_h
QWidget * itemContainer() const
Definition: YQItemSelector.h:134
virtual void setEnabled(bool enabled)
Definition: YQItemSelector.cc:187
virtual ~YQItemSelector()
Definition: YQItemSelector.cc:92
QButtonGroup * buttonGroup() const
Definition: YQItemSelector.h:140
YQItemSelector(YWidget *parent, bool enforceSingleSelection=true)
Definition: YQItemSelector.cc:49
virtual int preferredWidth()
Definition: YQItemSelector.cc:193
void init()
Definition: YQItemSelector.cc:67
void deselectOtherItems(YItem *selectedItem)
Definition: YQItemSelector.cc:161
virtual void addItems(const YItemCollection &itemCollection)
Definition: YQItemSelector.cc:128
virtual void deselectAllItems()
Definition: YQItemSelector.cc:152
virtual void setSize(int newWidth, int newHeight)
Definition: YQItemSelector.cc:241
void slotSelectionChanged(YQSelectorItemWidget *itemWidget, bool selected)
Definition: YQItemSelector.cc:264
virtual int preferredHeight()
Definition: YQItemSelector.cc:206
virtual void shortcutChanged()
Definition: YQItemSelector.cc:302
virtual void activateItem(YItem *item)
Definition: YQItemSelector.cc:295
virtual void addItem(YItem *item)
Definition: YQItemSelector.cc:109
virtual bool setKeyboardFocus()
Definition: YQItemSelector.cc:247
virtual void deleteAllItems()
Definition: YQItemSelector.cc:176
void addItemWidget(YQSelectorItemWidget *itemWidget)
Definition: YQItemSelector.cc:98
virtual void selectItem(YItem *item, bool selected=true)
Definition: YQItemSelector.cc:135
Definition: YQItemSelector.h:42