edbee - Qt Editor Library
Public Member Functions | Public Attributes | List of all members
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. More...
 
 TextBufferChangeData (LineOffsetVector *lineOffsets, int off, int len, const QChar *text, int textlen)
 Initializes the textbuffer change. More...
 

Public Attributes

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

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: