libyui
|
#include <YInputField.h>
Protected Member Functions | |
YInputField (YWidget *parent, const std::string &label, bool passwordMode=false) | |
![]() | |
YWidget (YWidget *parent) | |
YWidgetChildrenManager * | childrenManager () const |
void | setChildrenManager (YWidgetChildrenManager *manager) |
void | setBeingDestroyed () |
void | dumpWidget (YWidget *w, int indentationLevel) |
InputField: General purpose one line input field for entering text and other data. Can be used for entering passwords with a "*" echoed for every character typed.
Like most widgets, the InputField has a label (a caption) above the input field itself. The label can and should get a keyboard shortcut (specified with '&') that will make the input field receive the keyboard focus with a special key combination ("&Name" -> Alt-N or Ctrl-N will make the keyboard focus jump to the corresponding input field).
|
protected |
Constructor.
Create an input field with 'label' as the caption. If 'passwordMode' is set, the input will be not be echoed as clear text.
|
virtual |
Destructor.
|
virtual |
int YInputField::inputMaxLength | ( | ) | const |
The maximum input length, i.e., the maximum number of characters the user can enter. -1 means no limit.
string YInputField::label | ( | ) | const |
Get the label (the caption above the input field).
bool YInputField::passwordMode | ( | ) | const |
Returns 'true' if this input field is in password mode, i.e. if there should be no on-screen echo or only a '*' for each character typed.
Notice that this can only be set in the constructor.
|
virtual |
|
virtual |
Set the maximum input length, i.e., the maximum number of characters the user can enter. -1 means no limit.
Derived classes are free to reimplement this, but they should call this base class method at the end of the overloaded function.
Set the label (the caption above the input field).
Derived classes are free to reimplement this, but they should call this base class method at the end of the overloaded function.
|
virtual |
Make this InputField very small. This will take effect only upon the next geometry management run.
Derived classes can overwrite this, but should call this base class function in the new function.
Set the valid input characters. No input validation is performed (i.e., the user can enter anything) if this is empty.
Derived classes are free to reimplement this, but they should call this base class method at the end of the overloaded function.
Set the current value (the text entered by the user or set from the outside) of this input field.
Derived classes are required to implement this.
|
inlinevirtual |
bool YInputField::shrinkable | ( | ) | const |
Return 'true' if this InputField should be very small.
string YInputField::validChars | ( | ) |
Get the valid input characters. No input validation is performed (i.e., the user can enter anything) if this is empty.
|
pure virtual |
Get the current value (the text entered by the user or set from the outside) of this input field.
Derived classes are required to implement this.
Return a descriptive name of this widget class for logging, debugging etc.
Reimplemented from YWidget.