libyui-qt  2.43.5
YQMultiSelectionBox Class Reference
Collaboration diagram for YQMultiSelectionBox:

List of all members.

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

YQMultiSelectionBoxItemfindItem (YItem *item)

Protected Attributes

YQWidgetCaption_caption
QTreeWidget * _qt_listView

Detailed Description

Definition at line 39 of file YQMultiSelectionBox.h.


Constructor & Destructor Documentation

YQMultiSelectionBox::YQMultiSelectionBox ( YWidget *  parent,
const std::string &  label 
)

Constructor.

Definition at line 47 of file YQMultiSelectionBox.cc.

Here is the call graph for this function:

Destructor.

Definition at line 89 of file YQMultiSelectionBox.cc.


Member Function Documentation

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.

Here is the call graph for this function:

Delete all items.

Reimplemented from YSelectionWidget.

Definition at line 155 of file YQMultiSelectionBox.cc.

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.

Here is the call graph for this function:

Preferred height of the widget.

Reimplemented from YWidget.

Definition at line 250 of file YQMultiSelectionBox.cc.

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.

Here is the call graph for this function:

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.

Here is the call graph for this function:

void YQMultiSelectionBox::setEnabled ( bool  enabled) [virtual]

Set enabled/disabled state.

Reimplemented from YWidget.

Definition at line 232 of file YQMultiSelectionBox.cc.

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.

Here is the call graph for this function:

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.

Here is the call graph for this function:

void YQMultiSelectionBox::slotValueChanged ( ) [protected, slot]

Send ValueChanged event if `opt(`notify) is set.

Definition at line 293 of file YQMultiSelectionBox.cc.

Here is the call graph for this function:

Emitted upon when an item changes its state.


The documentation for this class was generated from the following files:
 All Classes Functions Variables