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

« back to all changes in this revision

Viewing changes to stage/part/animations/KPrAnimateMotion.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:
22
22
 
23
23
#include "KPrAnimationBase.h"
24
24
 
25
 
class KPrAnimateMotion : public KPrAnimationBase
 
25
#include <QPainterPath>
 
26
#include "stage_export.h"
 
27
 
 
28
class KoPathShape;
 
29
 
 
30
class STAGE_EXPORT KPrAnimateMotion : public KPrAnimationBase
26
31
{
27
32
public:
28
33
    KPrAnimateMotion(KPrShapeAnimation *shapeAnimation);
31
36
    virtual bool loadOdf( const KoXmlElement &element, KoShapeLoadingContext &context );
32
37
    virtual bool saveOdf(KoPASavingContext & paContext) const;
33
38
    virtual void init(KPrAnimationCache *animationCache, int step);
 
39
    QPainterPath pathOutline();
 
40
    KoPathShape *path();
 
41
    KoPathShape *getPath(qreal zoom, QSizeF pageSize, bool absolutePosition = true) const;
 
42
 
 
43
    QSizeF currentPageSize();
 
44
    qreal currentZoom();
34
45
 
35
46
protected:
36
47
    virtual void next(int currentTime);
 
48
 
 
49
private:
 
50
    KoPathShape *m_motionPath;
 
51
    mutable qreal m_currentZoom;
 
52
    mutable QSizeF m_currentPageSize;
 
53
    mutable QPointF m_currentPosition;
37
54
};
38
55
 
39
56
#endif // KPRANIMATEMOTION_H