|
|
|
|
@ -25,6 +25,17 @@ namespace Okular { |
|
|
|
|
class OKULAR_EXPORT Movie |
|
|
|
|
{ |
|
|
|
|
public: |
|
|
|
|
/**
|
|
|
|
|
* The play mode for playing the movie |
|
|
|
|
*/ |
|
|
|
|
enum PlayMode |
|
|
|
|
{ |
|
|
|
|
PlayOnce, ///< Play the movie once, closing the movie controls at the end
|
|
|
|
|
PlayOpen, ///< Like PlayOnce, but leaving the controls open
|
|
|
|
|
PlayRepeat, ///< Play continuously until stopped
|
|
|
|
|
PlayPalindrome ///< Play forward, then backward, then again foward and so on until stopped
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Creates a new movie object with the given external @p fileName. |
|
|
|
|
*/ |
|
|
|
|
@ -60,6 +71,26 @@ class OKULAR_EXPORT Movie |
|
|
|
|
*/ |
|
|
|
|
Rotation rotation() const; |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Sets whether show a bar with movie controls |
|
|
|
|
*/ |
|
|
|
|
void setShowControls( bool show ); |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Whether show a bar with movie controls |
|
|
|
|
*/ |
|
|
|
|
bool showControls() const; |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Sets the way the movie should be played |
|
|
|
|
*/ |
|
|
|
|
void setPlayMode( PlayMode mode ); |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* How to play the movie |
|
|
|
|
*/ |
|
|
|
|
PlayMode playMode() const; |
|
|
|
|
|
|
|
|
|
private: |
|
|
|
|
class Private; |
|
|
|
|
Private* const d; |
|
|
|
|
|