Okular::GotoAction
#include <action.h>
Public Member Functions | |
GotoAction (const QString &fileName, const DocumentViewport &viewport) | |
GotoAction (const QString &fileName, const QString &namedDestination) | |
~GotoAction () override | |
QString | actionTip () const override |
ActionType | actionType () const override |
QString | destinationName () const |
DocumentViewport | destViewport () const |
QString | fileName () const |
bool | isExternal () const |
Public Member Functions inherited from Okular::Action | |
virtual | ~Action () |
const void * | nativeHandle () const |
OKULARCORE_DEPRECATED QVariant | nativeId () const |
QVector< Action * > | nextActions () const |
void | setNativeHandle (std::shared_ptr< const void > handle) |
OKULARCORE_DEPRECATED void | setNativeId (const QVariant &id) |
void | setNextActions (const QVector< Action * > &actions) |
Additional Inherited Members | |
Public Types inherited from Okular::Action | |
enum | ActionType { Goto , Execute , Browse , DocAction , Sound , Movie , Script , Rendition , BackendOpaque } |
Detailed Description
The Goto action changes the viewport to another page or loads an external document.
Constructor & Destructor Documentation
◆ GotoAction() [1/2]
GotoAction::GotoAction | ( | const QString & | fileName, |
const DocumentViewport & | viewport ) |
Creates a new goto action.
fileName
The name of an external file that shall be loaded. viewport
The target viewport information of the current document.
Definition at line 115 of file action.cpp.
◆ GotoAction() [2/2]
Creates a new goto action.
fileName
The name of an external file that shall be loaded. namedDestination
The target named destination for the target document.
- Since
- 0.9 (KDE 4.3)
Definition at line 120 of file action.cpp.
◆ ~GotoAction()
|
override |
Destroys the goto action.
Definition at line 125 of file action.cpp.
Member Function Documentation
◆ actionTip()
|
overridevirtual |
Returns the action tip.
Reimplemented from Okular::Action.
Definition at line 134 of file action.cpp.
◆ actionType()
|
overridevirtual |
◆ destinationName()
QString GotoAction::destinationName | ( | ) | const |
Returns the document named destination the goto action points to.
- Since
- 0.9 (KDE 4.3)
Definition at line 158 of file action.cpp.
◆ destViewport()
DocumentViewport GotoAction::destViewport | ( | ) | const |
Returns the document viewport the goto action points to.
Definition at line 152 of file action.cpp.
◆ fileName()
QString GotoAction::fileName | ( | ) | const |
Returns the filename of the external document.
Definition at line 146 of file action.cpp.
◆ isExternal()
bool GotoAction::isExternal | ( | ) | const |
Returns whether the goto action points to an external document.
Definition at line 140 of file action.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:02:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.