Okular::Action
#include <action.h>

Public Types | |
enum | ActionType { Goto, Execute, Browse, DocAction, Sound, Movie, Script, Rendition, BackendOpaque } |
Public Member Functions | |
virtual | ~Action () |
virtual QString | actionTip () const |
virtual ActionType | actionType () const =0 |
QVariant | nativeId () const |
QVector< Action * > | nextActions () const |
void | setNativeId (const QVariant &id) |
void | setNextActions (const QVector< Action * > &actions) |
Detailed Description
Encapsulates data that describes an action.
This is the base class for actions. It makes mandatory for inherited widgets to reimplement the 'actionType' method and return the type of the action described by the reimplemented class.
Member Enumeration Documentation
◆ ActionType
Describes the type of action.
Enumerator | |
---|---|
Goto | Goto a given page or external document. |
Execute | Execute a command or external application. |
Browse | Browse a given website. |
DocAction | Start a custom action. |
Sound | Play a sound. |
Movie | Play a movie. |
Script | Executes a Script code. |
Rendition | Play a movie and/or execute a Script code.
|
BackendOpaque | Calls back to the backend with the action.
|
Constructor & Destructor Documentation
◆ ~Action()
|
virtual |
Destroys the action.
Definition at line 44 of file action.cpp.
Member Function Documentation
◆ actionTip()
|
virtual |
Returns a i18n'ed tip of the action that is presented to the user.
Reimplemented in Okular::RenditionAction, Okular::MovieAction, Okular::ScriptAction, Okular::SoundAction, Okular::DocumentAction, Okular::BrowseAction, Okular::ExecuteAction, and Okular::GotoAction.
Definition at line 49 of file action.cpp.
◆ actionType()
|
pure virtual |
Returns the type of the action.
Every inherited class must return an unique identifier.
- See also
- ActionType
Implemented in Okular::RenditionAction, Okular::MovieAction, Okular::ScriptAction, Okular::SoundAction, Okular::DocumentAction, Okular::BrowseAction, Okular::ExecuteAction, and Okular::GotoAction.
◆ nativeId()
QVariant Action::nativeId | ( | ) | const |
Returns the "native" id of the action.
- Since
- 0.15 (KDE 4.9)
Definition at line 60 of file action.cpp.
◆ nextActions()
◆ setNativeId()
void Action::setNativeId | ( | const QVariant & | id | ) |
Sets the "native" id
of the action.
This is for use of the Generator, that can optionally store an handle (a pointer, an identifier, etc) of the "native" action object, if any.
- Note
- Okular makes no use of this
- Since
- 0.15 (KDE 4.9)
Definition at line 54 of file action.cpp.
◆ setNextActions()
Sets the next actions.
Takes ownership of the objects in the actions vector.
- Since
- 1.5
Definition at line 72 of file action.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Sep 27 2023 03:53:51 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.