]> git.sesse.net Git - nageru/blobdiff - clip_list.h
Small refactoring in JPEGFrameView.
[nageru] / clip_list.h
index 64d06cd29f19633da0b82c1f9355442c49bcb44f..126d1d5bc340e2fb1b04b85ee26361ab5f328acb 100644 (file)
@@ -104,6 +104,13 @@ public:
        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(); }