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 imageSavedAndCopied(const QUrl &savedAt); | ||||
davidre: imageSavedAndCopied? | |||||
77 | void forceNotify(const QUrl &savedAt); | 78 | void forceNotify(const QUrl &savedAt); | ||
78 | 79 | | |||
79 | public Q_SLOTS: | 80 | public Q_SLOTS: | ||
80 | 81 | | |||
81 | QUrl getAutosaveFilename(); | 82 | QUrl getAutosaveFilename(); | ||
82 | QUrl tempSave(); | 83 | QUrl tempSave(); | ||
83 | 84 | | |||
84 | void setWindowTitle(const QString &windowTitle); | 85 | void setWindowTitle(const QString &windowTitle); | ||
85 | void doSave(const QUrl &url = QUrl(), bool notify = false); | 86 | void doSave(const QUrl &url = QUrl(), bool notify = false); | ||
86 | bool doSaveAs(QWidget *parentWindow = nullptr, bool notify = false); | 87 | bool doSaveAs(QWidget *parentWindow = nullptr, bool notify = false); | ||
88 | void doSaveAndCopy(const QUrl &url = QUrl()); | ||||
87 | void doCopyToClipboard(bool notify); | 89 | void doCopyToClipboard(bool notify); | ||
88 | void doPrint(QPrinter *printer); | 90 | void doPrint(QPrinter *printer); | ||
89 | 91 | | |||
90 | private: | 92 | private: | ||
91 | 93 | | |||
92 | QString truncatedFilename(const QString &filename); | 94 | QString truncatedFilename(const QString &filename); | ||
93 | QString makeAutosaveFilename(); | 95 | QString makeAutosaveFilename(); | ||
94 | using FileNameAlreadyUsedCheck = bool (ExportManager::*)(const QUrl&) const; | 96 | using FileNameAlreadyUsedCheck = bool (ExportManager::*)(const QUrl&) const; | ||
Show All 17 Lines |
imageSavedAndCopied?