From 6d466c00c584a16923ba85423a88548299f846dd Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Tue, 12 Jan 2010 09:23:17 +0000 Subject: [PATCH] easing curve enum svn path=/trunk/KDE/kdebase/runtime/; revision=1073427 --- .../simplebindings/appletinterface.h | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/scriptengines/javascript/simplebindings/appletinterface.h b/scriptengines/javascript/simplebindings/appletinterface.h index 6c1cd1f11..1f6bd5d1a 100644 --- a/scriptengines/javascript/simplebindings/appletinterface.h +++ b/scriptengines/javascript/simplebindings/appletinterface.h @@ -22,6 +22,7 @@ #define APPLETINTERFACE_H #include +#include #include #include #include @@ -56,6 +57,7 @@ class AppletInterface : public QObject Q_ENUMS(QtSizePolicy) Q_ENUMS(QtAlignment) Q_ENUMS(AnimationDirection) + Q_ENUMS(EasingCurveType) Q_PROPERTY(AspectRatioMode aspectRatioMode READ aspectRatioMode WRITE setAspectRatioMode) Q_PROPERTY(FormFactor formFactor READ formFactor) Q_PROPERTY(Location location READ location) @@ -118,6 +120,65 @@ enum AspectRatioMode { FixedSize = 4 /** The applet cannot be resized */ }; +enum EasingCurveType { + LinearEasingCurve = QEasingCurve::Linear, + + InQuadEasingCurve = QEasingCurve::InQuad, + OutQuadEasingCurve = QEasingCurve::OutQuad, + InOutQuadEasingCurve = QEasingCurve::InOutQuad, + OutInQuadEasingCurve = QEasingCurve::OutInQuad, + + InCubicEasingCurve = QEasingCurve::InCubic, + OutCubicEasingCurve = QEasingCurve::OutCubic, + InOutCubicEasingCurve = QEasingCurve::InOutCubic, + OutInCubicEasingCurve = QEasingCurve::OutInCubic, + + InQuartEasingCurve = QEasingCurve::InQuart, + OutQuartEasingCurve = QEasingCurve::OutQuart, + InOutQuartEasingCurve = QEasingCurve::InOutQuart, + OutInQuartEasingCurve = QEasingCurve::OutInQuart, + + InQuintEasingCurve = QEasingCurve::InQuint, + OutQuintEasingCurve = QEasingCurve::OutQuint, + InOutQuintEasingCurve = QEasingCurve::InOutQuint, + OutInQuintEasingCurve = QEasingCurve::OutInQuint, + + InSizeEasingCurve = QEasingCurve::InSine, + OutSineEasingCurve = QEasingCurve::OutSine, + InOutSineEasingCurve = QEasingCurve::InOutSine, + OutInSineEasingCurve = QEasingCurve::OutInSine, + + InExpoEasingCurve = QEasingCurve::InExpo, + OutExpoEasingCurve = QEasingCurve::OutExpo, + InOutExpoEasingCurve = QEasingCurve::InOutExpo, + OutInExpoEasingCurve = QEasingCurve::OutInExpo, + + InCircEasingCurve = QEasingCurve::InCirc, + OutCircEasingCurve = QEasingCurve::OutCirc, + InOutCircEasingCurve = QEasingCurve::InOutCirc, + OutInCircEasingCurve = QEasingCurve::OutInCirc, + + InElasticEasingCurve = QEasingCurve::InElastic, + OutElasticEasingCurve = QEasingCurve::OutElastic, + InOutElasticEasingCurve = QEasingCurve::InOutElastic, + OutInElasticEasingCurve = QEasingCurve::OutInElastic, + + InBackEasingCurve = QEasingCurve::InBack, + OutBackEasingCurve = QEasingCurve::OutBack, + InOutBackEasingCurve = QEasingCurve::InOutBack, + OutInBackEasingCurve = QEasingCurve::OutInBack, + + InBouncEasingCurve = QEasingCurve::InBounce, + OutBounceEasingCurve = QEasingCurve::OutBounce, + InOutBounceEasingCurve = QEasingCurve::InOutBounce, + OutInBounceEasingCurve = QEasingCurve::OutInBounce, + + InCurveEasingCurve = QEasingCurve::InCurve, + OutCurveEasingCurve = QEasingCurve::OutCurve, + SineCurveEasingCurve = QEasingCurve::SineCurve, + CosineCurveEasingCurve = QEasingCurve::CosineCurve, +}; + //From Qt namespace enum QtOrientation { QtHorizontal= Qt::Horizontal,