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

List of all members.

Public Member Functions

 YQComboBox (YWidget *parent, const std::string &label, bool editable)
 ~YQComboBox ()
virtual void addItem (YItem *item)
virtual void deleteAllItems ()
virtual void setLabel (const std::string &label)
virtual void setValidChars (const std::string &validChars)
virtual void setInputMaxLength (int numberOfChars)
bool isValidText (const QString &txt) const
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 (int i)
void textChanged (QString)

Protected Member Functions

virtual std::string text ()
virtual void setText (const std::string &newText)

Protected Attributes

YQWidgetCaption_caption
QComboBox * _qt_comboBox
QY2CharValidator_validator

Detailed Description

Definition at line 37 of file YQComboBox.h.


Constructor & Destructor Documentation

YQComboBox::YQComboBox ( YWidget *  parent,
const std::string &  label,
bool  editable 
)

Constructor.

Definition at line 46 of file YQComboBox.cc.

Here is the call graph for this function:

Destructor.

Definition at line 84 of file YQComboBox.cc.


Member Function Documentation

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

Add one item. This widget assumes ownership of the item object and will delete it in its destructor.

Reimplemented from YComboBox.

Definition at line 118 of file YQComboBox.cc.

Here is the call graph for this function:

void YQComboBox::deleteAllItems ( ) [virtual]

Delete all items.

Reimplemented from YSelectionWidget.

Definition at line 145 of file YQComboBox.cc.

bool YQComboBox::isValidText ( const QString &  txt) const

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

Definition at line 194 of file YQComboBox.cc.

Here is the call graph for this function:

int YQComboBox::preferredHeight ( ) [virtual]

Preferred height of the widget.

Reimplemented from YWidget.

Definition at line 240 of file YQComboBox.cc.

int YQComboBox::preferredWidth ( ) [virtual]

Preferred width of the widget.

Reimplemented from YWidget.

Definition at line 234 of file YQComboBox.cc.

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

Set enabled / disabled state.

Reimplemented from YWidget.

Definition at line 252 of file YQComboBox.cc.

void YQComboBox::setInputMaxLength ( int  numberOfChars) [virtual]

Specify the amount of characters which can be inserted.

Reimplemented from YComboBox.

Definition at line 227 of file YQComboBox.cc.

bool YQComboBox::setKeyboardFocus ( ) [virtual]

Accept the keyboard focus.

Definition at line 260 of file YQComboBox.cc.

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

Change the label text.

Reimplemented from YSelectionWidget.

Definition at line 154 of file YQComboBox.cc.

Here is the call graph for this function:

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

Set the new size of the widget.

Reimplemented from YWidget.

Definition at line 246 of file YQComboBox.cc.

void YQComboBox::setText ( const std::string &  newText) [protected, virtual]

Set this ComboBox's current value as text.

Called internally whenever the content is to change programmatically. Don't call setValue() or selectItem() from here.

Implemented from YComboBox.

Definition at line 96 of file YQComboBox.cc.

Here is the call graph for this function:

void YQComboBox::setValidChars ( const std::string &  validChars) [virtual]

Change the valid input characters.

Reimplemented from YComboBox.

Definition at line 161 of file YQComboBox.cc.

Here is the call graph for this function:

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.

Definition at line 206 of file YQComboBox.cc.

Here is the call graph for this function:

string YQComboBox::text ( ) [protected, virtual]

Return this ComboBox's current value as text.

Called internally from value(), selectedItem() and related.

Implemented from YComboBox.

Definition at line 90 of file YQComboBox.cc.

void YQComboBox::textChanged ( QString  ) [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.

Definition at line 220 of file YQComboBox.cc.

Here is the call graph for this function:


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