Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef TABLE_STATISTICS_H
00031 #define TABLE_STATISTICS_H
00032
00033 #include "Table.h"
00034
00040 class TableStatistics : public Table
00041 {
00042 Q_OBJECT
00043
00044 public:
00046 enum Type { row, column };
00047 enum StatisticsColType {NoStats, Row, Col, Rows, Cols, Mean, StandardDev, StandardError, Variance, Sum, iMax, Max, iMin, Min, N, Median};
00048 TableStatistics(ScriptingEnv *env, ApplicationWindow *parent, Table *base, Type, QList<int> targets);
00050 Type type() const { return d_type; }
00052 Table *base() const { return d_base; }
00053
00054 virtual void save(const QString&, const QString &geometry, bool = false);
00055 void setColumnStatsTypes(const QList<int>& colStatTypes);
00056
00057 public slots:
00059 void update();
00061 void update(Table*, const QString& colName);
00063 void renameCol(const QString&, const QString&);
00065 void removeCol(const QString&);
00066
00067 private slots:
00068 void closedBase();
00069 void removeStatsCol(int);
00070 void moveColumn(int, int, int);
00071 void changeColIndex(int, int);
00072 void insertCols(int start, int count);
00073 void addCol(PlotDesignation pd = Y);
00074
00075 private:
00076 Table *d_base;
00077 Type d_type;
00078 QList<int> d_targets;
00079 QList<int> d_stats_col_type;
00080 };
00081
00082 #endif