aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/resourceeditor/resourceeditorw.h
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@nokia.com>2012-02-14 16:43:51 +0100
committerEike Ziller <eike.ziller@nokia.com>2012-02-20 13:32:49 +0100
commitd66acb51d0c8b511df9f679806cbd3d84cce41ef (patch)
tree58289c9e7f7bc6107b4d620fad791a206d097555 /src/plugins/resourceeditor/resourceeditorw.h
parent266da3568d2db185f67227d38e29cd20d28fb2bd (diff)
Rename IFile->IDocument and FileManager->DocumentManager
And adapt the other API respectively. Change-Id: I1e04e555409be09242db6890f9e013396f83aeed Reviewed-by: Bill King <bill.king@nokia.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Diffstat (limited to 'src/plugins/resourceeditor/resourceeditorw.h')
-rw-r--r--src/plugins/resourceeditor/resourceeditorw.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/resourceeditor/resourceeditorw.h b/src/plugins/resourceeditor/resourceeditorw.h
index 55ce8a3e6c..d74a97711d 100644
--- a/src/plugins/resourceeditor/resourceeditorw.h
+++ b/src/plugins/resourceeditor/resourceeditorw.h
@@ -33,7 +33,7 @@
#ifndef RESOURCEDITORW_H
#define RESOURCEDITORW_H
-#include <coreplugin/ifile.h>
+#include <coreplugin/idocument.h>
#include <coreplugin/editormanager/ieditor.h>
#include <QPointer>
@@ -52,15 +52,15 @@ namespace Internal {
class ResourceEditorPlugin;
class ResourceEditorW;
-class ResourceEditorFile
- : public virtual Core::IFile
+class ResourceEditorDocument
+ : public virtual Core::IDocument
{
Q_OBJECT
public:
- ResourceEditorFile(ResourceEditorW *parent = 0);
+ ResourceEditorDocument(ResourceEditorW *parent = 0);
- //IFile
+ //IDocument
bool save(QString *errorString, const QString &fileName, bool autoSave);
QString fileName() const;
bool shouldAutoSave() const;
@@ -92,7 +92,7 @@ public:
bool open(QString *errorString, const QString &fileName, const QString &realFileName);
bool duplicateSupported() const { return false; }
Core::IEditor *duplicate(QWidget *) { return 0; }
- Core::IFile *file() { return m_resourceFile; }
+ Core::IDocument *document() { return m_resourceDocument; }
Core::Id id() const;
QString displayName() const { return m_displayName; }
void setDisplayName(const QString &title) { m_displayName = title; emit changed(); }
@@ -115,7 +115,7 @@ private:
QString m_displayName;
QString m_suggestedName;
QPointer<SharedTools::QrcEditor> m_resourceEditor;
- ResourceEditorFile *m_resourceFile;
+ ResourceEditorDocument *m_resourceDocument;
ResourceEditorPlugin *m_plugin;
bool m_shouldAutoSave;
bool m_diskIo;
@@ -126,7 +126,7 @@ public:
void onUndo();
void onRedo();
- friend class ResourceEditorFile;
+ friend class ResourceEditorDocument;
};
} // namespace Internal