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

parley

  • sources
  • kde-4.14
  • kdeedu
  • parley
  • src
  • dashboard
barwidget.h
Go to the documentation of this file.
1 /***************************************************************************
2  Copyright 2014 Andreas Xavier
3  Copyright 2014 Inge Wallin
4  ***************************************************************************/
5 
6 /***************************************************************************
7  * *
8  * This program is free software; you can redistribute it and/or modify *
9  * it under the terms of the GNU General Public License as published by *
10  * the Free Software Foundation; either version 2 of the License, or *
11  * (at your option) any later version. *
12  * *
13  ***************************************************************************/
14 
15 
16 #ifndef BARWIDGET_H
17 #define BARWIDGET_H
18 
19 // Qt
20 #include <QPaintEvent>
21 #include <QWidget>
22 
23 
24 #include "utils.h"
25 #include "collection.h" // For struct WordCount
26 
27 
28 extern ConfidenceColors globalColors;
29 
30 
31 class BarWidget : public QWidget
32 {
33 public:
34  BarWidget(QWidget *parent = 0);
35  BarWidget(WordCount *dueWords, QWidget *parent = 0);
36 
37  void setDue(WordCount &wc);
38 
39 protected:
40  void paintEvent(QPaintEvent *);
41 
42 private:
43  int m_dueWords[8];
44  int m_totalDueWords;
45  int m_percentageCompleted;
46 };
47 
48 
49 #endif // BARWIDGET_H
QWidget
BarWidget
Definition: barwidget.h:31
WordCount
Definition: utils.h:30
utils.h
BarWidget::BarWidget
BarWidget(QWidget *parent=0)
Definition: barwidget.cpp:37
BarWidget::paintEvent
void paintEvent(QPaintEvent *)
Definition: barwidget.cpp:69
globalColors
ConfidenceColors globalColors
Definition: barwidget.cpp:34
BarWidget::setDue
void setDue(WordCount &wc)
Definition: barwidget.cpp:58
ConfidenceColors
Definition: utils.h:50
collection.h
QPaintEvent
QObject::parent
QObject * parent() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:56 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
  • 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