Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

YQMultiSelectionBox Class Reference

#include <YQMultiSelectionBox.h>

Inheritance diagram for YQMultiSelectionBox:

YMultiSelectionBox YWidget List of all members.

Signals

void valueChanged ()

Public Member Functions

 YQMultiSelectionBox (QWidget *parent, const YWidgetOpt &opt, const YCPString &label)
void setEnabling (bool enabled)
long nicesize (YUIDimension dim)
void setSize (long newWidth, long newHeight)
virtual void setLabel (const YCPString &label)
virtual void itemAdded (const YCPString &itemText, bool selected)
virtual int getCurrentItem ()
virtual void setCurrentItem (int index)
virtual bool setKeyboardFocus ()
virtual void deleteAllItems ()
void sendValueChanged ()

Protected Slots

void slotSelected ()
void slotValueChanged ()

Protected Member Functions

virtual bool itemIsSelected (int index)
virtual void selectItem (int index)
virtual void deselectAllItems ()

Protected Attributes

QLabel * _qt_label
QListView * _qt_listview
bool _shrinkable

Constructor & Destructor Documentation

YQMultiSelectionBox::YQMultiSelectionBox QWidget *  parent,
const YWidgetOpt opt,
const YCPString label
 

Constructor.


Member Function Documentation

void YQMultiSelectionBox::deleteAllItems  )  [virtual]
 

Delete all items.

Reimplemented from YMultiSelectionBox

Reimplemented from YMultiSelectionBox.

void YQMultiSelectionBox::deselectAllItems  )  [protected, virtual]
 

Deselect all items.

Reimplemented from YMultiSelectionBox

Implements YMultiSelectionBox.

int YQMultiSelectionBox::getCurrentItem  )  [virtual]
 

Returns the index of the item that currently has the keyboard focus.

Reimplemented from YMultiSelectionBox

Implements YMultiSelectionBox.

void YQMultiSelectionBox::itemAdded const YCPString itemText,
bool  selected
[virtual]
 

Notification that a new item has been added.

Reimplemented from YMultiSelectionBox.

Implements YMultiSelectionBox.

bool YQMultiSelectionBox::itemIsSelected int  index  )  [protected, virtual]
 

Check whether or not item #index is selected.

Reimplemented from YMultiSelectionBox

Implements YMultiSelectionBox.

long YQMultiSelectionBox::nicesize YUIDimension  dim  )  [virtual]
 

Minimum size the widget should have to make it look and feel nice. Dimension, either YD_HORIZ or YD_VERT

Implements YWidget.

void YQMultiSelectionBox::selectItem int  index  )  [protected, virtual]
 

Select item #index.

Reimplemented from YMultiSelectionBox

Implements YMultiSelectionBox.

void YQMultiSelectionBox::sendValueChanged  ) 
 

Sends a ValueChanged signal.

void YQMultiSelectionBox::setCurrentItem int  index  )  [virtual]
 

Set the keyboard focus to one item.

Reimplemented from YMultiSelectionBox

Implements YMultiSelectionBox.

void YQMultiSelectionBox::setEnabling bool  enabled  )  [virtual]
 

Inherited from YWidget: Sets the enabled state of the widget. All new widgets are enabled per definition. Only enabled widgets can take user input.

Reimplemented from YWidget.

bool YQMultiSelectionBox::setKeyboardFocus  )  [virtual]
 

Accept the keyboard focus.

Reimplemented from YWidget.

void YQMultiSelectionBox::setLabel const YCPString label  )  [virtual]
 

Change the label text.

Reimplemented from YMultiSelectionBox.

void YQMultiSelectionBox::setSize long  newWidth,
long  newHeight
[virtual]
 

Sets the new size of the widget.

Reimplemented from YWidget.

void YQMultiSelectionBox::slotSelected  )  [protected, slot]
 

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

void YQMultiSelectionBox::slotValueChanged  )  [protected, slot]
 

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

void YQMultiSelectionBox::valueChanged  )  [signal]
 

Emitted upon when an item changes its state.


Member Data Documentation

QLabel* YQMultiSelectionBox::_qt_label [protected]
 

QListView* YQMultiSelectionBox::_qt_listview [protected]
 

bool YQMultiSelectionBox::_shrinkable [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Nov 12 06:11:16 2008 for yast2-qt by  doxygen 1.3.9.1