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

okular

  • kde-4.x
  • kdegraphics
  • okular
  • core
movie.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2008 by Pino Toscano <[email protected]> *
3  * Copyright (C) 2012 by Guillermo A. Amaral B. <[email protected]> *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  ***************************************************************************/
10 
11 #ifndef _OKULAR_MOVIE_H_
12 #define _OKULAR_MOVIE_H_
13 
14 #include "global.h"
15 #include "okularcore_export.h"
16 
17 #include <QSize>
18 
19 class QImage;
20 
21 namespace Okular {
22 
28 class OKULARCORE_EXPORT Movie
29 {
30  public:
34  enum PlayMode
35  {
36  PlayLimited,
37  PlayOpen,
38  PlayRepeat,
39  PlayPalindrome
40  };
41 
45  explicit Movie( const QString& fileName );
46 
50  explicit Movie( const QString& fileName, const QByteArray &data );
51 
55  ~Movie();
56 
60  QString url() const;
61 
65  void setSize( const QSize &aspect );
66 
70  QSize size() const;
71 
75  void setRotation( Rotation rotation );
76 
80  Rotation rotation() const;
81 
85  void setShowControls( bool show );
86 
90  bool showControls() const;
91 
95  void setPlayMode( PlayMode mode );
96 
100  PlayMode playMode() const;
101 
106  void setPlayRepetitions( double repetitions );
107 
112  double playRepetitions() const;
113 
117  void setAutoPlay( bool autoPlay );
118 
122  bool autoPlay() const;
123 
129  void setShowPosterImage( bool show );
130 
136  bool showPosterImage() const;
137 
143  void setPosterImage( const QImage &image );
144 
150  QImage posterImage() const;
151 
152  private:
153  class Private;
154  Private* const d;
155 
156  Q_DISABLE_COPY( Movie )
157 };
158 
159 }
160 
161 #endif
Okular::Rotation
Rotation
A rotation.
Definition: global.h:50
QByteArray
global.h
Okular::Movie::PlayLimited
Play a fixed amount of times, closing the movie controls at the end.
Definition: movie.h:36
Okular::Movie::PlayMode
PlayMode
The play mode for playing the movie.
Definition: movie.h:34
QString
Okular::Movie::PlayOpen
Like PlayLimited, but leaving the controls open.
Definition: movie.h:37
QSize
QImage
Okular::Movie::PlayRepeat
Play continuously until stopped.
Definition: movie.h:38
Okular::Movie
Contains information about a movie object.
Definition: movie.h:28
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Wed Dec 11 2019 06:26:10 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"
  •     libkipiplugins
  •     src
  •     src
  •     src
  •     src
  •     src
  • 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