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

This manager manages all line definitions. More...

#include <textlinedata.h>

+ Inheritance diagram for edbee::TextLineDataManager:
+ Collaboration diagram for edbee::TextLineDataManager:

Signals

void lineDataChanged (int line, int length, int newLength)
 This signal is emitted if line-data is changed.
 

Public Member Functions

 TextLineDataManager (int fieldsPerLine=PredefinedFieldCount)
 
virtual ~TextLineDataManager ()
 
void clear ()
 this method clears all field items
 
void give (int line, int field, TextLineData *dataItem)
 this method gives the given data at the given line and field
 
TextLineDatatake (int line, int field)
 
TextLineDataget (int line, int field)
 
int fieldsPerLine ()
 returns the number of items per line
 
void setFieldsPerLine (int count)
 This method is called to notify that some lines have been replaced.
 
int length () const
 returns the number of items
 
TextLineDataListat (int idx) const
 returns the textline data list item
 
ChangecreateLinesReplacedChange (int lineStart, int lineCount, int newLineCount)
 This method creates a new lines replace change.
 
TextLineDataListtakeList (int line)
 This method takes the given list (and repalces it with a 0 value)
 
void giveList (int line, TextLineDataList *list)
 This method gives a list to the given line emits a lineDataChanged signal.
 
void fillWithEmpty (int line, int length, int newLength)
 replace the given area with no-data emits a lineDataChanged signal
 
void replace (int line, int length, TextLineDataList **items, int newLength)
 Replace the given items with emits a lineDataChanged signal.
 
GapVector< TextLineDataList * > * textLineDataList ()
 internal method for direct accesss
 

Protected Member Functions

void destroyRange (int line, int length)
 destroys all items in the given range
 

Detailed Description

This manager manages all line definitions.

Constructor & Destructor Documentation

◆ TextLineDataManager()

edbee::TextLineDataManager::TextLineDataManager ( int fieldsPerLine = PredefinedFieldCount)

◆ ~TextLineDataManager()

edbee::TextLineDataManager::~TextLineDataManager ( )
virtual

Member Function Documentation

◆ at()

TextLineDataList * edbee::TextLineDataManager::at ( int idx) const
inline

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()

void edbee::TextLineDataManager::giveList ( int line,
TextLineDataList * list )

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()

TextLineDataList * edbee::TextLineDataManager::takeList ( int line)

This method takes the given list (and repalces it with a 0 value)

◆ textLineDataList()

GapVector< TextLineDataList * > * edbee::TextLineDataManager::textLineDataList ( )
inline

internal method for direct accesss


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