libyui-qt
2.43.5
|
Signals | |
void | valueChanged () |
Public Member Functions | |
YQMultiSelectionBox (YWidget *parent, const std::string &label) | |
~YQMultiSelectionBox () | |
virtual void | setLabel (const std::string &label) |
virtual void | addItem (YItem *item) |
virtual void | selectItem (YItem *item, bool selected=true) |
virtual void | deselectAllItems () |
virtual void | deleteAllItems () |
virtual YItem * | currentItem () |
virtual void | setCurrentItem (YItem *item) |
virtual void | setEnabled (bool enabled) |
virtual int | preferredWidth () |
virtual int | preferredHeight () |
virtual void | setSize (int newWidth, int newHeight) |
virtual bool | setKeyboardFocus () |
Protected Slots | |
void | slotSelected () |
void | slotValueChanged () |
void | slotItemChanged (QTreeWidgetItem *, int) |
Protected Member Functions | |
YQMultiSelectionBoxItem * | findItem (YItem *item) |
Protected Attributes | |
YQWidgetCaption * | _caption |
QTreeWidget * | _qt_listView |
Definition at line 39 of file YQMultiSelectionBox.h.
YQMultiSelectionBox::YQMultiSelectionBox | ( | YWidget * | parent, |
const std::string & | label | ||
) |
Constructor.
Definition at line 47 of file YQMultiSelectionBox.cc.
Destructor.
Definition at line 89 of file YQMultiSelectionBox.cc.
void YQMultiSelectionBox::addItem | ( | YItem * | item | ) | [virtual] |
Add an item.
Reimplemented from YSelectionWidget.
Definition at line 104 of file YQMultiSelectionBox.cc.
YItem * YQMultiSelectionBox::currentItem | ( | ) | [virtual] |
Return the the item that currently has the keyboard focus or 0 if no item currently has the keyboard focus.
Reimplemented from YMultiSelectionBox.
Definition at line 165 of file YQMultiSelectionBox.cc.
void YQMultiSelectionBox::deleteAllItems | ( | ) | [virtual] |
Delete all items.
Reimplemented from YSelectionWidget.
Definition at line 155 of file YQMultiSelectionBox.cc.
void YQMultiSelectionBox::deselectAllItems | ( | ) | [virtual] |
Deselect all items.
Reimplemented from YSelectionWidget.
Definition at line 135 of file YQMultiSelectionBox.cc.
YQMultiSelectionBoxItem * YQMultiSelectionBox::findItem | ( | YItem * | item | ) | [protected] |
Find the counterpart of 'item'. Return 0 if there is none.
Definition at line 310 of file YQMultiSelectionBox.cc.
int YQMultiSelectionBox::preferredHeight | ( | ) | [virtual] |
Preferred height of the widget.
Reimplemented from YWidget.
Definition at line 250 of file YQMultiSelectionBox.cc.
int YQMultiSelectionBox::preferredWidth | ( | ) | [virtual] |
Preferred width of the widget.
Reimplemented from YWidget.
Definition at line 241 of file YQMultiSelectionBox.cc.
void YQMultiSelectionBox::selectItem | ( | YItem * | item, |
bool | selected = true |
||
) | [virtual] |
Select or deselect an item.
Reimplemented from YSelectionWidget.
Definition at line 124 of file YQMultiSelectionBox.cc.
void YQMultiSelectionBox::setCurrentItem | ( | YItem * | item | ) | [virtual] |
Set the keyboard focus to the specified item. 0 means clear the keyboard focus.
Reimplemented from YMultiSelectionBox.
Definition at line 204 of file YQMultiSelectionBox.cc.
void YQMultiSelectionBox::setEnabled | ( | bool | enabled | ) | [virtual] |
Set enabled/disabled state.
Reimplemented from YWidget.
Definition at line 232 of file YQMultiSelectionBox.cc.
bool YQMultiSelectionBox::setKeyboardFocus | ( | ) | [virtual] |
Accept the keyboard focus.
Definition at line 269 of file YQMultiSelectionBox.cc.
void YQMultiSelectionBox::setLabel | ( | const std::string & | label | ) | [virtual] |
Change the label text.
Reimplemented from YSelectionWidget.
Definition at line 96 of file YQMultiSelectionBox.cc.
void YQMultiSelectionBox::setSize | ( | int | newWidth, |
int | newHeight | ||
) | [virtual] |
Set the new size of the widget.
Reimplemented from YWidget.
Definition at line 262 of file YQMultiSelectionBox.cc.
void YQMultiSelectionBox::slotSelected | ( | ) | [protected, slot] |
Send SelectionChanged event if `opt(`notify) is set.
Definition at line 278 of file YQMultiSelectionBox.cc.
void YQMultiSelectionBox::slotValueChanged | ( | ) | [protected, slot] |
Send ValueChanged event if `opt(`notify) is set.
Definition at line 293 of file YQMultiSelectionBox.cc.
void YQMultiSelectionBox::valueChanged | ( | ) | [signal] |
Emitted upon when an item changes its state.