#include <KDChartListTable.h>
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 () |
KDChartListTableData & | operator= (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 |
Priv * | sh |
typedef KDChartListTablePrivate KDChartListTableData::Priv [private] |
typedef QValueList< KDChartData >::Iterator KDChartListTableData::Iterator |
Typedefs
typedef QValueList< int >::Iterator KDChartListTableData::RowIterator |
typedef QValueList< int >::ConstIterator KDChartListTableData::ConstRowIterator |
typedef QValueList< int >::Iterator KDChartListTableData::ColIterator |
typedef QValueList< int >::ConstIterator KDChartListTableData::ConstColIterator |
KDChartListTableData::KDChartListTableData | ( | ) | [inline] |
API
KDChartListTableData::KDChartListTableData | ( | uint | _rows, | |
uint | _cols | |||
) | [inline] |
KDChartListTableData::KDChartListTableData | ( | const KDChartListTableData & | _t | ) | [inline] |
virtual KDChartListTableData::~KDChartListTableData | ( | ) | [inline, virtual] |
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.
Implements KDChartTableDataBase.
uint KDChartListTableData::rows | ( | ) | const [inline, virtual] |
Returns the number of rows in the table.
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.
_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. |
Implements KDChartTableDataBase.
virtual bool KDChartListTableData::cellProp | ( | uint | _row, | |
uint | _col, | |||
int & | _prop | |||
) | const [inline, virtual] |
Returns the property set ID stored in a cell.
_prop | the property set ID of the cell to be retrieved. |
Implements KDChartTableDataBase.
virtual void KDChartListTableData::setCell | ( | uint | _row, | |
uint | _col, | |||
const QVariant & | _value1, | |||
const QVariant & | _value2 = QVariant() | |||
) | [inline, virtual] |
Stores data in a cell.
_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 |
Implements KDChartTableDataBase.
virtual void KDChartListTableData::setProp | ( | uint | _row, | |
uint | _col, | |||
int | _propSet = 0 | |||
) | [inline, virtual] |
Specifies the property set ID for a cell.
_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. |
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.
The old content of the table must be preserved (e.g. by copying the data into the cells of the new table).
_row | the new number of rows. | |
_col | the new number of columns. |
Implements KDChartTableDataBase.
void KDChartListTableData::setUsedRows | ( | uint | _rows | ) | [inline, virtual] |
Sets the number of rows in the table that actually contain data.
_rows | the number of rows in the table that actually contain data. |
Reimplemented from KDChartTableDataBase.
uint KDChartListTableData::usedRows | ( | ) | const [inline, virtual] |
Returns the number of rows in the table that actually contain data.
Reimplemented from KDChartTableDataBase.
void KDChartListTableData::setUsedCols | ( | uint | _cols | ) | [inline, virtual] |
Sets the number of cols in the table that actually contain data.
_cols | the number of cols in the table that actually contain data. |
Reimplemented from KDChartTableDataBase.
uint KDChartListTableData::usedCols | ( | ) | const [inline, virtual] |
Returns the number of cols in the table that actually contain data.
Reimplemented from KDChartTableDataBase.
void KDChartListTableData::detach | ( | ) | [inline, private] |
Helpers
uint KDChartListTableData::_usedRows [private] |
Reimplemented from KDChartTableDataBase.
uint KDChartListTableData::_usedCols [private] |
Reimplemented from KDChartTableDataBase.
Priv* KDChartListTableData::sh [private] |
Variables