25 #ifndef ZBLTABLEDATA_H 26 #define ZBLTABLEDATA_H 87 void putValue(
int role,
int row,
int col,
const QVariant value);
97 QVariant
getValue(
int role,
int row,
int col)
const;
161 bool hasCell(
int role,
int row,
int col)
const;
172 bool hasCell(
int row,
int col)
const;
290 QList<int>
roles()
const;
311 QHash<int, QByteArray> roleNames()
const;
343 bool caseSensitive =
true,
344 bool forwardDirection =
true,
345 bool keySearch =
false)
const;
348 bool copyColumn(
int fromColumn,
int toColumn);
377 void pushRow(zRoleRow data,
bool front=
false);
416 #endif // ZBLTABLEDATA_H void prependRows(zRoleRowList data)
Prepends a list of rows of role values to the table data.
void clearRoles()
Removes all roles and data rows from the data table.
int roleCount() const
Determines the current number of roles in the data table.
void putTableColumnRows(QVariant rows, int startRow, int col)
Replaces the current value for a set of rows for a single model column.
QVariant getTableColumnRows(QList< int > roles, int startRow, int col, int rowCount) const
Obtain data values for a set of rows from a single model column.
QMap< int, zDataRow > zRoleRow
zRoleTable m_roles
A three dimensional array of child cell data. Dimensions of the array are role, row and column...
void dumpData() const
Prints diagnostic information about the state of the contained data to debug output.
void prependRow(zRoleRow data)
Prepends a row of role values to the table data.
QMap< int, QVariant > zCellValue
bool addRole(int role)
Adds the specified role to the data table. The table must not contain data rows when calling this met...
void removeRows(int row, int count)
Removes one or more rows from the table.
zFlagsTable m_childFlags
A two dimensional array of child cell flags. Dimensions of the array are row and column. TBD: Sorry, not yet implemented!
bool hasCell(int role, int row, int col) const
Determines if the specified cell and role combination exists in the data table.
QMap< int, QVariant > zTableRow
int findNextItemRow(int startRow, const QString &text, int column=0, bool caseSensitive=true, bool forwardDirection=true, bool keySearch=false) const
int columnCount() const
Determines the number of columns in the data table.
bool hasRole(int role) const
Determines if a specified role already exists in the data table.
A table data object contains the role data and model item flags for a 2 dimensional array of model da...
QList< QString > zColumnNames
void clearData()
Removes all rows from the data table.
QList< zTableRow > zTableRowList
QList< QList< int > > zFlagsTable
QList< int > roles() const
Determines which roles are in the data set.
bool copyColumn(int fromColumn, int toColumn)
QList< zRoleRow > zRoleRowList
QVariant getValue(int role, int row, int col) const
Obtains the value of the specified cell and role. This is a blocking call.
void pushRow(zRoleRow data, bool front=false)
void appendRow(zRoleRow data)
Appends a row of role values to the table data.
int m_rowCount
The number of rows in the child data table.
void setColumnCount(int count)
Sets the number of columns in the data table. This method fails if the data table contains rows...
void putValue(int role, int row, int col, const QVariant value)
Replaces the current value of a cell's role. This is a blocking call. with the specified value...
QList< QVariant > zDataRow
QList< zDataRow > zDataTable
void appendRows(zRoleRowList data)
Appends a list of rows of role values to the table data.
int m_columnCount
The number of columns in the child data table.
QMap< int, zDataTable > zRoleTable
int rowCount() const
Determines the number of rows in the data table.