added animation

but not full in ADeditor
This commit is contained in:
2010-09-05 16:25:23 +04:00
parent c898f978da
commit 8fa6b8e2a6
24 changed files with 924 additions and 725 deletions

24
ADeditor/animationmodel.h Normal file
View File

@@ -0,0 +1,24 @@
#ifndef ANIMATIONMODEL_H
#define ANIMATIONMODEL_H
#include <QAbstractListModel>
#include "../loader.h"
class AnimationModel : public QAbstractListModel
{
Q_OBJECT
public:
explicit AnimationModel(QList <tbAnimation> anims, QObject *parent = 0);
int rowCount(const QModelIndex &parent = QModelIndex()) const;
QVariant data(const QModelIndex &index, int role) const;
void refresh(QList <tbAnimation> anims);
signals:
public slots:
private:
QList <tbAnimation> anims;
};
#endif // ANIMATIONMODEL_H