![]() |
LeechCraft Monocle 0.6.70-18450-gabe19ee3b0
Modular document viewer for LeechCraft
|
Interface to be implemented by text fields. More...
#include "iformfield.h"
Public Types | |
| enum class | Type { SingleLine , Multiline , File } |
| Describes various types of text entry fields. More... | |
Public Member Functions | |
| virtual | ~IFormFieldText ()=default |
| Virtual destructor. | |
| virtual QString | GetText () const =0 |
| Returns the current text value of this field. | |
| virtual void | SetText (const QString &text)=0 |
| Sets the current text value of this field to text. | |
| virtual Type | GetTextType () const =0 |
| Returns the exact type of this text entry field. | |
| virtual int | GetMaximumLength () const =0 |
| Returns the maximum length of the text. | |
| virtual bool | IsPassword () const =0 |
| Returns whether this is a password entry field. | |
| virtual bool | IsRichText () const =0 |
| Returns whether rich text should be accepted. | |
Interface to be implemented by text fields.
If a field is of type FormType::Text, it should also implement this interface.
Definition at line 121 of file iformfield.h.
|
strong |
Describes various types of text entry fields.
| Enumerator | |
|---|---|
| SingleLine | Single line text edit. |
| Multiline | Multiline text edit. |
| File | File entry widget. |
Definition at line 128 of file iformfield.h.
|
virtualdefault |
Virtual destructor.
|
pure virtual |
Returns the maximum length of the text.
A return value of 0 or less means the text length is unlimited.
|
pure virtual |
Returns the current text value of this field.
|
pure virtual |
Returns the exact type of this text entry field.
|
pure virtual |
Returns whether this is a password entry field.
Characters in password entry fields are masked by dots or something similar so that the entered text isn't visible.
|
pure virtual |
Returns whether rich text should be accepted.
This only makes sense for Type::Multiline fields.
|
pure virtual |
Sets the current text value of this field to text.
| [in] | text | The new text value of this field. |