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

YQComboBox Class Reference

#include <YQComboBox.h>

Inheritance diagram for YQComboBox:

YComboBox YSelectionWidget YWidget List of all members.

Public Member Functions

 YQComboBox (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 setValidChars (const YCPString &validChars)
bool isValidText (const QString &txt) const
void itemAdded (const YCPString &itemText, int itemIndex, bool selected)
YCPString getValue () const
void setValue (const YCPString &new_value)
int getCurrentItem () const
void setCurrentItem (int index)
virtual bool setKeyboardFocus ()
virtual void deleteAllItems ()
void setInputMaxLength (const YCPInteger &numberOfChars)

Protected Slots

void slotSelected (int i)
void textChanged (const QString &new_text)

Protected Attributes

QLabel * _qt_label
QComboBox * _qt_combo_box
QY2CharValidator_validator

Constructor & Destructor Documentation

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


Member Function Documentation

void YQComboBox::deleteAllItems  )  [virtual]
 

Delete all items.

Reimplemented from YSelectionWidget

Reimplemented from YSelectionWidget.

int YQComboBox::getCurrentItem  )  const [virtual]
 

Inherited from YComboBox: Returns the index of the currently selected item (from 0 on) or -1 if no item is selected.

Implements YComboBox.

YCPString YQComboBox::getValue  )  const [virtual]
 

Inherited from YComboBox: Returns the ComboBox value.

Implements YComboBox.

bool YQComboBox::isValidText const QString &  txt  )  const
 

Returns 'true' if the given text is valid according to the current setting of ValidChars.

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

Notification that a new item has been added.

Reimplemented from YComboBox.

Implements YSelectionWidget.

long YQComboBox::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 YQComboBox::setCurrentItem int  index  )  [virtual]
 

Inherited from YComboBox: Selects an item from the list. Notice there intentionally is no corresponding getCurrentItem() method - use getValue() instead.

Implements YComboBox.

void YQComboBox::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.

void YQComboBox::setInputMaxLength const YCPInteger numberOfChars  )  [virtual]
 

Specify the amount of characters which can be inserted.

Reimplemented from YTextEntry.

Reimplemented from YComboBox.

bool YQComboBox::setKeyboardFocus  )  [virtual]
 

Accept the keyboard focus.

Reimplemented from YWidget.

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

Change the label text.

Reimplemented from YSelectionWidget.

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

Sets the new size of the widget.

Reimplemented from YWidget.

void YQComboBox::setValidChars const YCPString validChars  )  [virtual]
 

Change the valid input characters.

Reimplemented from YComboBox

Reimplemented from YComboBox.

void YQComboBox::setValue const YCPString new_value  )  [virtual]
 

Inherited from YComboBox: Sets the ComboBox value to a random value that is not already in the item list. Will be called for editable ComboBox widgets only.

Implements YComboBox.

void YQComboBox::slotSelected int  i  )  [protected, slot]
 

Tells the ui that an item has been selected. This is only interesting if the `notify option is set.

void YQComboBox::textChanged const QString &  new_text  )  [protected, slot]
 

Tells the ui that the user has edited the text ( if the 'editable' option is set ). This is only interesting if the `notify option is set.


Member Data Documentation

QComboBox* YQComboBox::_qt_combo_box [protected]
 

QLabel* YQComboBox::_qt_label [protected]
 

QY2CharValidator* YQComboBox::_validator [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