30 #include <yui/YComboBox.h>
45 YQComboBox( YWidget * parent,
const std::string & label,
bool editable );
58 virtual void addItem( YItem * item );
72 virtual void setLabel(
const std::string & label );
120 virtual void setSize(
int newWidth,
int newHeight );
153 virtual std::string
text();
164 virtual void setText(
const std::string & newText );
172 QComboBox * _qt_comboBox;
virtual void setValidChars(const std::string &validChars)
Change the valid input characters.
virtual std::string text()
Return this ComboBox's current value as text.
virtual void setLabel(const std::string &label)
Change the label text.
void textChanged(QString)
Tells the ui that the user has edited the text ( if the 'editable' option is set ).
virtual void setEnabled(bool enabled)
Set enabled / disabled state.
YQComboBox(YWidget *parent, const std::string &label, bool editable)
Constructor.
virtual void addItem(YItem *item)
Add one item.
virtual void deleteAllItems()
Delete all items.
void slotSelected(int i)
Tells the ui that an item has been selected.
bool isValidText(const QString &txt) const
Returns 'true' if the given text is valid according to the current setting of ValidChars.
virtual bool setKeyboardFocus()
Accept the keyboard focus.
virtual int preferredWidth()
Preferred width of the widget.
virtual void setSize(int newWidth, int newHeight)
Set the new size of the widget.
virtual int preferredHeight()
Preferred height of the widget.
virtual void setInputMaxLength(int numberOfChars)
Specify the amount of characters which can be inserted.
virtual void setText(const std::string &newText)
Set this ComboBox's current value as text.