7#ifndef _OKULAR_ACTION_H_
8#define _OKULAR_ACTION_H_
11#include "okularcore_export.h"
19class GotoActionPrivate;
20class ExecuteActionPrivate;
21class BrowseActionPrivate;
22class DocumentActionPrivate;
23class SoundActionPrivate;
24class ScriptActionPrivate;
25class MovieActionPrivate;
26class RenditionActionPrivate;
75 virtual QString actionTip()
const;
88 OKULARCORE_DEPRECATED
void setNativeId(
const QVariant &
id);
96 OKULARCORE_DEPRECATED
QVariant nativeId()
const;
111 void setNativeHandle(std::shared_ptr<const void> handle);
118 const void *nativeHandle()
const;
137 explicit Action(ActionPrivate &dd);
139 ActionPrivate *d_ptr;
184 QString actionTip()
const override;
189 bool isExternal()
const;
206 QString destinationName()
const;
240 QString actionTip()
const override;
284 QString actionTip()
const override;
328 explicit DocumentAction(
enum DocumentActionType documentActionType);
338 ActionType actionType()
const override;
343 QString actionTip()
const override;
348 DocumentActionType documentActionType()
const;
385 QString actionTip()
const override;
390 double volume()
const;
395 bool synchronous()
const;
446 QString actionTip()
const override;
489 ActionType actionType()
const override;
494 QString actionTip()
const override;
499 OperationType operation()
const;
554 ActionType actionType()
const override;
559 QString actionTip()
const override;
564 OperationType operation()
const;
596class OKULARCORE_EXPORT BackendOpaqueAction :
public Action
599 enum OpaqueActionResult {
603 Q_DECLARE_FLAGS(OpaqueActionResults, OpaqueActionResult)
605 BackendOpaqueAction();
610 ActionType actionType()
const override;
613 Q_DISABLE_COPY(BackendOpaqueAction)
Encapsulates data that describes an action.
ActionType
Describes the type of action.
@ Execute
Execute a command or external application.
@ Goto
Goto a given page or external document.
@ DocAction
Start a custom action.
@ Browse
Browse a given website.
@ Script
Executes a Script code.
@ Rendition
Play a movie and/or execute a Script code.
virtual ActionType actionType() const =0
Returns the type of the action.
The Browse action browses an url by opening a web browser or email client, depending on the url proto...
The DocumentAction action contains an action that is performed on the current document.
DocumentActionType
Describes the possible action types.
The Execute action executes an external application.
The Goto action changes the viewport to another page or loads an external document.
The Movie action executes an operation on a video on activation.
OperationType
Describes the possible operation types.
Contains information about a movie object.
The Rendition action executes an operation on a video or executes some JavaScript code on activation.
OperationType
Describes the possible operation types.
@ Stop
Stop playing the video.
@ None
Execute only the JavaScript.
@ Play
Start playing the video.
The Script action executes a Script code.
The Sound action plays a sound on activation.
Contains information about a sound object.
ScriptType
Describes the possible script types.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:33 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.