23 #include "backupelement.h"
24 #include "pencilerror.h"
27 class QDragEnterEvent;
58 explicit Editor( QObject* parent =
nullptr );
74 Object* object()
const {
return mObject.get(); }
79 void setScribbleArea(
ScribbleArea* pScirbbleArea ) { mScribbleArea = pScirbbleArea; }
80 ScribbleArea* getScribbleArea() {
return mScribbleArea; }
85 void scrubTo(
int frameNumber );
88 bool exportSeqCLI( QString filePath, QString format =
"PNG",
int width = -1,
int height = -1,
bool transparency =
false,
bool antialias =
true );
90 QString workingDir()
const;
92 void importMovie( QString filePath,
int fps );
100 void updateTimeLine();
101 void updateLayerCount();
107 void changeThinLinesButton(
bool );
108 void currentFrameChanged(
int n );
113 void clearCurrentFrame();
119 bool importImage( QString filePath );
120 void updateFrame(
int frameNumber );
121 void updateFrameAndVector(
int frameNumber );
122 void updateCurrentFrame();
124 void scrubNextKeyFrame();
125 void scrubPreviousKeyFrame();
127 void scrubBackward();
133 void moveFrameForward();
134 void moveFrameBackward();
136 void setCurrentLayer(
int layerNumber );
137 void switchVisibilityOfLayer(
int layerNumber );
138 void moveLayer(
int i,
int j );
140 void backup( QString undoText );
141 void backup(
int layerNumber,
int frameNumber, QString undoText );
147 void clipboardChanged();
150 void toggleMirrorV();
151 void toggleShowAllLayers();
152 void flipSelection(
bool flipVertical);
154 void toogleOnionSkinType();
156 void settingUpdated(SETTING);
160 void dragEnterEvent( QDragEnterEvent* event );
161 void dropEvent( QDropEvent* event );
164 bool importBitmapImage( QString );
165 bool importVectorImage( QString );
168 std::shared_ptr<Object> mObject =
nullptr;
182 std::vector< BaseManager* > mAllManagers;
184 bool m_isAltPressed =
false;
185 int numberOfModifications = 0;
187 bool mIsAutosave =
true;
188 int autosaveNumber = 12;
190 void makeConnections();
191 KeyFrame* addKeyFame(
int layerNumber,
int frameNumber );
194 void clearUndoStack();
195 int lastModifiedFrame;
196 int lastModifiedLayer;
199 bool clipboardBitmapOk, clipboardVectorOk;