![]() |
LeechCraft Monocle
0.6.70-6645-gcd10d7e
Modular document viewer for LeechCraft
|
Interface to be implemented by text fields. More...
#include "iformfield.h"
Public Types | |
enum | Type { Type::SingleLine, Type::Multiline, Type::File } |
Describes various types of text entry fields. More... | |
Public Member Functions | |
virtual | ~IFormFieldText () |
Virtual destructor. More... | |
virtual QString | GetText () const =0 |
Returns the current text value of this field. More... | |
virtual void | SetText (const QString &text)=0 |
Sets the current text value of this field to text. More... | |
virtual Type | GetTextType () const =0 |
Returns the exact type of this text entry field. More... | |
virtual int | GetMaximumLength () const =0 |
Returns the maximum length of the text. More... | |
virtual bool | IsPassword () const =0 |
Returns whether this is a password entry field. More... | |
virtual bool | IsRichText () const =0 |
Returns whether rich text should be accepted. More... | |
Interface to be implemented by text fields.
If a field is of type FormType::Text, it should also implement this interface.
Definition at line 150 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 157 of file iformfield.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 174 of file iformfield.h.
|
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. |