forked from qt-creator/qt-creator
TextEditor: Remove itexteditor.{h,cpp}
Move the remaining contents to more appropriate places. Change-Id: I55eed5c572bd33dafe2187523d9aa381c211fdd6 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -31,10 +31,12 @@
|
||||
#define BASETEXTEDITOR_H
|
||||
|
||||
#include "basetextdocument.h"
|
||||
#include "itexteditor.h"
|
||||
#include "codeassist/assistenums.h"
|
||||
#include "texteditor_global.h"
|
||||
|
||||
#include <coreplugin/textdocument.h>
|
||||
#include <coreplugin/editormanager/editormanager.h>
|
||||
#include <coreplugin/editormanager/ieditor.h>
|
||||
#include <coreplugin/find/ifindsupport.h>
|
||||
|
||||
#include <QPlainTextEdit>
|
||||
@@ -43,9 +45,17 @@
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QToolBar;
|
||||
class QPrinter;
|
||||
class QMenu;
|
||||
class QPainter;
|
||||
class QPoint;
|
||||
class QRect;
|
||||
class QTextBlock;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace Utils { class LineColumnLabel; }
|
||||
namespace Utils {
|
||||
class CommentDefinition;
|
||||
class LineColumnLabel;
|
||||
}
|
||||
|
||||
namespace TextEditor {
|
||||
|
||||
@@ -77,6 +87,24 @@ class Indenter;
|
||||
class AutoCompleter;
|
||||
class ExtraEncodingSettings;
|
||||
|
||||
class TEXTEDITOR_EXPORT BlockRange
|
||||
{
|
||||
public:
|
||||
BlockRange() : _first(0), _last(-1) {}
|
||||
BlockRange(int firstPosition, int lastPosition)
|
||||
: _first(firstPosition), _last(lastPosition)
|
||||
{}
|
||||
|
||||
inline bool isNull() const { return _last < _first; }
|
||||
|
||||
int first() const { return _first; }
|
||||
int last() const { return _last; }
|
||||
|
||||
private:
|
||||
int _first;
|
||||
int _last;
|
||||
};
|
||||
|
||||
class TEXTEDITOR_EXPORT BaseTextEditor : public Core::IEditor
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
Reference in New Issue
Block a user