~ubuntu-branches/ubuntu/precise/okular/precise-proposed

« back to all changes in this revision

Viewing changes to core/action.h

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2011-12-23 22:53:33 UTC
  • mto: This revision was merged to the branch mainline in revision 13.
  • Revision ID: package-import@ubuntu.com-20111223225333-kkxbdqe29pr2glh5
Tags: upstream-4.7.95
Import upstream version 4.7.95

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
class MovieActionPrivate;
28
28
class Sound;
29
29
class DocumentViewport;
30
 
class ResetFormActionPrivate;
31
30
 
32
31
/**
33
32
 * @short Encapsulates data that describes an action.
49
48
            DocAction,  ///< Start a custom action
50
49
            Sound,      ///< Play a sound
51
50
            Movie,      ///< Play a movie
52
 
            Script,     ///< Executes a Script code
53
 
            ResetForm   ///< Start a reset form action @since 0.14 (KDE 4.8)
 
51
            Script      ///< Executes a Script code
54
52
        };
55
53
 
56
54
        /**
433
431
};
434
432
#endif
435
433
 
436
 
/**
437
 
 * The ResetFormAction action resets forms on activation
438
 
 * @since 0.14 (KDE 4.8)
439
 
 */
440
 
class OKULAR_EXPORT ResetFormAction : public Action
441
 
{
442
 
    public:
443
 
        enum Behaviour
444
 
        {
445
 
            ResetAllForms,                  ///< Reset all the forms in the document
446
 
            ResetFormsInFieldList,          ///< Reset the forms whose fully qualified name is in the list
447
 
            ResetAllFormsExceptFieldList    ///< Reset all the forms in the document exect those whose fully qualified name is in the list
448
 
        };
449
 
 
450
 
        /**
451
 
         * Creates a new reset form action.
452
 
         */
453
 
        ResetFormAction( const QStringList &fieldList, Behaviour behaviour );
454
 
 
455
 
        /**
456
 
         * Destroys the document action.
457
 
         */
458
 
        virtual ~ResetFormAction();
459
 
        
460
 
        /**
461
 
         * Returns the action type.
462
 
         */
463
 
        ActionType actionType() const;
464
 
 
465
 
        /**
466
 
         * Returns the action tip.
467
 
         */
468
 
        QString actionTip() const;
469
 
 
470
 
        /**
471
 
         * Returns the reset behaviour.
472
 
         */
473
 
        Behaviour behaviour() const;
474
 
        
475
 
        /**
476
 
         * Returns the list of field fully qualified names.
477
 
         */
478
 
        QStringList fieldList() const;
479
 
 
480
 
    private:
481
 
        Q_DECLARE_PRIVATE( ResetFormAction )
482
 
        Q_DISABLE_COPY( ResetFormAction )
483
 
};
484
 
 
485
434
}
486
435
 
487
436
#endif