• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

parley

  • sources
  • kde-4.12
  • kdeedu
  • parley
  • src
  • statistics
statisticsmodel.h
Go to the documentation of this file.
1 /***************************************************************************
2 
3  Copyright 2008 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
4 
5  ***************************************************************************/
6 
7 /***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 #ifndef STATISTICSMODEL_H
17 #define STATISTICSMODEL_H
18 
19 #include "vocabulary/containermodel.h"
20 
21 using namespace Editor;
22 
23 class StatisticsModel : public ContainerModel
24 {
25  Q_OBJECT
26 
27 public:
28  enum GradeRoles {
29  TotalPercent = Qt::UserRole,
30  TotalCount,
31  Grade0,
32  Grade1,
33  Grade2,
34  Grade3,
35  Grade4,
36  Grade5,
37  Grade6,
38  Grade7
39  };
40 
41  explicit StatisticsModel(QObject *parent = 0);
42 
43  virtual QVariant headerData(int section, Qt::Orientation orientation,
44  int role = Qt::DisplayRole) const;
45  virtual QVariant data(const QModelIndex &index, int role) const;
46  virtual Qt::ItemFlags flags(const QModelIndex &index) const;
47  virtual int columnCount(const QModelIndex &parent = QModelIndex()) const;
48 
49 protected:
50  KEduVocContainer * rootContainer() const;
51 };
52 
53 
54 #endif
StatisticsModel::Grade2
Definition: statisticsmodel.h:33
StatisticsModel::Grade5
Definition: statisticsmodel.h:36
StatisticsModel::TotalCount
Definition: statisticsmodel.h:30
QObject
StatisticsModel::Grade6
Definition: statisticsmodel.h:37
containermodel.h
Editor::ContainerModel
Model for the tree of containers (lessons, word types).
Definition: containermodel.h:33
StatisticsModel::Grade3
Definition: statisticsmodel.h:34
StatisticsModel::Grade0
Definition: statisticsmodel.h:31
StatisticsModel
Definition: statisticsmodel.h:23
StatisticsModel::Grade4
Definition: statisticsmodel.h:35
StatisticsModel::GradeRoles
GradeRoles
Definition: statisticsmodel.h:28
StatisticsModel::Grade1
Definition: statisticsmodel.h:32
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

parley

Skip menu "parley"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal