Changeset View
Changeset View
Standalone View
Standalone View
src/ExportManager.h
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Line(s) | 38 | { | |||
---|---|---|---|---|---|
82 | 82 | | |||
83 | public Q_SLOTS: | 83 | public Q_SLOTS: | ||
84 | 84 | | |||
85 | QUrl getAutosaveFilename(); | 85 | QUrl getAutosaveFilename(); | ||
86 | QUrl tempSave(const QString &mimetype = QStringLiteral("png")); | 86 | QUrl tempSave(const QString &mimetype = QStringLiteral("png")); | ||
87 | 87 | | |||
88 | void doSave(const QUrl &url = QUrl(), bool notify = false); | 88 | void doSave(const QUrl &url = QUrl(), bool notify = false); | ||
89 | bool doSaveAs(QWidget *parentWindow = nullptr, bool notify = false); | 89 | bool doSaveAs(QWidget *parentWindow = nullptr, bool notify = false); | ||
90 | void doCopyToClipboard(); | 90 | void doCopyToClipboard(bool notify); | ||
91 | void doPrint(QPrinter *printer); | 91 | void doPrint(QPrinter *printer); | ||
92 | 92 | | |||
93 | private: | 93 | private: | ||
94 | 94 | | |||
95 | QString truncatedFilename(const QString &filename); | 95 | QString truncatedFilename(const QString &filename); | ||
96 | QString makeAutosaveFilename(); | 96 | QString makeAutosaveFilename(); | ||
97 | using FileNameAlreadyUsedCheck = bool (ExportManager::*)(const QUrl&) const; | 97 | using FileNameAlreadyUsedCheck = bool (ExportManager::*)(const QUrl&) const; | ||
98 | QString autoIncrementFilename(const QString &baseName, const QString &extension, | 98 | QString autoIncrementFilename(const QString &baseName, const QString &extension, | ||
Show All 18 Lines |