diff options
| author | hjk <hjk121@nokiamail.com> | 2014-08-20 15:05:32 +0200 |
|---|---|---|
| committer | hjk <hjk121@nokiamail.com> | 2014-08-20 15:15:26 +0200 |
| commit | c35e9286506508002cf0c2ed7fa90d9ba57591d1 (patch) | |
| tree | 94429b297bb82e6439c1d096adb21891ff609f2e /src/plugins/pythoneditor/pythoneditor.h | |
| parent | ddf1de387bcba5472d7f2b3d41abf57191eb08f2 (diff) | |
| download | qt-creator-c35e9286506508002cf0c2ed7fa90d9ba57591d1.tar.gz | |
PythonEditor: Convert to new editor setup scheme
Change-Id: Ibf886c891bb1884d6bc3c08bfe83c4978d17b2f6
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Diffstat (limited to 'src/plugins/pythoneditor/pythoneditor.h')
| -rw-r--r-- | src/plugins/pythoneditor/pythoneditor.h | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/src/plugins/pythoneditor/pythoneditor.h b/src/plugins/pythoneditor/pythoneditor.h index 6597d4c5ce..314b260a97 100644 --- a/src/plugins/pythoneditor/pythoneditor.h +++ b/src/plugins/pythoneditor/pythoneditor.h @@ -31,10 +31,24 @@ #define PYTHONEDITOR_EDITOR_H #include <texteditor/basetexteditor.h> +#include <coreplugin/editormanager/ieditorfactory.h> namespace PythonEditor { namespace Internal { +class PythonEditorFactory : public Core::IEditorFactory +{ + Q_OBJECT + +public: + PythonEditorFactory(); + + /** + Creates and initializes new editor widget + */ + Core::IEditor *createEditor(); +}; + class PythonEditor : public TextEditor::BaseTextEditor { Q_OBJECT @@ -42,8 +56,6 @@ class PythonEditor : public TextEditor::BaseTextEditor public: PythonEditor(); - Core::IEditor *duplicate(); - /** Opens file for editing, actual work performed by base class */ @@ -52,6 +64,17 @@ public: const QString &realFileName); }; +class PythonEditorWidget : public TextEditor::BaseTextEditorWidget +{ + Q_OBJECT + +public: + PythonEditorWidget(); + +protected: + TextEditor::BaseTextEditor *createEditor(); +}; + } // namespace Internal } // namespace PythonEditor |
