• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegraphics API Reference
  • KDE Home
  • Contact Us
 

okular

  • Okular
  • Action
Public Types | Public Member Functions | List of all members
Okular::Action Class Referenceabstract

#include <action.h>

Inheritance diagram for Okular::Action:
Inheritance graph
[legend]

Public Types

enum  ActionType {
  Goto, Execute, Browse, DocAction,
  Sound, Movie, Script, Rendition
}
 

Public Member Functions

virtual ~Action ()
 
virtual QString actionTip () const
 
virtual ActionType actionType () const =0
 
QVariant nativeId () const
 
void setNativeId (const QVariant &id)
 

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.

Definition at line 43 of file action.h.

Member Enumeration Documentation

enum Okular::Action::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.

Since
0.16 (KDE 4.10)

Definition at line 49 of file action.h.

Constructor & Destructor Documentation

Action::~Action ( )
virtual

Destroys the action.

Definition at line 42 of file action.cpp.

Member Function Documentation

QString Action::actionTip ( ) const
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 47 of file action.cpp.

virtual ActionType Okular::Action::actionType ( ) const
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.

QVariant Action::nativeId ( ) const

Returns the "native" id of the action.

Since
0.15 (KDE 4.9)

Definition at line 58 of file action.cpp.

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 52 of file action.cpp.


The documentation for this class was generated from the following files:
  • action.h
  • action.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okular

Skip menu "okular"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkdcraw
  •     libkexiv2
  •     libkipi
  •     libksane
  • okular

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal