26 #ifndef DIGIKAM_IMAGE_EDITOR_CANVAS_H
27 #define DIGIKAM_IMAGE_EDITOR_CANVAS_H
32 #include <QWheelEvent>
33 #include <QMouseEvent>
50 class ExposureSettingsContainer;
51 class ICCSettingsContainer;
61 explicit Canvas(QWidget*
const parent =
nullptr);
65 void preload(
const QString& filename);
70 void makeDefaultEditingCanvas();
72 QString ensureHasCurrentUuid()
const;
82 DImg currentImage()
const;
87 QString currentImageFileFormat()
const;
92 QString currentImageFilePath()
const;
97 int imageWidth()
const;
102 int imageHeight()
const;
107 QRect getSelectedArea()
const;
113 bool isReadOnly()
const;
133 void setSoftProofingEnabled(
bool enable);
138 void setExifOrient(
bool exifOrient);
143 bool exifRotated()
const;
176 void slotRotate180();
177 void slotRotate270();
178 void slotFlipHoriz();
183 void slotUndo(
int steps = 1);
184 void slotRedo(
int steps = 1);
188 void slotSelectAll();
189 void slotSelectNone();
191 void slotSelectionMoved();
195 void keyPressEvent(QKeyEvent*)
override;
196 void mousePressEvent(QMouseEvent*)
override;
199 void dragMoveEvent(QDragMoveEvent*)
override;
200 void dragEnterEvent(QDragEnterEvent*)
override;
201 void dropEvent(QDropEvent*)
override;
205 QRect calcSelectedArea()
const;
211 void slotImageLoaded(
const QString& filePath,
bool success);
212 void slotImageSaved(
const QString& filePath,
bool success);
213 void slotAddItemStarted(
const QPointF& pos);
214 void slotAddItemMoving(
const QRectF& rect);
215 void slotAddItemFinished(
const QRectF& rect);
216 void cancelAddItem();
void signalSelected(bool)
void signalSavingProgress(const QString &filePath, float progress)
void signalLoadingProgress(const QString &filePath, float progress)
void signalRedoSteps(int)
void signalLoadingFinished(const QString &filename, bool success)
void signalAddedDropedItems(QDropEvent *)
void signalZoomChanged(double)
void signalLoadingStarted(const QString &filename)
void signalSavingStarted(const QString &filename)
void signalSelectionChanged(const QRect &)
void signalShowPrevImage()
void signalRightButtonClicked()
void signalSavingFinished(const QString &filename, bool success)
void signalUndoSteps(int)
void signalPrepareToLoad()
void signalSelectionSetText(const QRect &)
void signalToggleOffFitToWindow()
void signalShowNextImage()
Definition: editorcore.h:58
Definition: exposurecontainer.h:39
Definition: graphicsdimgview.h:44
Definition: iccsettingscontainer.h:44
Definition: iofilesettings.h:36
Definition: datefolderview.cpp:43