#include <TableStatistics.h>
Public Types | |
enum | Type { row, column } |
supported statistics types More... | |
Public Slots | |
void | removeCol (const QString &) |
remove statistics of removed columns (to be connected with Table::removedCol) | |
void | renameCol (const QString &, const QString &) |
handle renaming of columns (to be connected with Table::changedColHeader) | |
void | update (Table *, const QString &colName) |
update statistics after a column has changed (to be connected with Table::modifiedData) | |
Public Member Functions | |
Table * | base () const |
return the base table of which statistics are displayed | |
virtual QString | saveToString (const QString &geometry, bool=false) |
TableStatistics (ScriptingEnv *env, QWidget *parent, Table *base, Type, QList< int > targets) | |
Type | type () const |
return the type of statistics | |
Private Attributes | |
Table * | d_base |
QList< int > | d_targets |
Type | d_type |
TableStatistics::TableStatistics | ( | ScriptingEnv * | env, | |
QWidget * | parent, | |||
Table * | base, | |||
Type | t, | |||
QList< int > | targets | |||
) |
Table* TableStatistics::base | ( | ) | const [inline] |
return the base table of which statistics are displayed
void TableStatistics::removeCol | ( | const QString & | col | ) | [slot] |
remove statistics of removed columns (to be connected with Table::removedCol)
void TableStatistics::renameCol | ( | const QString & | from, | |
const QString & | to | |||
) | [slot] |
handle renaming of columns (to be connected with Table::changedColHeader)
QString TableStatistics::saveToString | ( | const QString & | geometry, | |
bool | = false | |||
) | [virtual] |
Reimplemented from Table.
Type TableStatistics::type | ( | ) | const [inline] |
return the type of statistics
void TableStatistics::update | ( | Table * | t, | |
const QString & | colName | |||
) | [slot] |
update statistics after a column has changed (to be connected with Table::modifiedData)
Table* TableStatistics::d_base [private] |
QList<int> TableStatistics::d_targets [private] |
Type TableStatistics::d_type [private] |