18#ifndef ALIGNCLIPSMODEL_H
19#define ALIGNCLIPSMODEL_H
21#include <QAbstractItemModel>
25class AlignClipsModel :
public QAbstractItemModel
38 static const int INVALID_OFFSET = std::numeric_limits<int>::max();
40 explicit AlignClipsModel(QObject *parent = 0);
41 virtual ~AlignClipsModel();
43 void addClip(
const QString &name,
int offset,
int speed,
const QString &error);
44 void updateProgress(
int row,
int percent);
45 int getProgress(
int row)
const;
46 void updateOffsetAndSpeed(
int row,
int offset,
double speed,
const QString &error);
47 int getOffset(
int row);
48 double getSpeed(
int row);
52 int rowCount(
const QModelIndex &parent)
const;
53 int columnCount(
const QModelIndex &parent)
const;
54 QVariant data(
const QModelIndex &index,
int role)
const;
55 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const;
56 QModelIndex index(
int row,
int column = 0,
const QModelIndex &parent = QModelIndex())
const;
57 QModelIndex parent(
const QModelIndex &index)
const;
67 QList<ClipAlignment> m_clips;