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