KDChartVectorTableData Class Reference

#include <KDChartVectorTable.h>

Inheritance diagram for KDChartVectorTableData:

KDChartTableDataBase QObject
Collaboration diagram for KDChartVectorTableData:

Collaboration graph
[legend]

List of all members.

Public Types

typedef QValueVector
< KDChartData >::iterator 
Iterator
typedef QValueVector
< KDChartData >
::const_iterator 
ConstIterator
typedef QValueVector< int >
::iterator 
RowIterator
typedef QValueVector< int >
::const_iterator 
ConstRowIterator
typedef QValueVector< int >
::iterator 
ColIterator
typedef QValueVector< int >
::const_iterator 
ConstColIterator

Public Slots

Iterator begin ()
ConstIterator begin () const
Iterator end ()
ConstIterator end () 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 ()
void expand (uint _rows, uint _cols)
void setUsedRows (uint _rows)
uint usedRows () const
void setUsedCols (uint _cols)
uint usedCols () const

Public Member Functions

 KDChartVectorTableData ()
 KDChartVectorTableData (uint _rows, uint _cols)
 KDChartVectorTableData (const KDChartVectorTableData &_t)
virtual ~KDChartVectorTableData ()
KDChartVectorTableDataoperator= (const KDChartVectorTableData &t)

Private Types

typedef KDChartVectorTablePrivate Priv

Private Member Functions

void detach ()

Private Attributes

uint _usedRows
uint _usedCols
Privsh


Member Typedef Documentation

typedef QValueVector<KDChartData>::iterator KDChartVectorTableData::Iterator

Typedefs

typedef QValueVector<KDChartData>::const_iterator KDChartVectorTableData::ConstIterator

typedef QValueVector<int>::iterator KDChartVectorTableData::RowIterator

typedef QValueVector<int>::const_iterator KDChartVectorTableData::ConstRowIterator

typedef QValueVector<int>::iterator KDChartVectorTableData::ColIterator

typedef QValueVector<int>::const_iterator KDChartVectorTableData::ConstColIterator


Constructor & Destructor Documentation

KDChartVectorTableData::KDChartVectorTableData (  )  [inline]

API

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

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

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


Member Function Documentation

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

Iterator KDChartVectorTableData::begin ( void   )  [inline, slot]

ConstIterator KDChartVectorTableData::begin ( void   )  const [inline, slot]

Iterator KDChartVectorTableData::end ( void   )  [inline, slot]

ConstIterator KDChartVectorTableData::end ( void   )  const [inline, slot]

bool KDChartVectorTableData::isEmpty (  )  const [inline, slot]

uint KDChartVectorTableData::cols (  )  const [inline, virtual, slot]

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 KDChartVectorTableData::rows (  )  const [inline, virtual, slot]

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 KDChartVectorTableData::cellCoord ( uint  _row,
uint  _col,
QVariant &  _value,
int  coordinate = 1 
) const [inline, virtual, slot]

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 KDChartVectorTableData::cellProp ( uint  _row,
uint  _col,
int &  _prop 
) const [inline, virtual, slot]

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 KDChartVectorTableData::setCell ( uint  _row,
uint  _col,
const QVariant &  _value1,
const QVariant &  _value2 = QVariant() 
) [inline, virtual, slot]

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 KDChartVectorTableData::setProp ( uint  _row,
uint  _col,
int  _propSet = 0 
) [inline, virtual, slot]

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 KDChartVectorTableData::clearCell ( uint  _row,
uint  _col 
) [inline, slot]

void KDChartVectorTableData::clearAllCells (  )  [inline, slot]

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

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 KDChartVectorTableData::setUsedRows ( uint  _rows  )  [inline, virtual, slot]

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 KDChartVectorTableData::usedRows (  )  const [inline, virtual, slot]

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 KDChartVectorTableData::setUsedCols ( uint  _cols  )  [inline, virtual, slot]

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 KDChartVectorTableData::usedCols (  )  const [inline, virtual, slot]

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 KDChartVectorTableData::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:53 2011 for KMyMoney by  doxygen 1.5.6