Changeset View
Changeset View
Standalone View
Standalone View
src/ExportManager.h
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Line(s) | 38 | { | |||
---|---|---|---|---|---|
69 | 69 | | |||
70 | static const QMap<QString, KLocalizedString> filenamePlaceholders; | 70 | static const QMap<QString, KLocalizedString> filenamePlaceholders; | ||
71 | 71 | | |||
72 | Q_SIGNALS: | 72 | Q_SIGNALS: | ||
73 | 73 | | |||
74 | void errorMessage(const QString &str); | 74 | void errorMessage(const QString &str); | ||
75 | void pixmapChanged(const QPixmap &pixmap); | 75 | void pixmapChanged(const QPixmap &pixmap); | ||
76 | void imageSaved(const QUrl &savedAt); | 76 | void imageSaved(const QUrl &savedAt); | ||
77 | void imageCopied(); | ||||
77 | void imageSavedAndCopied(const QUrl &savedAt); | 78 | void imageSavedAndCopied(const QUrl &savedAt); | ||
78 | void forceNotify(const QUrl &savedAt); | 79 | void forceNotify(const QUrl &savedAt); | ||
79 | 80 | | |||
80 | public Q_SLOTS: | 81 | public Q_SLOTS: | ||
81 | 82 | | |||
82 | QUrl getAutosaveFilename(); | 83 | QUrl getAutosaveFilename(); | ||
83 | QUrl tempSave(); | 84 | QUrl tempSave(); | ||
84 | 85 | | |||
85 | void setWindowTitle(const QString &windowTitle); | 86 | void setWindowTitle(const QString &windowTitle); | ||
86 | void doSave(const QUrl &url = QUrl(), bool notify = false); | 87 | void doSave(const QUrl &url = QUrl(), bool notify = false); | ||
87 | bool doSaveAs(QWidget *parentWindow = nullptr, bool notify = false); | 88 | bool doSaveAs(QWidget *parentWindow = nullptr, bool notify = false); | ||
88 | void doSaveAndCopy(const QUrl &url = QUrl()); | 89 | void doSaveAndCopy(const QUrl &url = QUrl()); | ||
89 | void doCopyToClipboard(bool notify); | 90 | void doCopyToClipboard(bool notify = false); | ||
90 | void doPrint(QPrinter *printer); | 91 | void doPrint(QPrinter *printer); | ||
91 | 92 | | |||
92 | private: | 93 | private: | ||
93 | 94 | | |||
94 | QString truncatedFilename(const QString &filename); | 95 | QString truncatedFilename(const QString &filename); | ||
95 | QString makeAutosaveFilename(); | 96 | QString makeAutosaveFilename(); | ||
96 | using FileNameAlreadyUsedCheck = bool (ExportManager::*)(const QUrl&) const; | 97 | using FileNameAlreadyUsedCheck = bool (ExportManager::*)(const QUrl&) const; | ||
97 | QString autoIncrementFilename(const QString &baseName, const QString &extension, | 98 | QString autoIncrementFilename(const QString &baseName, const QString &extension, | ||
Show All 16 Lines |