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:
@@ -51,14 +51,15 @@ public:
|
||||
~FormWindowFile() { }
|
||||
|
||||
// IDocument
|
||||
virtual bool save(QString *errorString, const QString &fileName, bool autoSave);
|
||||
virtual bool shouldAutoSave() const;
|
||||
virtual bool isModified() const;
|
||||
virtual bool isSaveAsAllowed() const;
|
||||
bool save(QString *errorString, const QString &fileName, bool autoSave);
|
||||
bool setContents(const QByteArray &contents);
|
||||
bool shouldAutoSave() const;
|
||||
bool isModified() const;
|
||||
bool isSaveAsAllowed() const;
|
||||
bool reload(QString *errorString, ReloadFlag flag, ChangeType type);
|
||||
virtual QString defaultPath() const;
|
||||
virtual QString suggestedFileName() const;
|
||||
virtual QString mimeType() const;
|
||||
QString defaultPath() const;
|
||||
QString suggestedFileName() const;
|
||||
QString mimeType() const;
|
||||
|
||||
// Internal
|
||||
void setSuggestedFileName(const QString &fileName);
|
||||
@@ -66,6 +67,8 @@ public:
|
||||
bool writeFile(const QString &fileName, QString *errorString) const;
|
||||
|
||||
QDesignerFormWindowInterface *formWindow() const;
|
||||
void syncXmlFromFormWindow();
|
||||
QString formWindowContents() const;
|
||||
|
||||
signals:
|
||||
// Internal
|
||||
|
||||
Reference in New Issue
Block a user