forked from qt-creator/qt-creator
Core: Add methods to retrieve contents from IDocument
This is very helpful for dynamic extra compiler support (e.g. uic, flex, ...). Change-Id: I5a49b0b39a0f1fbc7834701d60a68ef441172969 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -95,6 +95,8 @@ public:
|
||||
virtual OpenResult open(QString *errorString, const QString &fileName, const QString &realFileName);
|
||||
|
||||
virtual bool save(QString *errorString, const QString &fileName = QString(), bool autoSave = false) = 0;
|
||||
|
||||
virtual QByteArray contents() const;
|
||||
virtual bool setContents(const QByteArray &contents);
|
||||
|
||||
const Utils::FileName &filePath() const;
|
||||
@@ -133,7 +135,12 @@ public:
|
||||
InfoBar *infoBar();
|
||||
|
||||
signals:
|
||||
// For meta data changes: file name, modified state, ...
|
||||
void changed();
|
||||
|
||||
// For changes in the contents of the document
|
||||
void contentsChanged();
|
||||
|
||||
void mimeTypeChanged();
|
||||
|
||||
void aboutToReload();
|
||||
|
||||
Reference in New Issue
Block a user