105 virtual int GetID ()
const = 0;
111 virtual QString
GetName ()
const = 0;
127 virtual QRectF
GetRect ()
const = 0;
182 virtual QString
GetText ()
const = 0;
190 virtual void SetText (
const QString& text) = 0;
475 "org.LeechCraft.Monocle.IFormField/1.0")
476 Q_DECLARE_INTERFACE (
LC::Monocle::IFormFieldText,
477 "org.LeechCraft.Monocle.IFormFieldText/1.0")
478 Q_DECLARE_INTERFACE (
LC::Monocle::IFormFieldChoice,
479 "org.LeechCraft.Monocle.IFormFieldChoice/1.0")
480 Q_DECLARE_INTERFACE (
LC::Monocle::IFormFieldButton,
481 "org.LeechCraft.Monocle.IFormFieldButton/1.0")
virtual ~IFormFieldText()
Virtual destructor.
std::shared_ptr< IFormField > IFormField_ptr
A shared pointer to a IFormField.
A single- and multiple choice field.
A simple text annotation.
Interface to be implemented by text fields.
virtual bool IsRichText() const =0
Returns whether rich text should be accepted.
virtual bool IsPassword() const =0
Returns whether this is a password entry field.
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 QString GetText() const =0
Returns the current text value of this field.
Type
Describes various types of text entry fields.
FormType
Describes the possible types of a form field.
A push button, radio button or check box.
virtual void SetText(const QString &text)=0
Sets the current text value of this field to text.