~ubuntu-branches/ubuntu/quantal/okular/quantal

« back to all changes in this revision

Viewing changes to core/action.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Kolberg
  • Date: 2012-05-25 22:32:00 UTC
  • mfrom: (1.1.12)
  • Revision ID: package-import@ubuntu.com-20120525223200-gq9nc94hfvf5zhoz
Tags: 4:4.8.80-0ubuntu1
* New upstream release
  - Refresh symbol files

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
#include "okular_export.h"
15
15
 
16
16
#include <QtCore/QString>
 
17
#include <QtCore/QVariant>
17
18
 
18
19
namespace Okular {
19
20
 
25
26
class SoundActionPrivate;
26
27
class ScriptActionPrivate;
27
28
class MovieActionPrivate;
 
29
class MovieAnnotation;
28
30
class Sound;
29
31
class DocumentViewport;
30
32
 
70
72
         */
71
73
        virtual QString actionTip() const;
72
74
 
 
75
        /**
 
76
         * Sets the "native" @p id of the action.
 
77
         *
 
78
         * This is for use of the Generator, that can optionally store an
 
79
         * handle (a pointer, an identifier, etc) of the "native" action
 
80
         * object, if any.
 
81
         *
 
82
         * @note Okular makes no use of this
 
83
         *
 
84
         * @since 0.15 (KDE 4.9)
 
85
         */
 
86
        void setNativeId( const QVariant &id );
 
87
 
 
88
        /**
 
89
         * Returns the "native" id of the action.
 
90
         *
 
91
         * @since 0.15 (KDE 4.9)
 
92
         */
 
93
        QVariant nativeId() const;
 
94
 
73
95
    protected:
74
96
        /// @cond PRIVATE
75
97
        Action( ActionPrivate &dd );
398
420
        Q_DISABLE_COPY( ScriptAction )
399
421
};
400
422
 
401
 
#if 0
402
423
/**
403
 
 * The Movie action plays a video on activation.
 
424
 * The Movie action executes an operation on a video on activation.
 
425
 *
 
426
 * @since 0.15 (KDE 4.9)
404
427
 */
405
 
class MovieAction : public Action
 
428
class OKULAR_EXPORT MovieAction : public Action
406
429
{
407
430
    public:
408
431
        /**
 
432
         * Describes the possible operation types.
 
433
         */
 
434
        enum OperationType {
 
435
            Play,
 
436
            Stop,
 
437
            Pause,
 
438
            Resume
 
439
        };
 
440
 
 
441
        /**
409
442
         * Creates a new movie action.
410
443
         */
411
 
        MovieAction();
 
444
        MovieAction( OperationType operation );
412
445
 
413
446
        /**
414
447
         * Destroys the movie action.
425
458
         */
426
459
        QString actionTip() const;
427
460
 
 
461
        /**
 
462
         * Returns the operation type.
 
463
         */
 
464
        OperationType operation() const;
 
465
 
 
466
        /**
 
467
         * Sets the @p annotation that is associated with the movie action.
 
468
         */
 
469
        void setAnnotation( MovieAnnotation *annotation );
 
470
 
 
471
        /**
 
472
         * Returns the annotation or @c 0 if no annotation has been set.
 
473
         */
 
474
        MovieAnnotation* annotation() const;
 
475
 
428
476
    private:
429
477
        Q_DECLARE_PRIVATE( MovieAction )
430
478
        Q_DISABLE_COPY( MovieAction )
431
479
};
432
 
#endif
433
480
 
434
481
}
435
482