50 static QString
path();
55 static QList<const AnimScript*>
list();
59 inline const QUuid&
guid()
const {
return _info.guid; }
60 inline const QString&
name()
const {
return _info.name; }
63 inline const QString&
year()
const {
return _info.year; }
74 inline bool hasParam(
const QString&
name)
const { QListIterator<Param> i(
_info.params);
while(i.hasNext()){
if(i.next().name ==
name)
return true; }
return false; }
81 void init(
const KeyMap& map,
const QStringList& keys,
const QMap<QString, QVariant>& paramValues);
83 void parameters(
const QMap<QString, QVariant>& paramValues);
85 void retrigger(quint64 timestamp,
bool allowPreempt =
false);
87 void stop(quint64 timestamp);
89 void keypress(
const QString&
key,
bool pressed, quint64 timestamp);
91 void frame(quint64 timestamp);
122 bool absoluteTime :1, repeat :1, preempt :1, liveParams :1;
148 void begin(quint64 timestamp);
149 void advance(quint64 timestamp);
158 #endif // ANIMSCRIPT_H
Param param(const QString &name) const
void advance(quint64 timestamp)
static QList< const AnimScript * > list()
void retrigger(quint64 timestamp, bool allowPreempt=false)
void frame(quint64 timestamp)
const PresetValue & preset(int index) const
const QString & author() const
const ColorMap & colors() const
AnimScript(QObject *parent, const QString &path)
const QString & year() const
const QString & description() const
bool hasParam(const QString &name) const
static QHash< QUuid, AnimScript * > scripts
QString copyright() const
struct AnimScript::@0 _info
static const int KP_POSITION
QList< PresetValue > _presetValues
const QString & license() const
const QStringList & presets() const
QMap< QString, QVariant > PresetValue
void init(const KeyMap &map, const QStringList &keys, const QMap< QString, QVariant > ¶mValues)
void keypress(const QString &key, bool pressed, quint64 timestamp)
const QString & name() const
static AnimScript * copy(QObject *parent, const QUuid &id)
QListIterator< Param > paramIterator() const
const QUuid & guid() const
const QString & version() const
void parameters(const QMap< QString, QVariant > ¶mValues)
void begin(quint64 timestamp)
void stop(quint64 timestamp)