168 virtual void SetText (
const QString& text) = 0;
452 "org.LeechCraft.Monocle.IFormField/1.0")
453Q_DECLARE_INTERFACE (
LC::Monocle::IFormFieldText,
454 "org.LeechCraft.Monocle.IFormFieldText/1.0")
455Q_DECLARE_INTERFACE (
LC::Monocle::IFormFieldChoice,
456 "org.LeechCraft.Monocle.IFormFieldChoice/1.0")
457Q_DECLARE_INTERFACE (
LC::Monocle::IFormFieldButton,
458 "org.LeechCraft.Monocle.IFormFieldButton/1.0")
Interface to be implemented by text fields.
virtual void SetText(const QString &text)=0
Sets the current text value of this field to text.
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 bool IsRichText() const =0
Returns whether rich text should be accepted.
virtual ~IFormFieldText()
Virtual destructor.
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.
@ SingleLine
Single line text edit.
@ Multiline
Multiline text edit.
std::variant< NoAction, NavigationAction, ExternalNavigationAction, UrlAction, CustomAction > LinkAction
std::shared_ptr< IFormField > IFormField_ptr
A shared pointer to a IFormField.
FormType
Describes the possible types of a form field.
@ Choice
A single- and multiple choice field.
@ Button
A push button, radio button or check box.
@ Text
A simple text annotation.