+ int rowCount(const QModelIndex &parent) const override;
+ int columnCount(const QModelIndex &parent) const override;
+ QVariant data(const QModelIndex &parent, int role) const override;
+ QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
+ Qt::ItemFlags flags(const QModelIndex &index) const override;
+ bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) override;
+
+ void add_clip(const Clip &clip);
+
+ // <last> is inclusive in all of these.
+ void duplicate_clips(size_t first, size_t last);
+ void erase_clips(size_t first, size_t last);
+ // <delta> is -1 to move upwards, +1 to move downwards.
+ void move_clips(size_t first, size_t last, int delta);
+
+ size_t size() const { return clips.size(); }
+ bool empty() const { return clips.empty(); }
+
+ ClipProxy mutable_clip(size_t index) { return ClipProxy(clips[index], this, index); }