TableStatistics Class Reference

Table that computes and displays statistics on another Table. More...

#include <TableStatistics.h>

Inheritance diagram for TableStatistics:
Table MdiSubWindow scripted

List of all members.

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)
void update ()
 update statistics when the user triggers a recaculate action

Public Member Functions

Tablebase () const
 return the base table of which statistics are displayed
virtual void save (const QString &, const QString &geometry, bool=false)
 TableStatistics (ScriptingEnv *env, ApplicationWindow *parent, Table *base, Type, QList< int > targets)
Type type () const
 return the type of statistics

Private Slots

void closedBase ()

Private Attributes

Tabled_base
QList< int > d_targets
Type d_type

Detailed Description

Table that computes and displays statistics on another Table.

Future Plans

Make it possible to add new columns/rows to be monitored.


Member Enumeration Documentation

supported statistics types

Enumerator:
row 
column 

Constructor & Destructor Documentation

TableStatistics::TableStatistics ( ScriptingEnv env,
ApplicationWindow parent,
Table base,
Type  t,
QList< int >  targets 
)

Member Function Documentation

Table* TableStatistics::base (  )  const [inline]

return the base table of which statistics are displayed

References d_base.

void TableStatistics::closedBase (  )  [private, slot]

References d_base.

Referenced by TableStatistics().

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::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 TableStatistics().

void TableStatistics::save ( const QString &  fn,
const QString &  geometry,
bool  = false 
) [virtual]
Type TableStatistics::type (  )  const [inline]

return the type of statistics

References d_type.

void TableStatistics::update ( Table t,
const QString &  colName 
) [slot]
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 TableStatistics().


Member Data Documentation

QList<int> TableStatistics::d_targets [private]

The documentation for this class was generated from the following files:

Generated by  doxygen 1.6.2