You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdeedu/kvoctrain/kvoctrain/statistik-dialogs/StatistikPage.h

76 lines
2.1 KiB

/***************************************************************************
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
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