kchart
KDChartListTableData Class Reference
Inheritance diagram for KDChartListTableData:

Detailed Description
Definition at line 203 of file 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 |
Member Typedef Documentation
typedef QValueList< KDChartData >::Iterator KDChartListTableData::Iterator |
Constructor & Destructor Documentation
KDChartListTableData::KDChartListTableData | ( | ) | [inline] |
Member Function Documentation
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.
Implements KDChartTableDataBase.
Definition at line 324 of file KDChartListTable.h.
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.
Implements KDChartTableDataBase.
Definition at line 328 of file KDChartListTable.h.
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.
Definition at line 332 of file KDChartListTable.h.
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.
Definition at line 342 of file KDChartListTable.h.
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.
Definition at line 351 of file KDChartListTable.h.
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.
Definition at line 360 of file KDChartListTable.h.
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.
Definition at line 430 of file KDChartListTable.h.
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.
Reimplemented from KDChartTableDataBase.
Definition at line 440 of file KDChartListTable.h.
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.
Definition at line 448 of file KDChartListTable.h.
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.
Reimplemented from KDChartTableDataBase.
Definition at line 452 of file KDChartListTable.h.
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.
Definition at line 460 of file KDChartListTable.h.
The documentation for this class was generated from the following file: