#include </home/clem/local/src/opie/noncore/apps/tinykate/libkate/document/katebuffer.h>
Collaboration diagram for KWBuffer:

Signals | |
| void | textChanged () |
| void | linesChanged (int lines) |
| void | needHighlight (long, long) |
Public Member Functions | |
| KWBuffer () | |
| void | insertFile (int line, const QString &file, QTextCodec *codec) |
| void | insertData (int line, const QByteArray &data, QTextCodec *codec) |
| int | count () |
| TextLine::Ptr | line (int i) |
| void | insertLine (int i, TextLine::Ptr line) |
| void | removeLine (int i) |
| void | changeLine (int i) |
| void | clear () |
Protected Slots | |
| void | slotLoadFile () |
Protected Member Functions | |
| void | loadBlock (KWBufBlock *buf) |
| void | parseBlock (KWBufBlock *buf) |
| void | dirtyBlock (KWBufBlock *buf) |
| KWBufBlock * | findBlock (int i) |
| void | loadFilePart () |
| void | seek (int i) |
Protected Attributes | |
| TextLine::List | m_stringList |
| TextLine::List::Iterator | m_stringListIt |
| int | m_stringListCurrent |
| int | m_lineCount |
It is designed to handle large amounts of text-data efficiently with respect to CPU and memory usage.
Definition at line 44 of file katebuffer.h.
|
|
Create an empty buffer. Definition at line 48 of file katebuffer.cpp. References clear(). |
|
|
Change line Definition at line 177 of file katebuffer.cpp. Referenced by KateDocument::doDelLine(), KateDocument::doNewLine(), KateDocument::doReplace(), KateDocument::doWordUnWrap(), KateDocument::doWordWrap(), and KateDocument::recordReplace(). |
|
|
Clear the buffer. Definition at line 54 of file katebuffer.cpp. References FastValueList< T >::append(), QValueList< T >::clear(), m_lineCount, m_stringList, m_stringListCurrent, and m_stringListIt. Referenced by KateDocument::clear(), insertFile(), KWBuffer(), and KateDocument::openURL(). |
|
|
Return the total number of lines in the buffer. Definition at line 123 of file katebuffer.cpp. References QValueList< T >::count(), m_lineCount, m_stringList, odebug, and oendl. Referenced by insertFile(), and KateDocument::numLines(). |
|
|
Mark |
|
|
Find the block containing line |
|
||||||||||||||||
|
Insert a block of data at line Definition at line 107 of file katebuffer.cpp. |
|
||||||||||||||||
|
Insert a file at line Definition at line 67 of file katebuffer.cpp. References FastValueList< T >::append(), clear(), count(), IO_ReadOnly, QString::length(), m_lineCount, m_stringList, m_stringListCurrent, m_stringListIt, QString::null, odebug, oendl, QFile::open(), QTextStream::readLine(), QTextStream::setCodec(), stream, and QString::unicode(). Referenced by KateDocument::openURL(). |
|
||||||||||||
|
Insert Definition at line 158 of file katebuffer.cpp. References FastValueList< T >::insert(), m_lineCount, m_stringList, m_stringListCurrent, m_stringListIt, and seek(). Referenced by KateDocument::doInsLine(), KateDocument::doNewLine(), KateDocument::insert_Line(), KateDocument::setText(), and KateDocument::wrapText(). |
|
|
Return line Definition at line 150 of file katebuffer.cpp. References QValueList< T >::count(), m_stringList, m_stringListIt, and seek(). Referenced by KateDocument::clear(), KateDocument::getTextLine(), KateDocument::setTabWidth(), KateDocument::setText(), KateDocument::text(), and KateDocument::updateLines(). |
|
|
Emitted during loading. Referenced by slotLoadFile(). |
|
|
Make sure |
|
|
Load a part of the file that is currently loading. Definition at line 101 of file katebuffer.cpp. Referenced by slotLoadFile(). |
|
||||||||||||
|
|
|
|
Make sure |
|
|
Remove line Definition at line 168 of file katebuffer.cpp. References m_lineCount, m_stringList, m_stringListCurrent, m_stringListIt, FastValueList< T >::remove(), and seek(). Referenced by KateDocument::doDelLine(), KateDocument::doKillLine(), and KateDocument::remove_Line(). |
|
|
Definition at line 132 of file katebuffer.cpp. References m_stringListCurrent, and m_stringListIt. Referenced by insertLine(), line(), and removeLine(). |
|
|
Definition at line 112 of file katebuffer.cpp. References linesChanged(), and loadFilePart(). |
|
|
|
|
|
Definition at line 137 of file katebuffer.h. Referenced by clear(), count(), insertFile(), insertLine(), and removeLine(). |
|
|
Definition at line 134 of file katebuffer.h. Referenced by clear(), count(), insertFile(), insertLine(), line(), and removeLine(). |
|
|
Definition at line 136 of file katebuffer.h. Referenced by clear(), insertFile(), insertLine(), removeLine(), and seek(). |
|
|
Definition at line 135 of file katebuffer.h. Referenced by clear(), insertFile(), insertLine(), line(), removeLine(), and seek(). |
1.4.2