25#include "pencilerror.h"
38 int pos()
const {
return mFrame; }
39 void setPos(
int position) { mFrame = position; }
41 int length()
const {
return mLength; }
42 void setLength(
int len) { mLength = len; }
44 void modification() { mIsModified =
true; }
45 void setModified(
bool b) { mIsModified = b; }
46 bool isModified()
const {
return mIsModified; }
48 QString fileName()
const {
return mAttachedFileName; }
49 void setFileName(
QString strFileName) { mAttachedFileName = strFileName; }
54 virtual KeyFrame* clone()
const {
return nullptr; }
55 virtual void loadFile() {}
56 virtual void unloadFile() {}
57 virtual bool isLoaded()
const {
return true; }
59 virtual quint64 memoryUsage() {
return 0; }
64 bool mIsModified =
true;
67 std::vector<KeyFrameEventListener*> mEventListeners;
73 virtual void onKeyFrameDestroy(
KeyFrame*) = 0;