22 #include "basemanager.h"
40 void workingLayerChanged(
Layer* layer)
override;
59 void translate(
float dx,
float dy);
64 void rotate(
float degree);
68 void scale(qreal scaleValue);
69 void scaleWithOffset(qreal scaleValue,
QPointF offset);
80 void flipHorizontal(
bool b);
81 void flipVertical(
bool b);
82 void setOverlayCenter(
bool b);
83 void setOverlayThirds(
bool b);
84 void setOverlayGoldenRatio(
bool b);
85 void setOverlaySafeAreas(
bool b);
87 bool isFlipHorizontal()
const {
return mIsFlipHorizontal; }
88 bool isFlipVertical()
const {
return mIsFlipVertical; }
89 bool getOverlayCenter()
const {
return mOverlayCenter; }
90 bool getOverlayThirds()
const {
return mOverlayThirds; }
91 bool getOverlayGoldenRatio()
const {
return mOverlayGoldenRatio; }
92 bool getOverlaySafeAreas()
const {
return mOverlaySafeAreas; }
95 void setCanvasSize(
QSize size);
96 void setCameraLayer(
Layer* layer);
98 QTransform getImportView() {
return mImportView; }
99 void setImportView(
const QTransform& newView) { mImportView = newView; }
101 void setImportFollowsCamera(
bool b) { mImportFollowsCamera = b; }
102 bool getImportFollowsCamera() {
return mImportFollowsCamera; }
104 void updateViewTransforms();
112 void onCurrentFrameChanged();
121 Camera* mDefaultEditorCamera =
nullptr;
122 Camera* mCurrentCamera =
nullptr;
124 QSize mCanvasSize = { 1, 1 };
126 bool mIsFlipHorizontal =
false;
127 bool mIsFlipVertical =
false;
128 bool mOverlayCenter =
false;
129 bool mOverlayThirds =
false;
130 bool mOverlayGoldenRatio =
false;
131 bool mOverlaySafeAreas =
false;
133 bool mImportFollowsCamera =
false;
138 #endif // VIEWMANAGER_H