#include <katebuffer.h>
Inherits TQObject.
The KateBuffer class maintains a collections of lines.
It allows to maintain state information in a lazy way. It handles swapping out of data using secondary storage.
It is designed to handle large amounts of text-data efficiently with respect to CPU and memory usage.
- Author
- Waldo Bastian basti.nosp@m.an@k.nosp@m.de.or.nosp@m.g
-
Christoph Cullmann cullm.nosp@m.ann@.nosp@m.kde.o.nosp@m.rg
Definition at line 341 of file katebuffer.h.
◆ KateBuffer()
KateBuffer::KateBuffer |
( |
KateDocument * |
doc | ) |
|
Create an empty buffer.
- Parameters
-
(with one block with one empty line)
Definition at line 323 of file katebuffer.cpp.
◆ ~KateBuffer()
KateBuffer::~KateBuffer |
( |
| ) |
|
Goodbye buffer.
Cleanup on destruction.
Definition at line 352 of file katebuffer.cpp.
◆ binary()
bool KateBuffer::binary |
( |
| ) |
const |
|
inline |
is this file a binary?
- Returns
- binary file?
Definition at line 469 of file katebuffer.h.
◆ canEncode()
bool KateBuffer::canEncode |
( |
| ) |
|
Can the current codec handle all chars.
- Returns
- chars can be encoded
Definition at line 540 of file katebuffer.cpp.
◆ changeLine()
void KateBuffer::changeLine |
( |
uint |
i | ) |
|
◆ clear()
void KateBuffer::clear |
( |
| ) |
|
◆ codeFoldingColumnUpdate
void KateBuffer::codeFoldingColumnUpdate |
( |
unsigned int |
lineNr | ) |
|
|
slot |
◆ codeFoldingUpdated
void KateBuffer::codeFoldingUpdated |
( |
| ) |
|
|
signal |
Emittend if codefolding returned with a changed list.
◆ count()
uint KateBuffer::count |
( |
| ) |
const |
|
inline |
Return the total number of lines in the buffer.
Definition at line 524 of file katebuffer.h.
◆ countVisible()
uint KateBuffer::countVisible |
( |
| ) |
|
|
inline |
◆ editChanged()
bool KateBuffer::editChanged |
( |
| ) |
const |
|
inline |
were there changes in the current running editing session?
- Returns
- changes done?
Definition at line 394 of file katebuffer.h.
◆ editEnd()
void KateBuffer::editEnd |
( |
| ) |
|
◆ editStart()
void KateBuffer::editStart |
( |
| ) |
|
◆ editTagEnd()
uint KateBuffer::editTagEnd |
( |
| ) |
const |
|
inline |
dirty lines end
- Returns
- end line
Definition at line 406 of file katebuffer.h.
◆ editTagFrom()
bool KateBuffer::editTagFrom |
( |
| ) |
const |
|
inline |
line inserted/removed?
- Returns
- line inserted/removed?
Definition at line 412 of file katebuffer.h.
◆ editTagStart()
uint KateBuffer::editTagStart |
( |
| ) |
const |
|
inline |
dirty lines start
- Returns
- start line
Definition at line 400 of file katebuffer.h.
◆ foldingTree()
KateCodeFoldingTree * KateBuffer::foldingTree |
( |
| ) |
|
|
inline |
◆ highlight()
KateHighlighting * KateBuffer::highlight |
( |
| ) |
|
|
inline |
◆ insertLine()
◆ invalidateHighlighting()
void KateBuffer::invalidateHighlighting |
( |
| ) |
|
Invalidate highlighting of whole buffer.
Definition at line 892 of file katebuffer.cpp.
◆ line()
◆ lineInfo()
void KateBuffer::lineInfo |
( |
KateLineInfo * |
info, |
|
|
unsigned int |
line |
|
) |
| |
|
inline |
◆ lineNumber()
uint KateBuffer::lineNumber |
( |
uint |
visibleLine | ) |
|
|
inline |
◆ lineVisibleNumber()
uint KateBuffer::lineVisibleNumber |
( |
uint |
line | ) |
|
|
inline |
◆ loadingBorked()
bool KateBuffer::loadingBorked |
( |
| ) |
const |
|
inline |
was the last loading broken because of not enough tmp disk space ? (will be reseted on successful save of the file, user gets warning if he really wants to do it)
- Returns
- was loading borked?
Definition at line 463 of file katebuffer.h.
◆ maxLoadedBlocks()
static uint KateBuffer::maxLoadedBlocks |
( |
| ) |
|
|
inlinestatic |
maximal loaded block count
- Returns
- max loaded blocks
Definition at line 352 of file katebuffer.h.
◆ openFile()
bool KateBuffer::openFile |
( |
const TQString & |
m_file | ) |
|
Open a file, use the given filename.
- Parameters
-
- Returns
- success
Definition at line 458 of file katebuffer.cpp.
◆ plainLine()
Return line i
without triggering highlighting.
Definition at line 512 of file katebuffer.h.
◆ removeLine()
void KateBuffer::removeLine |
( |
uint |
i | ) |
|
◆ saveFile()
bool KateBuffer::saveFile |
( |
const TQString & |
m_file | ) |
|
Save the buffer to a file, use the given filename + codec + end of line chars (internal use of qtextstream)
- Parameters
-
m_file | filename to save to |
- Returns
- success
Definition at line 564 of file katebuffer.cpp.
◆ setHighlight()
void KateBuffer::setHighlight |
( |
uint |
hlMode | ) |
|
Use highlight
for highlighting.
highlight
may be 0 in which case highlighting will be disabled.
Definition at line 856 of file katebuffer.cpp.
◆ setMaxLoadedBlocks()
void KateBuffer::setMaxLoadedBlocks |
( |
uint |
count | ) |
|
|
static |
modifier for max loaded blocks limit
- Parameters
-
Definition at line 79 of file katebuffer.cpp.
◆ setTabWidth()
void KateBuffer::setTabWidth |
( |
uint |
w | ) |
|
◆ tabWidth()
uint KateBuffer::tabWidth |
( |
| ) |
const |
|
inline |
◆ tagLines
void KateBuffer::tagLines |
( |
int |
start, |
|
|
int |
end |
|
) |
| |
|
signal |
Emitted when the highlighting of a certain range has changed.
◆ KateBufBlock
The documentation for this class was generated from the following files: