edbee - Qt Editor Library v0.11.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
edbee::TextBufferChangeData Class Reference

#include <textbuffer.h>

+ Inheritance diagram for edbee::TextBufferChangeData:
+ Collaboration diagram for edbee::TextBufferChangeData:

Public Member Functions

 TextBufferChangeData (TextBuffer *buffer, int off, int len, const QChar *text, int textlen)
 Initializes the textbuffer change.
 
 TextBufferChangeData (LineOffsetVector *lineOffsets, int off, int len, const QChar *text, int textlen)
 Initializes the textbuffer change.
 

Public Attributes

int offset_
 The offset in the buffer.
 
int length_
 The number of chars to replaced.
 
const QChar * newText_
 The reference to a new text.
 
int newTextLength_
 The length of this text.
 
int line_
 The line number were the change occured.
 
int lineCount_
 the number of lines that are involved.
 
QVector< int > newLineOffsets_
 A list of new line offset.
 

Constructor & Destructor Documentation

◆ TextBufferChangeData() [1/2]

edbee::TextBufferChangeData::TextBufferChangeData ( TextBuffer * buffer,
int off,
int len,
const QChar * text,
int textlen )

Initializes the textbuffer change.

Parameters
bufferwhen buffer is 0 NO line calculation is done

◆ TextBufferChangeData() [2/2]

edbee::TextBufferChangeData::TextBufferChangeData ( LineOffsetVector * lineOffsets,
int off,
int len,
const QChar * text,
int textlen )

Initializes the textbuffer change.

Parameters
bufferwhen buffer is 0 NO line calculation is done

Member Data Documentation

◆ length_

int edbee::TextBufferChangeData::length_

The number of chars to replaced.

◆ line_

int edbee::TextBufferChangeData::line_

The line number were the change occured.

◆ lineCount_

int edbee::TextBufferChangeData::lineCount_

the number of lines that are involved.

◆ newLineOffsets_

QVector<int> edbee::TextBufferChangeData::newLineOffsets_

A list of new line offset.

◆ newText_

const QChar* edbee::TextBufferChangeData::newText_

The reference to a new text.

◆ newTextLength_

int edbee::TextBufferChangeData::newTextLength_

The length of this text.

◆ offset_

int edbee::TextBufferChangeData::offset_

The offset in the buffer.


The documentation for this class was generated from the following files: