forked from qt-creator/qt-creator
Move IEditor::createNew to IDocument::setContents
The method is for setting the contents, so it belongs to the document, and should be named correspondingly. Change-Id: I40363dc08f11268f530885b512e4a88e8b10d096 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -75,19 +75,20 @@ public:
|
||||
ITextMarkable *documentMarker() const;
|
||||
|
||||
// IDocument implementation.
|
||||
virtual bool save(QString *errorString, const QString &fileName, bool autoSave);
|
||||
virtual bool shouldAutoSave() const;
|
||||
virtual bool isFileReadOnly() const;
|
||||
virtual bool isModified() const;
|
||||
virtual bool isSaveAsAllowed() const;
|
||||
virtual void checkPermissions();
|
||||
bool save(QString *errorString, const QString &fileName, bool autoSave);
|
||||
bool setContents(const QByteArray &contents);
|
||||
bool shouldAutoSave() const;
|
||||
bool isFileReadOnly() const;
|
||||
bool isModified() const;
|
||||
bool isSaveAsAllowed() const;
|
||||
void checkPermissions();
|
||||
bool reload(QString *errorString, ReloadFlag flag, ChangeType type);
|
||||
virtual QString mimeType() const;
|
||||
QString mimeType() const;
|
||||
void setMimeType(const QString &mt);
|
||||
void setFilePath(const QString &newName);
|
||||
|
||||
virtual QString defaultPath() const;
|
||||
virtual QString suggestedFileName() const;
|
||||
QString defaultPath() const;
|
||||
QString suggestedFileName() const;
|
||||
|
||||
void setDefaultPath(const QString &defaultPath);
|
||||
void setSuggestedFileName(const QString &suggestedFileName);
|
||||
|
||||
Reference in New Issue
Block a user