diff options
Diffstat (limited to 'kvoctrain/kvoctrain/statistik-dialogs/StatistikPage.h')
-rw-r--r-- | kvoctrain/kvoctrain/statistik-dialogs/StatistikPage.h | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/kvoctrain/kvoctrain/statistik-dialogs/StatistikPage.h b/kvoctrain/kvoctrain/statistik-dialogs/StatistikPage.h new file mode 100644 index 00000000..a5a7d166 --- /dev/null +++ b/kvoctrain/kvoctrain/statistik-dialogs/StatistikPage.h @@ -0,0 +1,74 @@ +/*************************************************************************** + + 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 <qlistview.h> + +class kvoctrainDoc; +class GradeCols; + +class StatistikPage : public StatistikPageForm +{ + Q_OBJECT + +public: + StatistikPage(int col, kvoctrainDoc *doc, QWidget *parent = NULL, const char *name = NULL); + +public slots: + void slotPopupMenu(int row, int col); + void slotRMB( QListViewItem* Item, const QPoint & 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<QPixmap> from_pix, to_pix; + kvoctrainDoc *doc; + + vector<stat_counter> fsc; + vector<stat_counter> tsc; + //GradeCols *gcol; +}; + +#endif // StatistikPage_included |