Okular::FormFieldChoice
#include <form.h>
Public Types | |
enum | ChoiceType { ComboBox , ListBox } |
Public Types inherited from Okular::FormField | |
enum | AdditionalActionType { FieldModified , FormatField , ValidateField , CalculateField } |
enum | FieldType { FormButton , FormText , FormChoice , FormSignature } |
Public Member Functions | |
virtual bool | canBeSpellChecked () const |
virtual QStringList | choices () const =0 |
virtual ChoiceType | choiceType () const =0 |
virtual QList< int > | currentChoices () const =0 |
virtual QString | editChoice () const |
QString | exportValueForChoice (const QString &choice) const |
virtual bool | isEditable () const |
virtual bool | multiSelect () const |
virtual void | setAppearanceChoiceText (const QString &text)=0 |
void | setAppearanceValue (const QVariant &value) override |
virtual void | setCurrentChoices (const QList< int > &choices) |
virtual void | setEditChoice (const QString &text) |
void | setValue (const QVariant &value) override |
virtual Qt::Alignment | textAlignment () const |
QVariant | value () const override |
Public Member Functions inherited from Okular::FormField | |
Action * | activationAction () const |
Action * | additionalAction (AdditionalActionType type) const |
Action * | additionalAction (Annotation::AdditionalActionType type) const |
QList< Action * > | additionalActions () const |
void | commitFormattedValue (const QString &value) |
QString | committedFormattedValue () const |
QString | committedValue () const |
void | commitValue (const QString &value) |
virtual QString | fullyQualifiedName () const =0 |
virtual int | id () const =0 |
virtual bool | isPrintable () const |
virtual bool | isReadOnly () const |
virtual bool | isVisible () const |
virtual QString | name () const =0 |
Page * | page () const |
virtual NormalizedRect | rect () const =0 |
virtual void | setPrintable (bool value) |
virtual void | setReadOnly (bool value) |
virtual void | setVisible (bool value) |
FieldType | type () const |
virtual QString | uiName () const =0 |
Protected Member Functions | |
void | setExportValues (const QMap< QString, QString > &values) |
Protected Member Functions inherited from Okular::FormField | |
void | setActivationAction (Action *action) |
void | setAdditionalAction (AdditionalActionType type, Action *action) |
void | setAdditionalAction (Annotation::AdditionalActionType type, Action *action) |
Detailed Description
Interface of a choice form field.
This is the base interface to reimplement to represent a choice field, ie a field where the user can select one (of more) element(s) among a set of choices.
Member Enumeration Documentation
◆ ChoiceType
Constructor & Destructor Documentation
◆ ~FormFieldChoice()
◆ FormFieldChoice()
Member Function Documentation
◆ canBeSpellChecked()
|
virtual |
◆ choices()
|
pure virtual |
The possible choices of the choice field.
◆ choiceType()
|
pure virtual |
The particular type of the choice field.
◆ currentChoices()
|
pure virtual |
The currently selected choices.
Always one element in the list in case of single choice elements.
◆ editChoice()
|
virtual |
◆ exportValueForChoice()
◆ isEditable()
|
virtual |
◆ multiSelect()
|
virtual |
◆ setAppearanceChoiceText()
|
pure virtual |
Sets the text
which should be rendered by the PDF in the position of choice FormField.
- Since
- 24.12
◆ setAppearanceValue()
|
overridevirtual |
Sets the appearance value
associated with the form field.
- Since
- 24.12
Reimplemented from Okular::FormField.
◆ setCurrentChoices()
|
virtual |
◆ setEditChoice()
|
virtual |
◆ setExportValues()
◆ setValue()
|
overridevirtual |
Sets the value
asssociated with the choice form field.
It does not set anything for ListBox for now, only for the ComboBox.
Expected type of value
is QString.
- Since
- 24.12
Reimplemented from Okular::FormField.
◆ textAlignment()
|
virtual |
◆ value()
|
overridevirtual |
Returns the value associated with the choice form field.
In case of ComboBox, if there is any selection, then the selected value is returned, else the value entered in editText of the comboBox. Returns empty string for ListBox for now.
- Since
- 24.12
Reimplemented from Okular::FormField.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 11:49:40 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.