• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Kate

KateBufBlock Class Reference

The KateBufBlock class contains an amount of data representing a certain number of lines. More...

#include <katebuffer.h>

List of all members.


Public Types

enum  State { stateSwapped = 0, stateClean = 1, stateDirty = 2 }

Public Member Functions

uint endLine () const
void insertLine (uint i, KateTextLine::Ptr line)
 KateBufBlock (KateBuffer *parent, KateBufBlock *prev=0, KateBufBlock *next=0, KateFileLoader *stream=0)
KateTextLine::Ptr line (uint i)
uint lines () const
void markDirty ()
KateBufBlock * next ()
KateBufBlock * prev ()
void removeLine (uint i)
void setStartLine (uint line)
uint startLine () const
State state () const
 ~KateBufBlock ()

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.


Member Enumeration Documentation

enum KateBufBlock::State

state flags

Enumerator:
stateSwapped 
stateClean 
stateDirty 

Definition at line 80 of file katebuffer.h.


Constructor & Destructor Documentation

KateBufBlock::KateBufBlock ( KateBuffer *  parent,
KateBufBlock *  prev = 0,
KateBufBlock *  next = 0,
KateFileLoader *  stream = 0 
)

Create an empty block.

(empty == ONE line)

Parameters:
parent buffer the block belongs to
prev previous bufblock in the list
next next bufblock in the list
stream stream to load the content from, if any given

Definition at line 1273 of file katebuffer.cpp.

KateBufBlock::~KateBufBlock (  ) 

destroy this block and take care of freeing all mem

Definition at line 1321 of file katebuffer.cpp.


Member Function Documentation

uint KateBufBlock::endLine (  )  const [inline]

first line behind this block

Returns:
line behind block

Definition at line 141 of file katebuffer.h.

void KateBufBlock::insertLine ( uint  i,
KateTextLine::Ptr  line 
)

insert line in front of line i marks the block dirty

Parameters:
i where to insert
line line pointer

Definition at line 1452 of file katebuffer.cpp.

KateTextLine::Ptr KateBufBlock::line ( uint  i  ) 

return line i The first line of this block is line 0.

if you modifiy this line, please mark the block as dirty

Parameters:
i line to return
Returns:
line pointer

Definition at line 1439 of file katebuffer.cpp.

uint KateBufBlock::lines (  )  const [inline]

lines in this block

Returns:
lines

Definition at line 147 of file katebuffer.h.

void KateBufBlock::markDirty (  ) 

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.

KateBufBlock* KateBufBlock::next (  )  [inline]

next block

Returns:
next block

Definition at line 159 of file katebuffer.h.

KateBufBlock* KateBufBlock::prev (  )  [inline]

prev block

Returns:
previous block

Definition at line 153 of file katebuffer.h.

void KateBufBlock::removeLine ( uint  i  ) 

remove line i marks the block dirty

Parameters:
i line to remove

Definition at line 1464 of file katebuffer.cpp.

void KateBufBlock::setStartLine ( uint  line  )  [inline]

update the first line, needed to keep it up to date

Parameters:
line new startLine

Definition at line 135 of file katebuffer.h.

uint KateBufBlock::startLine (  )  const [inline]

startLine

Returns:
first line in block

Definition at line 129 of file katebuffer.h.

State KateBufBlock::state (  )  const [inline]

returns the current state of this block

Returns:
state

Definition at line 91 of file katebuffer.h.


The documentation for this class was generated from the following files:
  • katebuffer.h
  • katebuffer.cpp

Kate

Skip menu "Kate"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal