Mercurial > hg > dmlib
view editor/edtlobj.h @ 1707:a0986cfd6f9d
More consistently use DMGrowBuf in the lib64gfx APIs, and implement
"backwards" RLE decoding and encoding (optionally regards input/output).
Not tested very much yet, there may be bugs.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 05 Jun 2018 21:58:10 +0300 |
parents | e2ac08228a0f |
children |
line wrap: on
line source
// // Demo Editor -- Timeline state object // Wrapper class for DMTimeline data // (C) Copyright 2012 Matti 'ccr' Hämäläinen <ccr@tnsp.org> // #ifndef EDTIMELINEOBJECT_H #define EDTIMELINEOBJECT_H #include "dmengine.h" #include <QString> class EDTimelineObject { private: QString cstate; int ntouches; public: QString filename; DMTimeline *tl; EDTimelineObject(); EDTimelineObject(EDTimelineObject *); ~EDTimelineObject(); int load(QString filename); int save(QString filename); void scrub(); void touch(); bool touched(); void setState(const QString &mstate); QString state() const; }; #endif