25 #ifndef DIGIKAM_IMAGE_EDITOR_CORE_H
26 #define DIGIKAM_IMAGE_EDITOR_CORE_H
48 class ICCSettingsContainer;
49 class ExposureSettingsContainer;
51 class LoadingDescription;
52 class DImgBuiltinFilter;
54 class UndoMetadataContainer;
55 class VersionFileOperation;
64 static void setDefaultInstance(
EditorCore*
const instance);
71 void load(
const QString& filename,
IOFileSettings*
const iofileSettings);
73 void setSoftProofingEnabled(
bool enabled);
74 bool softProofingEnabled()
const;
82 void setExifOrient(
bool exifOrient);
83 void setDisplayingWidget(QWidget*
const widget);
88 void rollbackToOrigin();
90 void saveAs(
const QString& file,
IOFileSettings*
const iofileSettings,
91 bool setExifOrientationTag,
const QString& givenMimeType,
92 const QString& intendedFilePath);
94 void saveAs(
const QString& file,
IOFileSettings*
const iofileSettings,
95 bool setExifOrientationTag,
const QString& givenMimeType,
98 void setHistoryIsBranch(
bool isBranching);
99 void setLastSaved(
const QString& filePath);
103 void readMetadataFromFile(
const QString& file);
104 void clearUndoManager();
105 void setUndoManagerOrigin();
108 QString ensureHasCurrentUuid()
const;
109 void provideCurrentUuid(
const QString& uuid);
111 void zoom(
double val);
116 DImg getImgSelection()
const;
117 DImg* getImg()
const;
118 bool isValid()
const;
119 bool isReadOnly()
const;
120 bool hasAlpha()
const;
121 bool sixteenBit()
const;
122 bool exifRotated()
const;
125 int origWidth()
const;
126 int origHeight()
const;
127 int bytesDepth()
const;
137 void convertDepth(
int depth);
138 void crop(
const QRect& rect);
140 void setSelectedArea(
const QRect& rect);
141 QRect getSelectedArea()
const;
143 void putIccProfile(
const IccProfile& profile);
144 void putImgSelection(
const QString& caller,
const FilterAction& action,
const DImg& img);
145 void putImg(
const QString& caller,
const FilterAction& action,
const DImg& img);
153 void setFileOriginData(
const QVariant& data);
159 QPixmap convertToPixmap(
const DImg& img)
const;
161 QString getImageFileName()
const;
162 QString getImageFilePath()
const;
163 QString getImageFormat()
const;
164 QStringList getUndoHistory()
const;
165 QStringList getRedoHistory()
const;
167 int availableUndoSteps()
const;
168 int availableRedoSteps()
const;
175 void setResolvedInitialHistory(
const DImageHistory& history);
180 void slotImageSaved(
const QString& filePath,
bool success);
181 void slotLoadingProgress(
const LoadingDescription& loadingDescription,
float progress);
182 void slotSavingProgress(
const QString& filePath,
float progress);
Definition: dimagehistory.h:49
Definition: editorcore_p.h:60
Definition: editorcore.h:58
void signalImageSaved(const QString &filePath, bool success)
void signalImageLoaded(const QString &filePath, bool success)
void signalSavingStarted(const QString &filename)
void signalFileOriginChanged(const QString &filePath)
void signalUndoStateChanged()
void signalLoadingProgress(const QString &filePath, float progress)
void signalSavingProgress(const QString &filePath, float progress)
void signalLoadingStarted(const QString &filename)
Definition: exposurecontainer.h:39
Definition: filteraction.h:43
Definition: iccsettingscontainer.h:44
Definition: iofilesettings.h:36
Definition: iccprofile.h:43
Definition: loadingdescription.h:45
Definition: undostate.h:31
Definition: versionfileoperation.h:72
Definition: datefolderview.cpp:43