libyui-qt
Loading...
Searching...
No Matches
YQMultiSelectionBox Class Reference
Inheritance diagram for YQMultiSelectionBox:
Collaboration diagram for YQMultiSelectionBox:

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
 

Constructor & Destructor Documentation

◆ YQMultiSelectionBox()

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

Constructor.

◆ ~YQMultiSelectionBox()

YQMultiSelectionBox::~YQMultiSelectionBox ( )

Destructor.

Member Function Documentation

◆ addItem()

void YQMultiSelectionBox::addItem ( YItem * item)
virtual

Add an item.

Reimplemented from YSelectionWidget.

◆ 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.

◆ deleteAllItems()

void YQMultiSelectionBox::deleteAllItems ( )
virtual

Delete all items.

Reimplemented from YSelectionWidget.

◆ deselectAllItems()

void YQMultiSelectionBox::deselectAllItems ( )
virtual

Deselect all items.

Reimplemented from YSelectionWidget.

◆ findItem()

YQMultiSelectionBoxItem * YQMultiSelectionBox::findItem ( YItem * item)
protected

Find the counterpart of 'item'. Return 0 if there is none.

◆ preferredHeight()

int YQMultiSelectionBox::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

◆ preferredWidth()

int YQMultiSelectionBox::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

◆ selectItem()

void YQMultiSelectionBox::selectItem ( YItem * item,
bool selected = true )
virtual

Select or deselect an item.

Reimplemented from YSelectionWidget.

◆ setCurrentItem()

void YQMultiSelectionBox::setCurrentItem ( YItem * item)
virtual

Set the keyboard focus to the specified item. 0 means clear the keyboard focus.

Reimplemented from YMultiSelectionBox.

◆ setEnabled()

void YQMultiSelectionBox::setEnabled ( bool enabled)
virtual

Set enabled/disabled state.

Reimplemented from YWidget.

◆ setKeyboardFocus()

bool YQMultiSelectionBox::setKeyboardFocus ( )
virtual

Accept the keyboard focus.

◆ setLabel()

void YQMultiSelectionBox::setLabel ( const std::string & label)
virtual

Change the label text.

Reimplemented from YSelectionWidget.

◆ setSize()

void YQMultiSelectionBox::setSize ( int newWidth,
int newHeight )
virtual

Set the new size of the widget.

Reimplemented from YWidget.

◆ slotSelected

void YQMultiSelectionBox::slotSelected ( )
protectedslot

Send SelectionChanged event if Opt(:notify) is set.

◆ slotValueChanged

void YQMultiSelectionBox::slotValueChanged ( )
protectedslot

Send ValueChanged event if Opt(:notify) is set.

◆ valueChanged

void YQMultiSelectionBox::valueChanged ( )
signal

Emitted upon when an item changes its state.


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