Kate
KateBuffer Class Reference
The KateBuffer class maintains a collections of lines. More...
#include <katebuffer.h>

Detailed Description
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.
Definition at line 341 of file katebuffer.h.
Constructor & Destructor Documentation
| KateBuffer::KateBuffer | ( | KateDocument * | doc | ) |
Create an empty buffer.
- Parameters:
-
doc parent document
Definition at line 323 of file katebuffer.cpp.
| KateBuffer::~KateBuffer | ( | ) |
Member Function Documentation
| bool KateBuffer::binary | ( | ) | const [inline] |
| bool KateBuffer::canEncode | ( | ) |
Can the current codec handle all chars.
- Returns:
- chars can be encoded
Definition at line 540 of file katebuffer.cpp.
| void KateBuffer::changeLine | ( | uint | i | ) |
| void KateBuffer::clear | ( | ) |
| void KateBuffer::codeFoldingColumnUpdate | ( | unsigned int | lineNr | ) | [slot] |
Definition at line 1260 of file katebuffer.cpp.
| void KateBuffer::codeFoldingUpdated | ( | ) | [signal] |
Emittend if codefolding returned with a changed list.
| uint KateBuffer::count | ( | ) | const [inline] |
| uint KateBuffer::countVisible | ( | ) | [inline] |
Definition at line 568 of file katebuffer.h.
| 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.
| void KateBuffer::editEnd | ( | ) |
| void KateBuffer::editStart | ( | ) |
| uint KateBuffer::editTagEnd | ( | ) | const [inline] |
| bool KateBuffer::editTagFrom | ( | ) | const [inline] |
| uint KateBuffer::editTagStart | ( | ) | const [inline] |
| KateCodeFoldingTree* KateBuffer::foldingTree | ( | ) | [inline] |
Definition at line 596 of file katebuffer.h.
| KateHighlighting* KateBuffer::highlight | ( | ) | [inline] |
Definition at line 589 of file katebuffer.h.
| void KateBuffer::insertLine | ( | uint | i, | |
| KateTextLine::Ptr | line | |||
| ) |
| void KateBuffer::invalidateHighlighting | ( | ) |
| KateTextLine::Ptr KateBuffer::line | ( | uint | i | ) | [inline] |
| void KateBuffer::lineInfo | ( | KateLineInfo * | info, | |
| unsigned int | line | |||
| ) | [inline] |
Definition at line 574 of file katebuffer.h.
Definition at line 570 of file katebuffer.h.
Definition at line 572 of file katebuffer.h.
| 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.
| static uint KateBuffer::maxLoadedBlocks | ( | ) | [inline, static] |
Open a file, use the given filename.
- Parameters:
-
m_file filename to open
- Returns:
- success
Definition at line 458 of file katebuffer.cpp.
| KateTextLine::Ptr KateBuffer::plainLine | ( | uint | i | ) | [inline] |
| void KateBuffer::removeLine | ( | uint | i | ) |
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.
| 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.
| void KateBuffer::setMaxLoadedBlocks | ( | uint | count | ) | [static] |
modifier for max loaded blocks limit
- Parameters:
-
count new limit
Definition at line 79 of file katebuffer.cpp.
| void KateBuffer::setTabWidth | ( | uint | w | ) |
Definition at line 845 of file katebuffer.cpp.
| uint KateBuffer::tabWidth | ( | ) | const [inline] |
Definition at line 576 of file katebuffer.h.
Emitted when the highlighting of a certain range has changed.
The documentation for this class was generated from the following files:
KDE 3.5 API Reference