forked from qt-creator/qt-creator
Remove ITextMarkable
There was only a single user (TextEditor::DocumentMarker) which in turn was only used in a single place (BaseTextDocument), so merge the ITextMarkable into BaseTextDocument. Change-Id: I1ca8675f9fc22cb56097b843dc5a0fe76875d3e7 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -34,6 +34,8 @@
|
||||
|
||||
#include "itexteditor.h"
|
||||
|
||||
#include <QList>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QTextCursor;
|
||||
class QTextDocument;
|
||||
@@ -44,13 +46,14 @@ namespace TextEditor {
|
||||
class BaseTextDocumentPrivate;
|
||||
class ExtraEncodingSettings;
|
||||
class FontSettings;
|
||||
class ITextMarkable;
|
||||
class Indenter;
|
||||
class StorageSettings;
|
||||
class SyntaxHighlighter;
|
||||
class TabSettings;
|
||||
class TypingSettings;
|
||||
|
||||
typedef QList<ITextMark *> TextMarks;
|
||||
|
||||
class TEXTEDITOR_EXPORT BaseTextDocument : public ITextEditorDocument
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -81,7 +84,13 @@ public:
|
||||
QTextCursor indent(const QTextCursor &cursor);
|
||||
QTextCursor unindent(const QTextCursor &cursor);
|
||||
|
||||
ITextMarkable *markableInterface() const;
|
||||
TextMarks marks() const;
|
||||
bool addMark(ITextMark *mark);
|
||||
TextMarks marksAt(int line) const;
|
||||
void removeMark(ITextMark *mark);
|
||||
void updateMark(ITextMark *mark);
|
||||
void moveMark(ITextMark *mark, int previousLine);
|
||||
void removeMarkFromMarksCache(TextEditor::ITextMark *mark);
|
||||
|
||||
// IDocument implementation.
|
||||
bool save(QString *errorString, const QString &fileName, bool autoSave);
|
||||
|
||||
Reference in New Issue
Block a user