blob: e697dbcd936cc54cf32c214724c6c99a2d1b789c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
/***************************************************************************
statistics dialog page
-----------------------------------------------------------------------
begin : Thu Sep 21 20:50:53 MET 1999
copyright : (C) 1999-2001 Ewald Arnold <kvoctrain@ewald-arnold.de>
(C) 2001 The KDE-EDU team
(C) 2005 Peter Hedlund <peter.hedlund@kdemail.net>
-----------------------------------------------------------------------
***************************************************************************
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef StatistikPage_included
#define StatistikPage_included
#include "StatistikPageForm.h"
#include <kvoctrainexpr.h>
#include <tqlistview.h>
class kvoctrainDoc;
class GradeCols;
class StatistikPage : public StatistikPageForm
{
Q_OBJECT
TQ_OBJECT
public:
StatistikPage(int col, kvoctrainDoc *doc, TQWidget *parent = NULL, const char *name = NULL);
public slots:
void slotPopupMenu(int row, int col);
void slotRMB( TQListViewItem* Item, const TQPoint & point, int );
protected:
void setupPixmaps();
struct stat_counter
{
stat_counter() {
for (int i = 0; i <= KV_MAX_GRADE; i++)
grade[i] = 0;
num = 0;
}
int grade [KV_MAX_GRADE+1];
int num;
};
int calc_width (struct StatistikPage::stat_counter *gc, int grade, int max_width);
vector<TQPixmap> from_pix, to_pix;
kvoctrainDoc *doc;
vector<stat_counter> fsc;
vector<stat_counter> tsc;
//GradeCols *gcol;
};
#endif // StatistikPage_included
|