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

List of all members.

Public Member Functions

 YQSelectionBox (YWidget *parent, const std::string &label)
virtual ~YQSelectionBox ()
virtual void setLabel (const std::string &label)
virtual void addItem (YItem *item)
virtual void addItems (const YItemCollection &itemCollection)
virtual void selectItem (YItem *item, bool selected=true)
virtual void deselectAllItems ()
virtual void deleteAllItems ()
virtual void setEnabled (bool enabled)
virtual int preferredWidth ()
virtual int preferredHeight ()
virtual void setSize (int newWidth, int newHeight)
virtual bool setKeyboardFocus ()
virtual bool eventFilter (QObject *obj, QEvent *ev)

Protected Slots

void slotSelectionChanged ()
void slotActivated (QListWidgetItem *item)
void returnDelayed ()
void returnImmediately ()

Protected Member Functions

void selectItem (int index)
void addItem (YItem *item, bool batchMode)

Protected Attributes

YQWidgetCaption_caption
QListWidget * _qt_listWidget
QTimer _timer

Detailed Description

Definition at line 39 of file YQSelectionBox.h.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 53 of file YQSelectionBox.cc.

Here is the call graph for this function:

Destructor.

Definition at line 91 of file YQSelectionBox.cc.


Member Function Documentation

void YQSelectionBox::addItem ( YItem *  item) [virtual]

Add an item.

Reimplemented from YSelectionWidget.

Definition at line 119 of file YQSelectionBox.cc.

void YQSelectionBox::addItem ( YItem *  item,
bool  batchMode 
) [protected]

Internal addItem() method that will not do expensive operations in batch mode.

Definition at line 126 of file YQSelectionBox.cc.

Here is the call graph for this function:

void YQSelectionBox::addItems ( const YItemCollection &  itemCollection) [virtual]

Add multiple items.

Reimplemented for efficiency from YSelectionWidget.

Definition at line 104 of file YQSelectionBox.cc.

Here is the call graph for this function:

void YQSelectionBox::deleteAllItems ( ) [virtual]

Delete all items.

Reimplemented from YSelectionWidget.

Definition at line 217 of file YQSelectionBox.cc.

Deselect all items.

Reimplemented from YSelectionWidget.

Definition at line 193 of file YQSelectionBox.cc.

Here is the call graph for this function:

bool YQSelectionBox::eventFilter ( QObject *  obj,
QEvent *  ev 
) [virtual]

Event filter.

Reimplemented from QWidget.

Definition at line 270 of file YQSelectionBox.cc.

Here is the call graph for this function:

Preferred height of the widget.

Reimplemented from YWidget.

Definition at line 236 of file YQSelectionBox.cc.

int YQSelectionBox::preferredWidth ( ) [virtual]

Preferred width of the widget.

Reimplemented from YWidget.

Definition at line 227 of file YQSelectionBox.cc.

void YQSelectionBox::returnDelayed ( ) [protected, slot]

Return after some millseconds delay - collect multiple events. This is only relevant if `opt( `notify ) is set.

Definition at line 386 of file YQSelectionBox.cc.

void YQSelectionBox::returnImmediately ( ) [protected, slot]

Return immediately. This is only relevant if `opt( `notify ) is set.

Definition at line 363 of file YQSelectionBox.cc.

Here is the call graph for this function:

void YQSelectionBox::selectItem ( YItem *  item,
bool  selected = true 
) [virtual]

Select or deselect an item.

Reimplemented from YSelectionWidget.

Definition at line 166 of file YQSelectionBox.cc.

void YQSelectionBox::selectItem ( int  index) [protected]

Select an item by index.

Definition at line 175 of file YQSelectionBox.cc.

Here is the call graph for this function:

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

Set enabled/disabled state.

Reimplemented from YWidget.

Definition at line 253 of file YQSelectionBox.cc.

Accept the keyboard focus.

Reimplemented from YWidget.

Definition at line 262 of file YQSelectionBox.cc.

void YQSelectionBox::setLabel ( const std::string &  label) [virtual]

Change the label text.

Reimplemented from YSelectionWidget.

Definition at line 97 of file YQSelectionBox.cc.

Here is the call graph for this function:

void YQSelectionBox::setSize ( int  newWidth,
int  newHeight 
) [virtual]

Set the new size of the widget.

Reimplemented from YWidget.

Definition at line 247 of file YQSelectionBox.cc.

void YQSelectionBox::slotActivated ( QListWidgetItem *  item) [protected, slot]

Notification that an item has been activated (double clicked).

Definition at line 354 of file YQSelectionBox.cc.

Here is the call graph for this function:

void YQSelectionBox::slotSelectionChanged ( ) [protected, slot]

Notification that an item has been selected. This is only relevant if `opt(`notify ) is set.

Definition at line 311 of file YQSelectionBox.cc.

Here is the call graph for this function:


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