forked from qt-creator/qt-creator
TextEditor: Further *Editor/*EditorWidget disentangling
In most cases, the *Editor constructor does not need to access the *EditorWidget. Change-Id: I1f5c076a0f723d5d82b398e8c250c7bd1d47eb17 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -117,9 +117,11 @@ public:
|
||||
EndOfDoc = 5
|
||||
};
|
||||
|
||||
BaseTextEditor(BaseTextEditorWidget *editorWidget);
|
||||
BaseTextEditor();
|
||||
~BaseTextEditor();
|
||||
|
||||
void setEditorWidget(BaseTextEditorWidget *editorWidget);
|
||||
|
||||
enum MarkRequestKind {
|
||||
BreakpointRequest,
|
||||
BookmarkRequest,
|
||||
@@ -216,6 +218,7 @@ public:
|
||||
~BaseTextEditorWidget();
|
||||
|
||||
void setTextDocument(const BaseTextDocumentPtr &doc);
|
||||
void setSimpleTextDocument(Core::Id id); // Convenience.
|
||||
|
||||
BaseTextDocument *textDocument() const;
|
||||
BaseTextDocumentPtr textDocumentPtr() const;
|
||||
|
||||
Reference in New Issue
Block a user