SciDAVis
1.D4
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
scidavis
src
TableStatistics.h
Go to the documentation of this file.
1
/***************************************************************************
2
File : TableStatistics.h
3
Project : SciDAVis
4
--------------------------------------------------------------------
5
Copyright : (C) 2006 by Knut Franke
6
Email (use @ for *) : knut.franke*gmx.de
7
Description : Table subclass that displays statistics on
8
columns or rows of another table
9
10
***************************************************************************/
11
12
/***************************************************************************
13
* *
14
* This program is free software; you can redistribute it and/or modify *
15
* it under the terms of the GNU General Public License as published by *
16
* the Free Software Foundation; either version 2 of the License, or *
17
* (at your option) any later version. *
18
* *
19
* This program is distributed in the hope that it will be useful, *
20
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
21
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
22
* GNU General Public License for more details. *
23
* *
24
* You should have received a copy of the GNU General Public License *
25
* along with this program; if not, write to the Free Software *
26
* Foundation, Inc., 51 Franklin Street, Fifth Floor, *
27
* Boston, MA 02110-1301 USA *
28
* *
29
***************************************************************************/
30
#ifndef TABLE_STATISTICS_H
31
#define TABLE_STATISTICS_H
32
33
#include "
Table.h
"
34
40
class
TableStatistics
:
public
Table
41
{
42
Q_OBJECT
43
44
public
:
46
enum
Type
{
StatRow
,
StatColumn
};
47
TableStatistics
(
ScriptingEnv
*env, QWidget *parent,
Table
*
base
,
Type
, QList<int> targets);
49
Type
type
()
const
{
return
d_type
; }
51
Table
*
base
()
const
{
return
d_base
; }
52
// saving
53
virtual
QString
saveToString
(
const
QString &geometry);
54
55
public
slots:
57
void
update
(
Table
*,
const
QString&
colName
);
59
void
renameCol
(
const
QString&,
const
QString&);
61
void
removeCol
(
const
QString&);
62
63
protected
:
64
bool
eventFilter
( QObject * watched, QEvent * event);
65
66
private
:
67
Table
*
d_base
;
68
Type
d_type
;
69
QList<int>
d_targets
;
70
};
71
72
#endif
73
Generated by
1.8.1