KateBuffer Class Reference
The KateBuffer class maintains a collections of lines. More...
#include <katebuffer.h>
Inheritance diagram for KateBuffer:

Public Slots | |
void | setLineVisible (unsigned int lineNr, bool visible) |
Signals | |
void | codeFoldingUpdated () |
void | tagLines (int start, int end) |
Public Member Functions | |
KateBuffer (KateDocument *doc) | |
~KateBuffer () | |
void | editStart () |
void | editEnd () |
void | clear () |
bool | openFile (const QString &m_file) |
bool | loadingBorked () 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 |
KVMAllocator * | vm () |
void | setTabWidth (uint w) |
void | setHighlight (KateHighlighting *highlight) |
KateHighlighting * | highlight () |
void | invalidateHighlighting () |
KateCodeFoldingTree * | foldingTree () |
Static Public Member Functions | |
static uint | maxLoadedBlocks () |
static void | setMaxLoadedBlocks (uint count) |
Friends | |
class | KateBufBlock |
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.
Constructor & Destructor Documentation
|
Create an empty buffer.
Definition at line 259 of file katebuffer.cpp. References clear(), and setLineVisible(). |
|
Goodbye buffer.
Definition at line 287 of file katebuffer.cpp. |
Member Function Documentation
|
maximal loaded block count
Definition at line 352 of file katebuffer.h. Referenced by KateBufBlock::KateBufBlock(). |
|
modifier for max loaded blocks limit
Definition at line 77 of file katebuffer.cpp. References KMAX. |
|
start some editing action
Definition at line 294 of file katebuffer.cpp. |
|
finish some editing action
Definition at line 307 of file katebuffer.cpp. |
|
Clear the buffer.
Definition at line 387 of file katebuffer.cpp. References KateBufBlock::lines(). Referenced by KateBuffer(), and openFile(). |
|
Open a file, use the given filename.
Definition at line 413 of file katebuffer.cpp. References clear(), KateBufBlock::endLine(), and KateBufBlock::lines(). |
|
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 447 of file katebuffer.h. |
|
Can the current codec handle all chars.
Definition at line 490 of file katebuffer.cpp. References endl(), kdDebug(), and plainLine(). |
|
Save the buffer to a file, use the given filename + codec + end of line chars (internal use of qtextstream).
Definition at line 514 of file katebuffer.cpp. References plainLine(). |
|
Return line
Definition at line 466 of file katebuffer.h. References KateBufBlock::line(), and KateBufBlock::startLine(). |
|
Return line
Definition at line 488 of file katebuffer.h. References KateBufBlock::line(), and KateBufBlock::startLine(). Referenced by canEncode(), and saveFile(). |
|
Return the total number of lines in the buffer.
Definition at line 500 of file katebuffer.h. |
|
Mark line
Definition at line 680 of file katebuffer.cpp. References KateBufBlock::markDirty(). |
|
Insert
Definition at line 690 of file katebuffer.cpp. References KateBufBlock::insertLine(), and KateBufBlock::startLine(). |
|
Remove line
Definition at line 725 of file katebuffer.cpp. References KateBufBlock::lines(), KateBufBlock::next(), KateBufBlock::prev(), KateBufBlock::removeLine(), and KateBufBlock::startLine(). |
|
Use
Definition at line 791 of file katebuffer.cpp. References invalidateHighlighting(). |
|
Invalidate highlighting of whole buffer.
Definition at line 797 of file katebuffer.cpp. Referenced by setHighlight(). |
|
change the visibility of a given line
Definition at line 1035 of file katebuffer.cpp. References KateBufBlock::line(), KateBufBlock::markDirty(), and KateBufBlock::startLine(). Referenced by KateBuffer(). |
|
Emittend if codefolding returned with a changed list.
|
|
Emitted when the highlighting of a certain range has changed.
|
The documentation for this class was generated from the following files: