|
QtiPlot
0.9.8.2
|
Table that computes and displays statistics on another Table. More...
#include <TableStatistics.h>
Public Types | |
| enum | StatisticsColType { NoStats, Row, Col, Rows, Cols, Mean, StandardDev, StandardError, Variance, Sum, iMax, Max, iMin, Min, N, Median } |
| 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 () |
| update statistics when the user triggers a recaculate action | |
| 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 | |
| QString | baseName () |
| virtual void | save (const QString &, const QString &geometry, bool=false) |
| void | setBase (Table *t) |
| void | setBaseName (const QString &name) |
| void | setColumnStatsTypes (const QList< int > &colStatTypes) |
| void | setRange (int start, int end) |
| TableStatistics (ScriptingEnv *env, ApplicationWindow *parent, Table *base, Type, QList< int > targets, int start=0, int end=-1) | |
| Type | type () const |
| return the type of statistics | |
Private Slots | |
| void | addCol (PlotDesignation pd=Y) |
| void | changeColIndex (int, int) |
| void | closedBase () |
| void | insertCols (int start, int count) |
| void | moveColumn (int, int, int) |
| void | removeStatsCol (int) |
Private Attributes | |
| Table * | d_base |
| QString | d_base_name |
| int | d_end |
| int | d_start |
| QList< int > | d_stats_col_type |
| QList< int > | d_targets |
| Type | d_type |
Table that computes and displays statistics on another Table.
Make it possible to add new columns/rows to be monitored.
| TableStatistics::TableStatistics | ( | ScriptingEnv * | env, |
| ApplicationWindow * | parent, | ||
| Table * | base, | ||
| Type | t, | ||
| QList< int > | targets, | ||
| int | start = 0, |
||
| int | end = -1 |
||
| ) |
References MdiSubWindow::Both, changeColIndex(), Col, Table::colIndexChanged(), Cols, column, Table::comments, d_start, d_stats_col_type, Table::d_table, d_targets, d_type, iMax, iMin, Max, Mean, Median, Min, N, Table::numRows(), Table::removedCol(), removeStatsCol(), Table::resizeCols(), Table::resizeRows(), row, Row, Rows, setBase(), MdiSubWindow::setCaptionPolicy(), Table::setColComments(), Table::setColPlotDesignation(), Table::setColumnType(), Table::setHeader(), Table::setText(), StandardDev, StandardError, Sum, Table::Text, Variance, Table::X, and Table::yErr.
| void TableStatistics::addCol | ( | PlotDesignation | pd = Y | ) | [private, virtual, slot] |
Reimplemented from Table.
References d_stats_col_type, and NoStats.
| Table* TableStatistics::base | ( | ) | const [inline] |
return the base table of which statistics are displayed
References d_base.
Referenced by ApplicationWindow::openProject().
| QString TableStatistics::baseName | ( | ) | [inline] |
References d_base_name.
Referenced by ApplicationWindow::openProject().
| void TableStatistics::changeColIndex | ( | int | fromIndex, |
| int | toIndex | ||
| ) | [private, slot] |
References d_stats_col_type.
Referenced by TableStatistics().
| void TableStatistics::closedBase | ( | ) | [private, slot] |
| void TableStatistics::insertCols | ( | int | start, |
| int | count | ||
| ) | [private, virtual, slot] |
Reimplemented from Table.
References d_stats_col_type, and NoStats.
| void TableStatistics::moveColumn | ( | int | , |
| int | fromIndex, | ||
| int | toIndex | ||
| ) | [private, virtual, slot] |
Reimplemented from Table.
References d_stats_col_type.
| void TableStatistics::removeCol | ( | const QString & | col | ) | [slot] |
remove statistics of removed columns (to be connected with Table::removedCol)
References d_base, Table::d_table, d_targets, d_type, row, Table::text(), and update().
| void TableStatistics::removeStatsCol | ( | int | col | ) | [private, slot] |
References d_stats_col_type.
Referenced by TableStatistics().
| void TableStatistics::renameCol | ( | const QString & | from, |
| const QString & | to | ||
| ) | [slot] |
handle renaming of columns (to be connected with Table::changedColHeader)
References d_base, d_targets, d_type, row, Table::setText(), and Table::text().
Referenced by setBase().
| void TableStatistics::save | ( | const QString & | fn, |
| const QString & | geometry, | ||
| bool | = false |
||
| ) | [virtual] |
Reimplemented from Table.
References MdiSubWindow::birthDate(), MdiSubWindow::captionPolicy(), column, d_base, d_end, d_start, d_stats_col_type, d_targets, d_type, Table::numCols(), Table::numRows(), row, Table::saveColumnTypes(), Table::saveColumnWidths(), Table::saveCommands(), Table::saveComments(), Table::saveHeader(), Table::saveHiddenColumnsInfo(), Table::saveReadOnlyInfo(), and MdiSubWindow::windowLabel().
| void TableStatistics::setBase | ( | Table * | t | ) |
References Table::changedColHeader(), closedBase(), Table::colLabel(), Table::colName(), column, d_base, d_base_name, d_end, d_targets, d_type, Table::modifiedData(), Table::numCols(), Table::numRows(), Table::removeCol(), Table::removedCol(), renameCol(), row, MdiSubWindow::setName(), Table::setText(), MdiSubWindow::setWindowLabel(), and update().
Referenced by ApplicationWindow::openProject(), and TableStatistics().
| void TableStatistics::setBaseName | ( | const QString & | name | ) | [inline] |
References d_base_name, and MdiSubWindow::name().
Referenced by ApplicationWindow::openTableStatistics().
| void TableStatistics::setColumnStatsTypes | ( | const QList< int > & | colStatTypes | ) |
References d_stats_col_type, and Table::setNumCols().
Referenced by ApplicationWindow::openTableStatistics().
| void TableStatistics::setRange | ( | int | start, |
| int | end | ||
| ) |
References d_end, and d_start.
Referenced by ApplicationWindow::openTableStatistics().
| Type TableStatistics::type | ( | ) | const [inline] |
return the type of statistics
References d_type.
| void TableStatistics::update | ( | ) | [slot] |
update statistics when the user triggers a recaculate action
References Table::colName(), d_base, and Table::numCols().
Referenced by removeCol(), and setBase().
| void TableStatistics::update | ( | Table * | t, |
| const QString & | colName | ||
| ) | [slot] |
update statistics after a column has changed (to be connected with Table::modifiedData)
References Table::cell(), Col, Table::colIndex(), Table::colLabel(), Table::colName(), Cols, column, Table::columnType(), d_base, d_end, d_start, d_stats_col_type, d_targets, d_type, iMax, iMin, Table::isColumnHidden(), Max, Mean, Median, min, Min, Table::modifiedData(), N, Table::numCols(), Table::Numeric, row, Rows, Table::setCell(), Table::setText(), StandardDev, StandardError, Sum, Table::text(), and Variance.
Table* TableStatistics::d_base [private] |
Referenced by base(), closedBase(), removeCol(), renameCol(), save(), setBase(), and update().
QString TableStatistics::d_base_name [private] |
Referenced by baseName(), setBase(), and setBaseName().
int TableStatistics::d_end [private] |
Referenced by save(), setBase(), setRange(), and update().
int TableStatistics::d_start [private] |
Referenced by save(), setRange(), TableStatistics(), and update().
QList<int> TableStatistics::d_stats_col_type [private] |
Referenced by addCol(), changeColIndex(), insertCols(), moveColumn(), removeStatsCol(), save(), setColumnStatsTypes(), TableStatistics(), and update().
QList<int> TableStatistics::d_targets [private] |
Referenced by removeCol(), renameCol(), save(), setBase(), TableStatistics(), and update().
Type TableStatistics::d_type [private] |
Referenced by removeCol(), renameCol(), save(), setBase(), TableStatistics(), type(), and update().
1.7.6.1