23 #include "pencilerror.h"
24 #include "pencildef.h"
82 Object* object()
const {
return mObject.get(); }
87 void setScribbleArea(
ScribbleArea* pScirbbleArea) { mScribbleArea = pScirbbleArea; }
88 ScribbleArea* getScribbleArea() {
return mScribbleArea; }
94 int currentLayerIndex()
const {
return mCurrentLayerIndex; }
95 void setCurrentLayerIndex(
int i);
97 void scrubTo(
int frameNumber);
104 LayerVisibility layerVisibility();
106 qreal viewScaleInversed();
116 void updateTimeLine();
117 void updateLayerCount();
122 void changeThinLinesButton(
bool);
123 void currentFrameChanged(
int n);
124 void fpsChanged(
int fps);
128 void needDisplayInfoNoTitle(
const QString& body);
131 void clearCurrentFrame();
135 bool importImage(
QString filePath);
136 bool importGIF(
QString filePath,
int numOfImages = 0);
137 void updateFrame(
int frameNumber);
140 void updateFrameAndVector(
int frameNumber);
141 void updateCurrentFrame();
143 void scrubNextKeyFrame();
144 void scrubPreviousKeyFrame();
146 void scrubBackward();
151 void notifyAnimationLengthChanged();
152 void switchVisibilityOfLayer(
int layerNumber);
153 void swapLayers(
int i,
int j);
157 void backup(
int layerNumber,
int frameNumber,
QString undoText);
174 void clipboardChanged();
175 void increaseLayerVisibilityIndex();
176 void decreaseLayerVisibilityIndex();
177 void flipSelection(
bool flipVertical);
179 void toggleOnionSkinType();
181 void clearTemporary();
184 void settingUpdated(SETTING);
186 void dontAskAutoSave(
bool b) { mAutosaveNeverAskAgain = b; }
187 bool autoSaveNeverAskAgain()
const {
return mAutosaveNeverAskAgain; }
188 void resetAutoSaveCounter();
190 void createNewBitmapLayer(
const QString& name);
191 void createNewVectorLayer(
const QString& name);
192 void createNewSoundLayer(
const QString& name);
193 void createNewCameraLayer(
const QString& name);
201 bool importBitmapImage(
QString,
int space = 0);
202 bool importVectorImage(
QString);
205 std::shared_ptr<Object> mObject =
nullptr;
208 int mCurrentLayerIndex = 0;
221 std::vector< BaseManager* > mAllManagers;
223 bool mIsAutosave =
true;
224 int mAutosaveNumber = 12;
225 int mAutosaveCounter = 0;
226 bool mAutosaveNeverAskAgain =
false;
228 void makeConnections();
229 KeyFrame* addKeyFrame(
int layerNumber,
int frameNumber);
234 void clearUndoStack();
235 void updateAutoSaveCounter();
236 int mLastModifiedFrame = -1;
237 int mLastModifiedLayer = -1;
240 bool clipboardBitmapOk =
true;
241 bool clipboardVectorOk =
true;
242 bool clipboardSoundClipOk =
true;
void setLayerVisibility(LayerVisibility visibility)
The visiblity value should match any of the VISIBILITY enum values.
ActiveFramePool implemented a LRU cache to keep tracking the most recent accessed key frames A key fr...
QObject * parent() const const
void sanitizeBackupElementsAfterLayerDeletion(int layerIndex)
Restores integrity of the backup elements after a layer has been deleted.