WARNING: USE THIS SOFTWARE AT YOUR OWN RISK! THIS IS EXPERIMENTAL SOFTWARE NOT INTENDED FOR PRODUCTION USE! Zuble is currently an early stage prototype. As such Zuble is minimally tested and inherently unstable. It is provided for experimental, development, and demonstration purposes only. | Zuble QML Types | Zuble C++ Classes | Zuble Overview |
Zuble
0.1
Zuble Framework C++/QML extension API
|
A table cell object contains the data for its child cells and maintains the cell's positional relationship in the data model's N-dimensional table cell hierarchy. More...
#include <ZblTableCell.h>
Public Types | |
typedef QList< QList< ZblTableCell * > > | zTableCells |
Public Member Functions | |
ZblTableCell () | |
Constructs a ZblTableCell object encapsulating a default constructed ZblTableData object. More... | |
ZblTableCell (ZblTableData *data) | |
Constructs a ZblTableCell object encapsulating the specified ZblTableData object. More... | |
~ZblTableCell () | |
Destroys encapsulated child data and cell objects if they exist. More... | |
ZblTableCell * | getCell (int row, int col) const |
void | putCell (int row, int col, ZblTableCell *cell) |
bool | hasCell (int row, int col) const |
bool | hasChildCells () const |
ZblTableData & | data () |
const ZblTableData & | constData () const |
void | setData (ZblTableData *data) |
Private Attributes | |
ZblTableCell * | m_parent |
Parent cell of this cell. All cells have a parent except the top cell in the table cell hierarchy. NULL if this is the top cell. More... | |
zTableCells * | m_childCells |
A two dimensional array of child cells. NULL if this cell has no grandchildren. More... | |
ZblTableData * | m_childData |
A three dimensional array of child cell data. Dimensions of the array are role, row and column. More... | |
A table cell object contains the data for its child cells and maintains the cell's positional relationship in the data model's N-dimensional table cell hierarchy.
A cell object contains an optional table of child cell objects only if its child cells have children.
Definition at line 47 of file ZblTableCell.h.
typedef QList<QList<ZblTableCell*> > Zbl::ZblTableCell::zTableCells |
Definition at line 51 of file ZblTableCell.h.
Zbl::ZblTableCell::ZblTableCell | ( | ) |
Constructs a ZblTableCell object encapsulating a default constructed ZblTableData object.
Definition at line 32 of file ZblTableCell.cpp.
Zbl::ZblTableCell::ZblTableCell | ( | ZblTableData * | data | ) |
Constructs a ZblTableCell object encapsulating the specified ZblTableData object.
This object takes ownership of the specified data object. It should not be deleted by the caller.
data | the data object this table cell will encapsulate |
Definition at line 40 of file ZblTableCell.cpp.
Zbl::ZblTableCell::~ZblTableCell | ( | ) |
Destroys encapsulated child data and cell objects if they exist.
Definition at line 48 of file ZblTableCell.cpp.
const ZblTableData & Zbl::ZblTableCell::constData | ( | ) | const |
Definition at line 62 of file ZblTableCell.cpp.
Referenced by Zbl::ZblDataModel::columnCount(), Zbl::ZblDataModel::data(), Zbl::ZblDataModel::dumpModelData(), Zbl::ZblDataModel::findNextItemRow(), Zbl::ZblDataModel::getTableColumnRows(), Zbl::ZblDataModel::hasRole(), Zbl::ZblDataModel::roleCount(), Zbl::ZblDataModel::roles(), and Zbl::ZblDataModel::rowCount().
ZblTableData & Zbl::ZblTableCell::data | ( | ) |
Definition at line 57 of file ZblTableCell.cpp.
Referenced by Zbl::ZblDataModel::addRole(), Zbl::ZblDataModel::appendRow(), Zbl::ZblDataModel::appendRows(), Zbl::ZblDataModel::clearData(), Zbl::ZblDataModel::copyColumn(), Zbl::ZblDataModel::prependRow(), Zbl::ZblDataModel::prependRows(), Zbl::ZblDataModel::putTableColumnRows(), Zbl::ZblDataModel::removeRows(), Zbl::ZblDataModel::setColumnCount(), Zbl::ZblDataModel::setData(), and setData().
ZblTableCell * Zbl::ZblTableCell::getCell | ( | int | row, |
int | col | ||
) | const |
Definition at line 82 of file ZblTableCell.cpp.
bool Zbl::ZblTableCell::hasCell | ( | int | row, |
int | col | ||
) | const |
Definition at line 100 of file ZblTableCell.cpp.
bool Zbl::ZblTableCell::hasChildCells | ( | ) | const |
Definition at line 76 of file ZblTableCell.cpp.
void Zbl::ZblTableCell::putCell | ( | int | row, |
int | col, | ||
ZblTableCell * | cell | ||
) |
Definition at line 90 of file ZblTableCell.cpp.
void Zbl::ZblTableCell::setData | ( | ZblTableData * | data | ) |
Definition at line 68 of file ZblTableCell.cpp.
|
private |
A two dimensional array of child cells. NULL if this cell has no grandchildren.
Definition at line 106 of file ZblTableCell.h.
Referenced by getCell(), hasChildCells(), putCell(), and ~ZblTableCell().
|
private |
A three dimensional array of child cell data. Dimensions of the array are role, row and column.
Data is arranged as a map of roles, each role consisting of a two dimensional array of variants.
Definition at line 116 of file ZblTableCell.h.
Referenced by constData(), data(), hasCell(), setData(), and ~ZblTableCell().
|
private |
Parent cell of this cell. All cells have a parent except the top cell in the table cell hierarchy. NULL if this is the top cell.
Definition at line 99 of file ZblTableCell.h.
Zuble documentation copyright © 2019 Bob Dinitto. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Zuble is a derivative work of Qt version 5. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.