25class TextLineDataManager;
93 void setFieldsPerLine(
int count );
96 int length()
const {
return textLineDataList_.length(); }
101 Change* createLinesReplacedChange(
int lineStart,
int lineCount,
int newLineCount );
105 void fillWithEmpty(
int line,
int length,
int newLength );
106 void replace(
int line,
int length,
TextLineDataList** items,
int newLength );
113 void destroyRange(
int line,
int length );
122 void lineDataChanged(
int line,
int length,
int newLength );
a simple class to store a QString in a line
Definition textlinedata.h:40
void setValue(const T &value)
Definition textlinedata.h:44
BasicTextLineData(const T &val)
Definition textlinedata.h:42
T value()
Definition textlinedata.h:43
A basic change.
Definition change.h:18
This class is used to define a gap vector. A Gapvector is split in 2 parts. where the gap is moved to...
Definition gapvector.h:19
A text line item reference.
Definition textlinedata.h:30
TextLineData()
Definition textlinedata.h:32
virtual ~TextLineData()
Definition textlinedata.h:33
the line data items
Definition textlinedata.h:57
void realloc(TextLineDataManager *manager, int oldFieldPerLine, int newFieldsPerLine)
This method reallocates the number of fields.
Definition textlinedata.cpp:83
TextLineDataList()
construct the text line data item
Definition textlinedata.cpp:16
TextLineData * at(TextLineDataManager *manager, int field)
This method returns the given data item /.
Definition textlinedata.cpp:73
TextLineData * take(TextLineDataManager *manager, int field)
This method returns the given data item and transfers the ownership. The item in the list is set to 0...
Definition textlinedata.cpp:59
virtual void destroy(TextLineDataManager *manager)
destroys the data items
Definition textlinedata.cpp:30
This manager manages all line definitions.
Definition textlinedata.h:77
TextLineDataList * at(int idx) const
returns the textline data list item
Definition textlinedata.h:98
TextLineData * take(int line, int field)
Definition textlinedata.cpp:149
GapVector< TextLineDataList * > * textLineDataList()
internal method for direct accesss
Definition textlinedata.h:109
int length() const
returns the number of items
Definition textlinedata.h:96
int fieldsPerLine()
returns the number of items per line
Definition textlinedata.h:92
TextLineDataManager(int fieldsPerLine=PredefinedFieldCount)
Definition textlinedata.cpp:109
TextLineData * get(int line, int field)
Definition textlinedata.cpp:157
void clear()
this method clears all field items
Definition textlinedata.cpp:124
#define EDBEE_EXPORT
Definition exports.h:15
#define give(key, command)
Definition factorycommandmap.cpp:30
QT Acessibility has an issue with reporting blank lines between elements lines. defining 'WINDOWS_EMP...
Definition commentcommand.cpp:20
BasicTextLineData< QList< QTextLayout::FormatRange > > LineAppendTextLayoutFormatListData
Definition textlinedata.h:52
TextLineDataPredefinedFields
Definition textlinedata.h:16
@ LineTextScopesField
Definition textlinedata.h:17
@ LineAppendTextLayoutFormatListField
Definition textlinedata.h:19
@ PredefinedFieldCount
Definition textlinedata.h:20
BasicTextLineData< QString > QStringTextLineData
Definition textlinedata.h:51