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

YQSelectionBox Class Reference

#include <YQSelectionBox.h>

Inheritance diagram for YQSelectionBox:

YSelectionBox YSelectionWidget YWidget List of all members.

Public Member Functions

 YQSelectionBox (QWidget *parent, const YWidgetOpt &opt, const YCPString &label)
void setEnabling (bool enabled)
long nicesize (YUIDimension dim)
void setSize (long newWidth, long newHeight)
void setLabel (const YCPString &label)
void itemAdded (const YCPString &itemText, int itemIndex, bool selected)
int getCurrentItem ()
void setCurrentItem (int index)
virtual bool setKeyboardFocus ()
bool eventFilter (QObject *obj, QEvent *ev)
virtual void deleteAllItems ()

Protected Slots

void slotSelected (int index)
void slotActivated (QListBoxItem *item)
void returnDelayed ()
void returnImmediately ()

Protected Attributes

QLabel * _qt_label
QListBox * _qt_listbox
bool _shrinkable
bool _immediateMode
QTimer _timer

Constructor & Destructor Documentation

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


Member Function Documentation

void YQSelectionBox::deleteAllItems  )  [virtual]
 

Delete all items.

Reimplemented from YSelectionWidget

Reimplemented from YSelectionWidget.

bool YQSelectionBox::eventFilter QObject *  obj,
QEvent *  ev
 

Event filter - inherited from QWidget

int YQSelectionBox::getCurrentItem  )  [virtual]
 

Inherited from YSelectionBox. Returns the index of the currently selected item or -1 if no item is selected.

Implements YSelectionBox.

void YQSelectionBox::itemAdded const YCPString itemText,
int  itemIndex,
bool  selected
[virtual]
 

Notification that a new item has been added.

Reimplemented from YSelectionBox.

Implements YSelectionWidget.

long YQSelectionBox::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 YQSelectionBox::returnDelayed  )  [protected, slot]
 

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

void YQSelectionBox::returnImmediately  )  [protected, slot]
 

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

void YQSelectionBox::setCurrentItem int  index  )  [virtual]
 

Inherited from YSelectionBox. Makes another item selected.

Implements YSelectionBox.

void YQSelectionBox::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 YQSelectionBox::setKeyboardFocus  )  [virtual]
 

Accept the keyboard focus.

Reimplemented from YWidget.

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

Change the label text.

Reimplemented from YSelectionWidget.

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

Sets the new size of the widget.

Reimplemented from YWidget.

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

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

void YQSelectionBox::slotSelected int  index  )  [protected, slot]
 

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


Member Data Documentation

bool YQSelectionBox::_immediateMode [protected]
 

QLabel* YQSelectionBox::_qt_label [protected]
 

QListBox* YQSelectionBox::_qt_listbox [protected]
 

bool YQSelectionBox::_shrinkable [protected]
 

QTimer YQSelectionBox::_timer [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Sep 14 10:59:03 2005 for yast2-qt by  doxygen 1.4.4