forked from qt-creator/qt-creator
Move "open" from IEditor to IDocument
For non-editor documents it currently is not used, but for editors it makes more sense to have that on the document instead of the editor. Most actual implementations of "open" were done in the documents already anyhow, because it is needed for reloading. Change-Id: I29d4df2078995cbe80172b51a9bebeecb3afad3c Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
@@ -150,7 +150,6 @@ public:
|
||||
|
||||
// IEditor
|
||||
Core::IDocument *document() override;
|
||||
bool open(QString *errorString, const QString &fileName, const QString &realFileName) override;
|
||||
|
||||
IEditor *duplicate() override;
|
||||
|
||||
@@ -211,8 +210,9 @@ public:
|
||||
TextDocument *textDocument() const;
|
||||
QSharedPointer<TextDocument> textDocumentPtr() const;
|
||||
|
||||
virtual void aboutToOpen(const QString &fileName, const QString &realFileName);
|
||||
virtual void openFinishedSuccessfully();
|
||||
// IEditor
|
||||
virtual bool open(QString *errorString, const QString &fileName, const QString &realFileName);
|
||||
QByteArray saveState() const;
|
||||
bool restoreState(const QByteArray &state);
|
||||
void gotoLine(int line, int column = 0, bool centerLine = true);
|
||||
|
||||
Reference in New Issue
Block a user