forked from qt-creator/qt-creator
TextEditor: Move BlockRange out of texteditor.h
Change-Id: Idc00622e67c4498b35bab73108551ae4cc0c2359 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
#define TEXTEDITOR_H
|
||||
|
||||
#include "texteditor_global.h"
|
||||
#include "blockrange.h"
|
||||
#include "codeassist/assistenums.h"
|
||||
|
||||
#include <coreplugin/editormanager/ieditor.h>
|
||||
@@ -91,24 +92,6 @@ class MarginSettings;
|
||||
class StorageSettings;
|
||||
class TypingSettings;
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
enum TextPositionOperation
|
||||
{
|
||||
CurrentPosition = 1,
|
||||
|
||||
Reference in New Issue
Block a user