forked from qt-creator/qt-creator
Use nullptr and member initialization in document manager
Change-Id: Iddd446d10cf3fd0a59d46d6ed3ba335f0c93e118 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -80,38 +80,47 @@ public:
|
||||
static QString cleanAbsoluteFilePath(const QString &filePath, ResolveMode resolveMode);
|
||||
static QString filePathKey(const QString &filePath, ResolveMode resolveMode);
|
||||
|
||||
static bool saveDocument(IDocument *document, const QString &fileName = QString(), bool *isReadOnly = 0);
|
||||
static bool saveDocument(IDocument *document,
|
||||
const QString &fileName = QString(),
|
||||
bool *isReadOnly = nullptr);
|
||||
|
||||
static QStringList getOpenFileNames(const QString &filters,
|
||||
const QString &path = QString(),
|
||||
QString *selectedFilter = 0);
|
||||
static QString getSaveFileName(const QString &title, const QString &pathIn,
|
||||
const QString &filter = QString(), QString *selectedFilter = 0);
|
||||
QString *selectedFilter = nullptr);
|
||||
static QString getSaveFileName(const QString &title,
|
||||
const QString &pathIn,
|
||||
const QString &filter = QString(),
|
||||
QString *selectedFilter = nullptr);
|
||||
static QString getSaveFileNameWithExtension(const QString &title, const QString &pathIn,
|
||||
const QString &filter);
|
||||
static QString getSaveAsFileName(const IDocument *document);
|
||||
|
||||
static bool saveAllModifiedDocumentsSilently(bool *canceled = 0,
|
||||
QList<IDocument *> *failedToClose = 0);
|
||||
static bool saveModifiedDocumentsSilently(const QList<IDocument *> &documents, bool *canceled = 0,
|
||||
QList<IDocument *> *failedToClose = 0);
|
||||
static bool saveModifiedDocumentSilently(IDocument *document, bool *canceled = 0,
|
||||
QList<IDocument *> *failedToClose = 0);
|
||||
static bool saveAllModifiedDocumentsSilently(bool *canceled = nullptr,
|
||||
QList<IDocument *> *failedToClose = nullptr);
|
||||
static bool saveModifiedDocumentsSilently(const QList<IDocument *> &documents,
|
||||
bool *canceled = nullptr,
|
||||
QList<IDocument *> *failedToClose = nullptr);
|
||||
static bool saveModifiedDocumentSilently(IDocument *document,
|
||||
bool *canceled = nullptr,
|
||||
QList<IDocument *> *failedToClose = nullptr);
|
||||
|
||||
static bool saveAllModifiedDocuments(const QString &message = QString(), bool *canceled = 0,
|
||||
static bool saveAllModifiedDocuments(const QString &message = QString(),
|
||||
bool *canceled = nullptr,
|
||||
const QString &alwaysSaveMessage = QString(),
|
||||
bool *alwaysSave = 0,
|
||||
QList<IDocument *> *failedToClose = 0);
|
||||
bool *alwaysSave = nullptr,
|
||||
QList<IDocument *> *failedToClose = nullptr);
|
||||
static bool saveModifiedDocuments(const QList<IDocument *> &documents,
|
||||
const QString &message = QString(), bool *canceled = 0,
|
||||
const QString &message = QString(),
|
||||
bool *canceled = nullptr,
|
||||
const QString &alwaysSaveMessage = QString(),
|
||||
bool *alwaysSave = 0,
|
||||
QList<IDocument *> *failedToClose = 0);
|
||||
bool *alwaysSave = nullptr,
|
||||
QList<IDocument *> *failedToClose = nullptr);
|
||||
static bool saveModifiedDocument(IDocument *document,
|
||||
const QString &message = QString(), bool *canceled = 0,
|
||||
const QString &message = QString(),
|
||||
bool *canceled = nullptr,
|
||||
const QString &alwaysSaveMessage = QString(),
|
||||
bool *alwaysSave = 0,
|
||||
QList<IDocument *> *failedToClose = 0);
|
||||
bool *alwaysSave = nullptr,
|
||||
QList<IDocument *> *failedToClose = nullptr);
|
||||
|
||||
static QString fileDialogLastVisitedDirectory();
|
||||
static void setFileDialogLastVisitedDirectory(const QString &);
|
||||
|
||||
Reference in New Issue
Block a user