KateBufBlock Class Reference
#include <katebuffer.h>
Detailed Description
The KateBufBlock class contains an amount of data representing a certain number of lines.
- Author:
- Waldo Bastian <bastian@kde.org>
Christoph Cullmann <cullmann@kde.org>
Definition at line 49 of file katebuffer.h.
Public Types | |
enum | State { stateSwapped = 0, stateClean = 1, stateDirty = 2 } |
Public Member Functions | |
KateBufBlock (KateBuffer *parent, KateBufBlock *prev=0, KateBufBlock *next=0, KateFileLoader *stream=0) | |
~KateBufBlock () | |
State | state () const |
KateTextLine::Ptr | line (uint i) |
void | insertLine (uint i, KateTextLine::Ptr line) |
void | removeLine (uint i) |
void | markDirty () |
uint | startLine () const |
void | setStartLine (uint line) |
uint | endLine () const |
uint | lines () const |
KateBufBlock * | prev () |
KateBufBlock * | next () |
Friends | |
class | KateBufBlockList |
Member Enumeration Documentation
|
state flags
Definition at line 80 of file katebuffer.h. |
Constructor & Destructor Documentation
|
Create an empty block. (empty == ONE line)
Definition at line 1273 of file katebuffer.cpp. |
|
destroy this block and take care of freeing all mem
Definition at line 1321 of file katebuffer.cpp. |
Member Function Documentation
|
first line behind this block
Definition at line 141 of file katebuffer.h. |
|
insert
Definition at line 1452 of file katebuffer.cpp. |
|
return line if you modifiy this line, please mark the block as dirty
Definition at line 1439 of file katebuffer.cpp. |
|
lines in this block
Definition at line 147 of file katebuffer.h. |
|
mark this block as dirty, will invalidate the swap data insert/removeLine will mark the block dirty itself
Definition at line 1476 of file katebuffer.cpp. |
|
next block
Definition at line 159 of file katebuffer.h. |
|
prev block
Definition at line 153 of file katebuffer.h. |
|
remove line
Definition at line 1464 of file katebuffer.cpp. |
|
update the first line, needed to keep it up to date
Definition at line 135 of file katebuffer.h. |
|
startLine
Definition at line 129 of file katebuffer.h. |
|
returns the current state of this block
Definition at line 91 of file katebuffer.h. |
The documentation for this class was generated from the following files: