Search for usage in LXR

Okular::RenditionAction Class Reference

#include <action.h>

Inheritance diagram for Okular::RenditionAction:

Public Types

enum  OperationType {
  None, Play, Stop, Pause,
- Public Types inherited from Okular::Action
enum  ActionType {
  Goto, Execute, Browse, DocAction,
  Sound, Movie, Script, Rendition,

Public Member Functions

 RenditionAction (OperationType operation, Okular::Movie *movie, enum ScriptType scriptType, const QString &script)
 ~RenditionAction () override
QString actionTip () const override
ActionType actionType () const override
ScreenAnnotationannotation () const
Okular::Moviemovie () const
OperationType operation () const
QString script () const
ScriptType scriptType () const
void setAnnotation (ScreenAnnotation *annotation)
- Public Member Functions inherited from Okular::Action
virtual ~Action ()
QVariant nativeId () const
QVector< Action * > nextActions () const
void setNativeId (const QVariant &id)
void setNextActions (const QVector< Action * > &actions)

Detailed Description

The Rendition action executes an operation on a video or executes some JavaScript code on activation.

0.16 (KDE 4.10)

Definition at line 502 of file action.h.

Member Enumeration Documentation

Describes the possible operation types.


Execute only the JavaScript.


Start playing the video.


Stop playing the video.


Pause the video.


Resume playing the video.

Definition at line 508 of file action.h.

Constructor & Destructor Documentation

RenditionAction::RenditionAction ( OperationType  operation,
Okular::Movie movie,
enum ScriptType  scriptType,
const QString script 

Creates a new rendition action.

operationThe type of operation the action executes.
movieThe movie object the action references.
scriptTypeThe type of script the action executes.
scriptThe actual script the action executes.

Definition at line 519 of file action.cpp.

RenditionAction::~RenditionAction ( )

Destroys the rendition action.

Definition at line 524 of file action.cpp.

Member Function Documentation

QString RenditionAction::actionTip ( ) const

Returns the action tip.

Reimplemented from Okular::Action.

Definition at line 533 of file action.cpp.

Action::ActionType RenditionAction::actionType ( ) const

Returns the action type.

Implements Okular::Action.

Definition at line 528 of file action.cpp.

ScreenAnnotation * RenditionAction::annotation ( ) const

Returns the annotation or 0 if no annotation has been set.

Definition at line 587 of file action.cpp.

Okular::Movie * RenditionAction::movie ( ) const

Returns the movie object or 0 if no movie object was set on construction time.

Definition at line 563 of file action.cpp.

RenditionAction::OperationType RenditionAction::operation ( ) const

Returns the operation type.

Definition at line 557 of file action.cpp.

QString RenditionAction::script ( ) const

Returns the script code.

Definition at line 575 of file action.cpp.

ScriptType RenditionAction::scriptType ( ) const

Returns the type of script.

Definition at line 569 of file action.cpp.

void RenditionAction::setAnnotation ( ScreenAnnotation annotation)

Sets the annotation that is associated with the rendition action.

Definition at line 581 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-2021 The KDE developers.
Generated on Wed May 12 2021 22:35:30 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.