![]() |
LeechCraft Monocle
0.6.70-6645-gcd10d7e
Modular document viewer for LeechCraft
|
Base interface to be implemented by form fields. More...
#include "iformfield.h"
Public Member Functions | |
virtual | ~IFormField () |
Virtual destructor. More... | |
virtual FormType | GetType () const =0 |
Returns the type of this field. More... | |
virtual int | GetID () const =0 |
Returns the unique ID of this field. More... | |
virtual QString | GetName () const =0 |
Returns the user-visible name of this field. More... | |
virtual QRectF | GetRect () const =0 |
Returns the rectangle this field occupies. More... | |
virtual Qt::Alignment | GetAlignment () const =0 |
Returns the alignment of the contents of this field. More... | |
Base interface to be implemented by form fields.
This is a base interface that should be implemented by all form fields disregarding their type. Depending on the type of this field returned by the GetType() method the corresponding class should also implement other interfaces. See FormType documentation for details.
As a general rule, there is no "Apply" method in form interfaces. Instead, changes should be applied as soon as corresponding interface's setter method is called.
Definition at line 86 of file iformfield.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 91 of file iformfield.h.
|
pure virtual |
Returns the alignment of the contents of this field.
This method returns, for example, text alignment in a text entry field or options alignment in a list widget.
|
pure virtual |
Returns the unique ID of this field.
The ID should be unique across the whole document.
|
pure virtual |
Returns the user-visible name of this field.
|
pure virtual |
Returns the rectangle this field occupies.
All fields occupy a fixed area on the page and cannot grow or shrink depending on their content. This method returns the rectangle of the area that this field should occupy.
The returned rectangle is expected to be in relative page coordinates — that is, with width and height in [0; 1] range, 0 meaning left or top and 1 meaning right or bottom.
|
pure virtual |
Returns the type of this field.