~smartboyhw/ubuntu/raring/calligra/2.6.0-0ubuntu1

« back to all changes in this revision

Viewing changes to stage/part/animations/KPrAnimationBase.h

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2012-10-23 21:09:16 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20121023210916-m82w6zxnxhaxz7va
Tags: 1:2.5.90-0ubuntu1
* New upstream alpha release (LP: #1070436)
  - Add libkactivities-dev and libopenimageio-dev to build-depends
  - Add kubuntu_build_calligraactive.diff to build calligraactive by default
  - Add package for calligraauthor and move files that are shared between
    calligrawords and calligraauthor to calligrawords-common
* Document the patches
* Remove numbers from patches so they follow the same naming scheme as
  the rest of our patches.
* calligra-data breaks replaces krita-data (<< 1:2.5.3) (LP: #1071686)

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
class KPrAnimationBase : public QAbstractAnimation, KPrAnimationData
35
35
{
36
36
public:
 
37
    enum FillType {
 
38
        FillRemove,
 
39
        FillFreeze,
 
40
        FillHold,
 
41
        FillTransition,
 
42
        FillAuto,
 
43
        FillDefault
 
44
    };
37
45
    KPrAnimationBase(KPrShapeAnimation *shapeAnimation);
38
46
    virtual ~KPrAnimationBase();
39
47
    virtual bool loadOdf(const KoXmlElement &element, KoShapeLoadingContext &context);
40
48
    virtual bool saveOdf(KoPASavingContext &paContext) const = 0;
41
49
 
 
50
    /// Total duration including time delay
42
51
    virtual int duration() const;
 
52
    virtual int begin() const;
 
53
    virtual void setBegin(int value);
 
54
 
 
55
    /// Set duration (without time delay)
 
56
    virtual void setDuration(int value);
43
57
    virtual void init(KPrAnimationCache *animationCache, int step) = 0;
44
58
    int animationDuration() const;
45
59
    virtual bool saveAttribute(KoPASavingContext &paContext) const;
53
67
    KPrAnimationCache * m_animationCache;
54
68
    int m_begin; // in milliseconds
55
69
    int m_duration; // in milliseconds
 
70
    FillType m_fill;
56
71
};
57
72
 
58
73
#endif /* KPRANIMATIONBASE_H */