libyui-qt
2.43.5
|
Public Member Functions | |
YQInputField (YWidget *parent, const std::string &label, bool passwordMode=false) | |
virtual std::string | value () |
virtual void | setValue (const std::string &text) |
virtual void | setLabel (const std::string &label) |
virtual void | setValidChars (const std::string &validChars) |
virtual void | setInputMaxLength (int numberOfChars) |
bool | isValidText (const QString &text) 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 | changed (const QString &) |
void | displayCapsLockWarning () |
void | clearCapsLockWarning () |
Protected Attributes | |
YQWidgetCaption * | _caption |
YQRawLineEdit * | _qt_lineEdit |
QY2CharValidator * | _validator |
bool | _shrinkable |
bool | _displayingCapsLockWarning |
Definition at line 42 of file YQInputField.h.
YQInputField::YQInputField | ( | YWidget * | parent, |
const std::string & | label, | ||
bool | passwordMode = false |
||
) |
Constructor.
Definition at line 55 of file YQInputField.cc.
void YQInputField::changed | ( | const QString & | ) | [protected, slot] |
Triggered when the text in the InputField changes. This _may_ be of interest to the module.
Definition at line 212 of file YQInputField.cc.
void YQInputField::clearCapsLockWarning | ( | ) | [protected, slot] |
Clear the CapsLock warning: Restore old label
Definition at line 243 of file YQInputField.cc.
void YQInputField::displayCapsLockWarning | ( | ) | [protected, slot] |
Display a warning that CapsLock is active: Replace the label with "CapsLock!"
Definition at line 219 of file YQInputField.cc.
bool YQInputField::isValidText | ( | const QString & | text | ) | const |
Returns 'true' if a given text is valid according to ValidChars.
Definition at line 157 of file YQInputField.cc.
int YQInputField::preferredHeight | ( | ) | [virtual] |
Preferred height of the widget.
Reimplemented from YWidget.
Definition at line 138 of file YQInputField.cc.
int YQInputField::preferredWidth | ( | ) | [virtual] |
Preferred width of the widget.
Reimplemented from YWidget.
Definition at line 127 of file YQInputField.cc.
void YQInputField::setEnabled | ( | bool | enabled | ) | [virtual] |
Set enabled/disabled state.
Reimplemented from YWidget.
Definition at line 119 of file YQInputField.cc.
void YQInputField::setInputMaxLength | ( | int | numberOfChars | ) | [virtual] |
Specify the amount of characters which can be inserted.
Reimplemented from YInputField.
Definition at line 197 of file YQInputField.cc.
bool YQInputField::setKeyboardFocus | ( | ) | [virtual] |
Accept the keyboard focus.
Reimplemented from YWidget.
Definition at line 203 of file YQInputField.cc.
void YQInputField::setLabel | ( | const std::string & | label | ) | [virtual] |
Set the label (the caption above the input field).
Reimplemented from YInputField.
Definition at line 150 of file YQInputField.cc.
void YQInputField::setSize | ( | int | newWidth, |
int | newHeight | ||
) | [virtual] |
Set the new size of the widget.
Reimplemented from YWidget.
Definition at line 144 of file YQInputField.cc.
void YQInputField::setValidChars | ( | const std::string & | validChars | ) | [virtual] |
Set the valid input characters. No input validation is performed (i.e., the user can enter anything) if this is empty.
Reimplemented from YInputField.
Definition at line 169 of file YQInputField.cc.
void YQInputField::setValue | ( | const std::string & | text | ) | [virtual] |
Set the current value (the text entered by the user or set from the outside) of this input field.
Reimplemented from YInputField.
Definition at line 103 of file YQInputField.cc.
string YQInputField::value | ( | ) | [virtual] |
Get the current value (the text entered by the user or set from the outside) of this input field.
Reimplemented from YInputField.
Definition at line 97 of file YQInputField.cc.