This manager manages all line definitions.
More...
#include <textlinedata.h>
|
| TextLineDataManager (int fieldsPerLine=PredefinedFieldCount) |
|
virtual | ~TextLineDataManager () |
|
void | clear () |
| this method clears all field items More...
|
|
void | give (int line, int field, TextLineData *dataItem) |
| this method gives the given data at the given line and field More...
|
|
TextLineData * | take (int line, int field) |
|
TextLineData * | get (int line, int field) |
|
int | fieldsPerLine () |
| returns the number of items per line More...
|
|
void | setFieldsPerLine (int count) |
| This method is called to notify that some lines have been replaced. More...
|
|
int | length () const |
| returns the number of items More...
|
|
TextLineDataList * | at (int idx) const |
| returns the textline data list item More...
|
|
Change * | createLinesReplacedChange (int lineStart, int lineCount, int newLineCount) |
| This method creates a new lines replace change. More...
|
|
TextLineDataList * | takeList (int line) |
| This method takes the given list (and repalces it with a 0 value) More...
|
|
void | giveList (int line, TextLineDataList *list) |
| This method gives a list to the given line emits a lineDataChanged signal. More...
|
|
void | fillWithEmpty (int line, int length, int newLength) |
| replace the given area with no-data emits a lineDataChanged signal More...
|
|
void | replace (int line, int length, TextLineDataList **items, int newLength) |
| Replace the given items with emits a lineDataChanged signal. More...
|
|
GapVector< TextLineDataList * > * | textLineDataList () |
| internal method for direct accesss More...
|
|
This manager manages all line definitions.
◆ TextLineDataManager()
◆ ~TextLineDataManager()
edbee::TextLineDataManager::~TextLineDataManager |
( |
| ) |
|
|
virtual |
◆ at()
returns the textline data list item
◆ clear()
void edbee::TextLineDataManager::clear |
( |
| ) |
|
this method clears all field items
◆ createLinesReplacedChange()
Change * edbee::TextLineDataManager::createLinesReplacedChange |
( |
int |
lineStart, |
|
|
int |
lineCount, |
|
|
int |
newLineCount |
|
) |
| |
This method creates a new lines replace change.
◆ destroyRange()
void edbee::TextLineDataManager::destroyRange |
( |
int |
line, |
|
|
int |
length |
|
) |
| |
|
protected |
destroys all items in the given range
◆ fieldsPerLine()
int edbee::TextLineDataManager::fieldsPerLine |
( |
| ) |
|
|
inline |
returns the number of items per line
◆ fillWithEmpty()
void edbee::TextLineDataManager::fillWithEmpty |
( |
int |
line, |
|
|
int |
length, |
|
|
int |
newLength |
|
) |
| |
replace the given area with no-data emits a lineDataChanged signal
◆ get()
TextLineData * edbee::TextLineDataManager::get |
( |
int |
line, |
|
|
int |
field |
|
) |
| |
◆ give()
void edbee::TextLineDataManager::give |
( |
int |
line, |
|
|
int |
field, |
|
|
TextLineData * |
dataItem |
|
) |
| |
this method gives the given data at the given line and field
◆ giveList()
This method gives a list to the given line emits a lineDataChanged signal.
◆ length()
int edbee::TextLineDataManager::length |
( |
| ) |
const |
|
inline |
returns the number of items
◆ lineDataChanged
void edbee::TextLineDataManager::lineDataChanged |
( |
int |
line, |
|
|
int |
length, |
|
|
int |
newLength |
|
) |
| |
|
signal |
This signal is emitted if line-data is changed.
◆ replace()
void edbee::TextLineDataManager::replace |
( |
int |
line, |
|
|
int |
length, |
|
|
TextLineDataList ** |
items, |
|
|
int |
newLength |
|
) |
| |
Replace the given items with emits a lineDataChanged signal.
◆ setFieldsPerLine()
void edbee::TextLineDataManager::setFieldsPerLine |
( |
int |
count | ) |
|
This method is called to notify that some lines have been replaced.
- Todo:
: use linedatalist-textchange for storing undo/redo operations
: We need to support destroy line data operation!";
This method can be used to change the number of reserved fields by the document Increasing the amount will result in a realoc Decreasting the fieldcount reults in the lost of the 'old' fields At least the 'PredefinedFieldCount' amont of fields are required
◆ take()
TextLineData * edbee::TextLineDataManager::take |
( |
int |
line, |
|
|
int |
field |
|
) |
| |
◆ takeList()
This method takes the given list (and repalces it with a 0 value)
◆ textLineDataList()
internal method for direct accesss
The documentation for this class was generated from the following files: