KDChartListTableData Class Reference

#include <KDChartListTable.h>

Inheritance diagram for KDChartListTableData:

KDChartTableDataBase QObject
Collaboration diagram for KDChartListTableData:

Collaboration graph
[legend]

List of all members.

Public Types

typedef QValueList
< KDChartData >::Iterator 
Iterator
typedef QValueList
< KDChartData >::ConstIterator 
ConstIterator
typedef QValueList< int >::Iterator RowIterator
typedef QValueList< int >
::ConstIterator 
ConstRowIterator
typedef QValueList< int >::Iterator ColIterator
typedef QValueList< int >
::ConstIterator 
ConstColIterator

Public Member Functions

 KDChartListTableData ()
 KDChartListTableData (uint _rows, uint _cols)
 KDChartListTableData (const KDChartListTableData &_t)
virtual ~KDChartListTableData ()
KDChartListTableDataoperator= (const KDChartListTableData &t)
Iterator begin ()
ConstIterator begin () const
Iterator end ()
ConstIterator end () const
ColIterator colBegin ()
ConstColIterator colBegin () const
ColIterator colEnd ()
ConstColIterator colEnd () const
RowIterator rowBegin ()
ConstRowIterator rowBegin () const
RowIterator rowEnd ()
ConstRowIterator rowEnd () const
bool isEmpty () const
uint cols () const
uint rows () const
virtual bool cellCoord (uint _row, uint _col, QVariant &_value, int coordinate=1) const
virtual bool cellProp (uint _row, uint _col, int &_prop) const
virtual void setCell (uint _row, uint _col, const QVariant &_value1, const QVariant &_value2=QVariant())
virtual void setProp (uint _row, uint _col, int _propSet=0)
void clearCell (uint _row, uint _col)
void clearAllCells ()
int & row (uint _row)
const int & row (uint _row) const
void setRow (uint _row, const int &_v)
int & col (uint _col)
const int & col (uint _col) const
void setCol (uint _col, const int &_v)
void insertColumn (uint _c)
void insertRow (uint _r)
void removeColumn (uint _c)
void removeRow (uint _r)
void expand (uint _rows, uint _cols)
void setUsedRows (uint _rows)
uint usedRows () const
void setUsedCols (uint _cols)
uint usedCols () const

Private Types

typedef KDChartListTablePrivate Priv

Private Member Functions

void detach ()

Private Attributes

uint _usedRows
uint _usedCols
Privsh


Member Typedef Documentation

Typedefs


Constructor & Destructor Documentation

KDChartListTableData::KDChartListTableData (  )  [inline]

API

KDChartListTableData::KDChartListTableData ( uint  _rows,
uint  _cols 
) [inline]

KDChartListTableData::KDChartListTableData ( const KDChartListTableData _t  )  [inline]

virtual KDChartListTableData::~KDChartListTableData (  )  [inline, virtual]


Member Function Documentation

KDChartListTableData& KDChartListTableData::operator= ( const KDChartListTableData t  )  [inline]

Iterator KDChartListTableData::begin ( void   )  [inline]

ConstIterator KDChartListTableData::begin ( void   )  const [inline]

Iterator KDChartListTableData::end ( void   )  [inline]

ConstIterator KDChartListTableData::end ( void   )  const [inline]

ColIterator KDChartListTableData::colBegin (  )  [inline]

ConstColIterator KDChartListTableData::colBegin (  )  const [inline]

ColIterator KDChartListTableData::colEnd (  )  [inline]

ConstColIterator KDChartListTableData::colEnd (  )  const [inline]

RowIterator KDChartListTableData::rowBegin (  )  [inline]

ConstRowIterator KDChartListTableData::rowBegin (  )  const [inline]

RowIterator KDChartListTableData::rowEnd (  )  [inline]

ConstRowIterator KDChartListTableData::rowEnd (  )  const [inline]

bool KDChartListTableData::isEmpty (  )  const [inline]

uint KDChartListTableData::cols (  )  const [inline, virtual]

Returns the number of cols in the table.

Note:
This pure-virtual function has to be implemented by each class derived from KDChartTableDataBase.
Returns:
the number of cols in the table.
See also:
setCols, usedCols, rows

Implements KDChartTableDataBase.

uint KDChartListTableData::rows (  )  const [inline, virtual]

Returns the number of rows in the table.

Note:
This pure-virtual function has to be implemented by each class derived from KDChartTableDataBase.
Returns:
the number of rows in the table.
See also:
setRows, usedRows, cols

Implements KDChartTableDataBase.

virtual bool KDChartListTableData::cellCoord ( uint  _row,
uint  _col,
QVariant &  _value,
int  coordinate = 1 
) const [inline, virtual]

Returns one of the coordinate data value(s) stored in a cell.

