Okular::ScriptAction
Okular::ScriptAction Class Reference
#include <action.h>
Inheritance diagram for Okular::ScriptAction:

Public Member Functions | |
ScriptAction (enum ScriptType type, const QString &script) | |
~ScriptAction () override | |
QString | actionTip () const override |
ActionType | actionType () const override |
QString | script () const |
ScriptType | scriptType () const |
![]() | |
virtual | ~Action () |
QVariant | nativeId () const |
QVector< Action * > | nextActions () const |
void | setNativeId (const QVariant &id) |
void | setNextActions (const QVector< Action * > &actions) |
Additional Inherited Members | |
![]() | |
enum | ActionType { Goto, Execute, Browse, DocAction, Sound, Movie, Script, Rendition, BackendOpaque } |
Detailed Description
The Script action executes a Script code.
- Since
- 0.7 (KDE 4.1)
Constructor & Destructor Documentation
◆ ScriptAction()
ScriptAction::ScriptAction | ( | enum ScriptType | type, |
const QString & | script | ||
) |
Creates a new Script action.
- Parameters
-
type The type of the script (for now, only JavaScript = 0 is implemented). script The code to execute.
Definition at line 404 of file action.cpp.
◆ ~ScriptAction()
|
override |
Destroys the browse action.
Definition at line 409 of file action.cpp.
Member Function Documentation
◆ actionTip()
|
overridevirtual |
Returns the action tip.
Reimplemented from Okular::Action.
Definition at line 418 of file action.cpp.
◆ actionType()
|
overridevirtual |
◆ script()
QString ScriptAction::script | ( | ) | const |
Returns the code.
Definition at line 435 of file action.cpp.
◆ scriptType()
ScriptType ScriptAction::scriptType | ( | ) | const |
Returns the type of action.
Definition at line 429 of file action.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Oct 3 2023 03:54:31 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Oct 3 2023 03:54:31 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.