kchart
KDChartVectorTableData Class Reference
Inheritance diagram for KDChartVectorTableData:

Detailed Description
Definition at line 114 of file KDChartVectorTable.h.
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 () |
KDChartVectorTableData & | operator= (const KDChartVectorTableData &t) |
Member Typedef Documentation
typedef QValueVector<KDChartData>::iterator KDChartVectorTableData::Iterator |
Constructor & Destructor Documentation
KDChartVectorTableData::KDChartVectorTableData | ( | ) | [inline] |
Member Function Documentation
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.
Implements KDChartTableDataBase.
Definition at line 205 of file KDChartVectorTable.h.
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.
Implements KDChartTableDataBase.
Definition at line 209 of file KDChartVectorTable.h.
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.
Definition at line 222 of file KDChartVectorTable.h.
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.
Definition at line 232 of file KDChartVectorTable.h.
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.
Definition at line 241 of file KDChartVectorTable.h.
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.
Definition at line 249 of file KDChartVectorTable.h.
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.
Definition at line 265 of file KDChartVectorTable.h.
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.
Reimplemented from KDChartTableDataBase.
Definition at line 275 of file KDChartVectorTable.h.
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.
Definition at line 283 of file KDChartVectorTable.h.
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.
Reimplemented from KDChartTableDataBase.
Definition at line 287 of file KDChartVectorTable.h.
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.
Definition at line 295 of file KDChartVectorTable.h.
The documentation for this class was generated from the following file: