Okular
kjs_field.cpp
262 static KJSObject fieldButtonSetIcon(KJSContext *ctx, void *object, const KJSArguments &arguments)
292 g_fieldProto->defineProperty(ctx, QStringLiteral("readonly"), fieldGetReadOnly, fieldSetReadOnly);
bool toBoolean(KJSContext *ctx)
KJSObject globalObject()
virtual void setText(const QString &text)
Sets the new text in the text field.
Definition: form.cpp:203
singleShot
int count(const T &value) const const
virtual ButtonType buttonType() const =0
The particular type of the button field.
void refreshFormWidget(Okular::FormField *field)
This signal is emitted whenever a FormField was changed programmatically and the according widget sho...
KJSInterpreter interpreter()
virtual QStringList choices() const =0
The possible choices of the choice field.
Q_GLOBAL_STATIC(Internal::StaticControl, s_instance) class ControlPrivate
virtual ChoiceType choiceType() const =0
The particular type of the choice field.
virtual void setIcon(Okular::FormField *field)
Sets the icon of the Button to the Icon of the field parameter.
Definition: form.cpp:167
KJSObject at(int idx) const
KJSObject property(KJSContext *ctx, const QString &name)
const T & at(int i) const const
virtual QList< int > currentChoices() const =0
The currently selected choices.
int toInt32(KJSContext *ctx)
void defineProperty(KJSContext *ctx, const QString &name, PropertyGetter getter, PropertySetter setter=nullptr)
virtual void setState(bool state)
Sets the state of the button to the new state .
Definition: form.cpp:163
void defineFunction(KJSContext *ctx, const QString &name, FunctionCall callback)
KJSObject constructObject(KJSContext *ctx, void *internalValue=nullptr)
QString toString(KJSContext *ctx)
virtual QString fullyQualifiedName() const =0
The fully qualified name of the field, is used in the JavaScript scripts.
void refreshPixmaps(int pageNumber)
Refresh the pixmaps for the given pageNumber.
Definition: document.cpp:5301
QString exportValueForChoice(const QString &choice) const
Returns the export value for a given choice.
Definition: form.cpp:322
virtual QVariant get(ScriptableExtension *callerPrincipal, quint64 objId, const QString &propName)
void setProperty(KJSContext *ctx, const QString &name, bool value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Mar 23 2023 04:04:24 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Mar 23 2023 04:04:24 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.