Plasma
animationscriptengine.cpp
Go to the documentation of this file.
169 return context->throwError(i18n("%1 is not a known animation type", context->argument(0).isString()));
177 global.setProperty("registerAnimation", inst->newFunction(AnimationScriptEngine::registerAnimation));
179 global.setProperty("ParallelAnimationGroup", inst->newFunction(AnimationScriptEngine::parallelAnimationGroup));
int keyCount() const
QObject * extractParent(QScriptContext *context, QScriptEngine *engine)
Definition: animationscriptengine.cpp:99
QScriptEngine * globalEngine()
Definition: animationscriptengine.cpp:172
bool loadScript(const QString &path, const QString &prefix)
Definition: animationscriptengine.cpp:187
virtual const QMetaObject * metaObject() const
int argumentCount() const
QString toString() const
void clear()
void addToLoadFailures(const QString &anim)
Definition: animationscriptengine.cpp:65
QScriptValue animation(const QString &anim)
Definition: animationscriptengine.cpp:55
QScriptValue parallelAnimationGroup(QScriptContext *context, QScriptEngine *engine)
Definition: animationscriptengine.cpp:116
void clearAnimations()
Definition: animationscriptengine.cpp:75
int value(int index) const
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
bool animationFailedToLoad(const QString &anim)
Definition: animationscriptengine.cpp:70
QScriptValue property(const QString &name, const ResolveFlags &mode) const
QScriptValue thisObject() const
QMetaEnum enumerator(int index) const
bool isFunction() const
QScriptValue registerAnimation(QScriptContext *context, QScriptEngine *engine)
Definition: animationscriptengine.cpp:83
int enumeratorCount() const
bool isString() const
qint32 toInt32() const
QScriptValue newQObject(QObject *object, ValueOwnership ownership, const QObjectWrapOptions &options)
QScriptValue animationGroup(QScriptContext *context, QScriptEngine *engine)
Definition: animationscriptengine.cpp:105
static Plasma::Animation * create(Animator::Animation type, QObject *parent=0)
Factory to build new animation objects.
Definition: animator.cpp:61
QScriptEngine * engine() const
void registerEnums(QScriptValue &scriptValue, const QMetaObject &meta)
Definition: animationscriptengine.cpp:127
QScriptValue argument(int index) const
bool isAnimationRegistered(const QString &anim)
Definition: animationscriptengine.cpp:60
QScriptValue throwError(Error error, const QString &text)
QHash< QString, QScriptValue > s_animFuncs
Definition: animationscriptengine.cpp:51
QString readAll()
QScriptValue undefinedValue()
QScriptValue newFunction(FunctionSignature fun, int length)
QScriptValue globalObject() const
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
QScriptValue constructEasingCurveClass(QScriptEngine *engine)
Definition: easingcurve.cpp:97
QSet< QString > s_animFailures
Definition: animationscriptengine.cpp:52
const char * key(int index) const
QObject * toQObject() const
void setProperty(const QString &name, const QScriptValue &value, const PropertyFlags &flags)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.