libyui-qt  2.49.2
YQMultiSelectionBox Class Reference
Inheritance diagram for YQMultiSelectionBox:
Collaboration diagram for YQMultiSelectionBox:

Signals

void valueChanged ()
 Emitted upon when an item changes its state.
 

Public Member Functions

 YQMultiSelectionBox (YWidget *parent, const std::string &label)
 Constructor.
 
 ~YQMultiSelectionBox ()
 Destructor.
 
virtual void setLabel (const std::string &label)
 Change the label text. More...
 
virtual void addItem (YItem *item)
 Add an item. More...
 
virtual void selectItem (YItem *item, bool selected=true)
 Select or deselect an item. More...
 
virtual void deselectAllItems ()
 Deselect all items. More...
 
virtual void deleteAllItems ()
 Delete all items. More...
 
virtual YItem * currentItem ()
 Return the the item that currently has the keyboard focus or 0 if no item currently has the keyboard focus. More...
 
virtual void setCurrentItem (YItem *item)
 Set the keyboard focus to the specified item. More...
 
virtual void setEnabled (bool enabled)
 Set enabled/disabled state. More...
 
virtual int preferredWidth ()
 Preferred width of the widget. More...
 
virtual int preferredHeight ()
 Preferred height of the widget. More...
 
virtual void setSize (int newWidth, int newHeight)
 Set the new size of the widget. More...
 
virtual bool setKeyboardFocus ()
 Accept the keyboard focus.
 

Protected Slots

void slotSelected ()
 Send SelectionChanged event if opt(notify) is set.
 
void slotValueChanged ()
 Send ValueChanged event if opt(notify) is set.
 
void slotItemChanged (QTreeWidgetItem *, int)
 

Protected Member Functions

YQMultiSelectionBoxItemfindItem (YItem *item)
 Find the counterpart of 'item'. More...
 

Protected Attributes

YQWidgetCaption_caption
 
QTreeWidget * _qt_listView
 

Detailed Description

Definition at line 38 of file YQMultiSelectionBox.h.

Member Function Documentation

◆ addItem()

void YQMultiSelectionBox::addItem ( YItem *  item)
virtual

Add an item.

Reimplemented from YSelectionWidget.

Definition at line 104 of file YQMultiSelectionBox.cc.

◆ currentItem()

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:

◆ deleteAllItems()

void YQMultiSelectionBox::deleteAllItems ( )
virtual

Delete all items.

Reimplemented from YSelectionWidget.

Definition at line 155 of file YQMultiSelectionBox.cc.

◆ deselectAllItems()

void YQMultiSelectionBox::deselectAllItems ( )
virtual

Deselect all items.

Reimplemented from YSelectionWidget.

Definition at line 135 of file YQMultiSelectionBox.cc.

◆ findItem()

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:

◆ preferredHeight()

int YQMultiSelectionBox::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

Definition at line 250 of file YQMultiSelectionBox.cc.

◆ preferredWidth()

int YQMultiSelectionBox::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

Definition at line 241 of file YQMultiSelectionBox.cc.

◆ selectItem()

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:

◆ setCurrentItem()

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:

◆ setEnabled()

void YQMultiSelectionBox::setEnabled ( bool  enabled)
virtual

Set enabled/disabled state.

Reimplemented from YWidget.

Definition at line 232 of file YQMultiSelectionBox.cc.

◆ setLabel()

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:

◆ setSize()

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.


The documentation for this class was generated from the following files: