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