KTextEditor
Go to the documentation of this file.
24 #ifndef KDELIBS_KTEXTEDITOR_MOVINGRANGE_H
25 #define KDELIBS_KTEXTEDITOR_MOVINGRANGE_H
37 class MovingRangeFeedback;
137 Q_DECLARE_FLAGS(InsertBehaviors, InsertBehavior)
144 InvalidateIfEmpty = 0x1
155 virtual void setInsertBehaviors (InsertBehaviors insertBehaviors) = 0;
161 virtual InsertBehaviors insertBehaviors ()
const = 0;
167 virtual void setEmptyBehavior (EmptyBehavior emptyBehavior) = 0;
173 virtual EmptyBehavior emptyBehavior ()
const = 0;
179 virtual Document *document ()
const = 0;
206 virtual View *view ()
const = 0;
216 virtual void setView (
View *view) = 0;
239 virtual bool attributeOnlyForViews ()
const = 0;
245 virtual void setAttributeOnlyForViews (
bool onlyForViews) = 0;
277 virtual qreal zDepth ()
const = 0;
288 virtual void setZDepth (qreal zDepth) = 0;
339 operator const Range ()
const {
return Range (start().toCursor(),
end().toCursor()); }
349 s <<
"[" << range->
start() <<
" -> " << range->
end() <<
"]";
372 return start() ==
end();
390 return range.
start() >= start() && range.
end() <=
end();
401 return cursor >= start() && cursor <
end();
412 return (line > start().line() || (line == start().line() && !start().column())) && line <
end().line();
423 return column >= start().column() && column <
end().column();
433 bool overlaps(
const Range& range)
const;
443 return line >= start().line() && line <=
end().line();
457 return start().column() <= column &&
end().column() > column;
468 return start().line() ==
end().line();
474 Q_DECLARE_OPERATORS_FOR_FLAGS(MovingRange::InsertBehaviors)
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sun Apr 28 2013 14:32:00 by
doxygen 1.8.1.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.