Note:
This pure-virtual function has to be implemented by each class derived from KDChartTableDataBase.
Parameters:
_row the row number of the cell to be retrieved.
_col the column number of the cell to be retrieved.
_value the coordinate variable to be filled by this method.
coordinate the number of the coordinate to be retrieved, normally 1 is the Y value and 2 is the X value.
Returns:
TRUE if the row and col are addressing a cell in the table.
See also:
cellCoords, cellProp, cellContent, cellVal, setCell, setProp

Implements KDChartTableDataBase.

virtual bool KDChartListTableData::cellProp ( uint  _row,
uint  _col,
int &  _prop 
) const [inline, virtual]

Returns the property set ID stored in a cell.

Note:
This pure-virtual function has to be implemented by each class derived from KDChartTableDataBase.
Parameters:
_prop the property set ID of the cell to be retrieved.
Returns:
TRUE if the row and col are addressing a cell in the table.
See also:
cellCoord, cellCoords, cellContent, setCell, setProp

Implements KDChartTableDataBase.

virtual void KDChartListTableData::setCell ( uint  _row,
uint  _col,
const QVariant &  _value1,
const QVariant &  _value2 = QVariant() 
) [inline, virtual]

Stores data in a cell.

Note:
This pure-virtual function has to be implemented by each class derived from KDChartTableDataBase.
Parameters:
_row the row number of the cell to store the data object into.
_col the column number of the cell to store the data object into.
_value1 the first value to be stored, normally the Y value, possible types: int, double, QString QString might be used in case you want to use this cell's content for axis label
_value2 the second value to be stored, normally the X value (if any), possible types: int, double, QDateTime
See also:
cellCoords, cellContent, setProp

Implements KDChartTableDataBase.

virtual void KDChartListTableData::setProp ( uint  _row,
uint  _col,
int  _propSet = 0 
) [inline, virtual]

Specifies the property set ID for a cell.

Note:
This pure-virtual function has to be implemented by each class derived from KDChartTableDataBase.
Parameters:
_row the row number of the cell.
_col the column number of the cell.
_propSet the property set ID to be stored for this data cell, defaults to zero for normal data.
See also:
cellProp, cellContent, setCell

Implements KDChartTableDataBase.

void KDChartListTableData::clearCell ( uint  _row,
uint  _col 
) [inline]

void KDChartListTableData::clearAllCells (  )  [inline]

int& KDChartListTableData::row ( uint  _row  )  [inline]

const int& KDChartListTableData::row ( uint  _row  )  const [inline]

void KDChartListTableData::setRow ( uint  _row,
const int &  _v 
) [inline]

int& KDChartListTableData::col ( uint  _col  )  [inline]

const int& KDChartListTableData::col ( uint  _col  )  const [inline]

void KDChartListTableData::setCol ( uint  _col,
const int &  _v 
) [inline]

void KDChartListTableData::insertColumn ( uint  _c  )  [inline]

void KDChartListTableData::insertRow ( uint  _r  )  [inline]

void KDChartListTableData::removeColumn ( uint  _c  )  [inline]

void KDChartListTableData::removeRow ( uint  _r  )  [inline]

void KDChartListTableData::expand ( uint  _rows,
uint  _cols 
) [inline, virtual]

Increases the number of rows (and/or columns, resp.) stored in this table.

Note:
This pure-virtual function has to be implemented by each class derived from KDChartTableDataBase.

The old content of the table must be preserved (e.g. by copying the data into the cells of the new table).

Parameters:
_row the new number of rows.
_col the new number of columns.
See also:
cell

Implements KDChartTableDataBase.

void KDChartListTableData::setUsedRows ( uint  _rows  )  [inline, virtual]

Sets the number of rows in the table that actually contain data.

Note:
You might want to re-implement this function in derived classes, the default implementation just stores the new number of used rows.
Parameters:
_rows the number of rows in the table that actually contain data.
See also:
usedRows, rows, cols

Reimplemented from KDChartTableDataBase.

uint KDChartListTableData::usedRows (  )  const [inline, virtual]

Returns the number of rows in the table that actually contain data.

Returns:
the number of rows in the table that actually contain data.
See also:
setUsedRows, rows, cols

Reimplemented from KDChartTableDataBase.

void KDChartListTableData::setUsedCols ( uint  _cols  )  [inline, virtual]

Sets the number of cols in the table that actually contain data.

Note:
You might want to re-implement this function in derived classes, the default implementation just stores the new number of used cols.
Parameters:
_cols the number of cols in the table that actually contain data.
See also:
usedCols, rows, cols

Reimplemented from KDChartTableDataBase.

uint KDChartListTableData::usedCols (  )  const [inline, virtual]

Returns the number of cols in the table that actually contain data.

Returns:
the number of cols in the table that actually contain data.
See also:
setUsedCols, rows, cols

Reimplemented from KDChartTableDataBase.

void KDChartListTableData::detach (  )  [inline, private]

Helpers


Member Data Documentation

Reimplemented from KDChartTableDataBase.

Reimplemented from KDChartTableDataBase.

Variables


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

Generated on Wed Jan 26 13:06:28 2011 for KMyMoney by  doxygen 1.5.6