KateBuffer Class Reference
#include <katebuffer.h>
Inheritance diagram for KateBuffer:

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.
- Author:
- Waldo Bastian <bastian@kde.org>
Christoph Cullmann <cullmann@kde.org>
Definition at line 341 of file katebuffer.h.
Public Slots | |
void | codeFoldingColumnUpdate (unsigned int lineNr) |
Signals | |
void | codeFoldingUpdated () |
void | tagLines (int start, int end) |
Public Member Functions | |
KateBuffer (KateDocument *doc) | |
~KateBuffer () | |
void | editStart () |
void | editEnd () |
bool | editChanged () const |
uint | editTagStart () const |
uint | editTagEnd () const |
bool | editTagFrom () const |
void | clear () |
bool | openFile (const QString &m_file) |
bool | loadingBorked () const |
bool | binary () const |
bool | canEncode () |
bool | saveFile (const QString &m_file) |
KateTextLine::Ptr | line (uint i) |
KateTextLine::Ptr | plainLine (uint i) |
uint | count () const |
void | changeLine (uint i) |
void | insertLine (uint i, KateTextLine::Ptr line) |
void | removeLine (uint i) |
uint | countVisible () |
uint | lineNumber (uint visibleLine) |
uint | lineVisibleNumber (uint line) |
void | lineInfo (KateLineInfo *info, unsigned int line) |
uint | tabWidth () const |
void | setTabWidth (uint w) |
void | setHighlight (uint hlMode) |
KateHighlighting * | highlight () |
void | invalidateHighlighting () |
KateCodeFoldingTree * | foldingTree () |
Static Public Member Functions | |
static uint | maxLoadedBlocks () |
static void | setMaxLoadedBlocks (uint count) |
Friends | |
class | KateBufBlock |
Constructor & Destructor Documentation
|
Create an empty buffer.
Definition at line 323 of file katebuffer.cpp. |
|
Goodbye buffer.
Definition at line 352 of file katebuffer.cpp. |
Member Function Documentation
|
is this file a binary?
Definition at line 469 of file katebuffer.h. |
|
Can the current codec handle all chars.
Definition at line 540 of file katebuffer.cpp. |
|
Mark line
Definition at line 702 of file katebuffer.cpp. |
|
Clear the buffer.
Definition at line 431 of file katebuffer.cpp. |
|
Emittend if codefolding returned with a changed list.
|
|
Return the total number of lines in the buffer.
Definition at line 524 of file katebuffer.h. |
|
were there changes in the current running editing session?
Definition at line 394 of file katebuffer.h. |
|
finish some editing action
Definition at line 379 of file katebuffer.cpp. |
|
start some editing action
Definition at line 363 of file katebuffer.cpp. |
|
dirty lines end
Definition at line 406 of file katebuffer.h. |
|
line inserted/removed?
Definition at line 412 of file katebuffer.h. |
|
dirty lines start
Definition at line 400 of file katebuffer.h. |
|
Insert
Definition at line 723 of file katebuffer.cpp. |
|
Invalidate highlighting of whole buffer.
Definition at line 884 of file katebuffer.cpp. |
|
Return line
Definition at line 488 of file katebuffer.h. |
|
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)
Definition at line 463 of file katebuffer.h. |
|
maximal loaded block count
Definition at line 352 of file katebuffer.h. |
|
Open a file, use the given filename.
Definition at line 458 of file katebuffer.cpp. |
|
Return line
Definition at line 512 of file katebuffer.h. |
|
Remove line
Definition at line 772 of file katebuffer.cpp. |
|
Save the buffer to a file, use the given filename + codec + end of line chars (internal use of qtextstream).
Definition at line 564 of file katebuffer.cpp. |
|
Use
Definition at line 852 of file katebuffer.cpp. |
|
modifier for max loaded blocks limit
Definition at line 79 of file katebuffer.cpp. |
|
Emitted when the highlighting of a certain range has changed.
|
The documentation for this class was generated from the following files: