• 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
collectionwidget.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 #include <QWidget>
17 
18 #include "collection.h"
19 
20 #include "barwidget.h"
21 
22 
23 // Size constants for the collection widgets
24 extern int COLLWIDTH; // Width in pixels of a collection widget
25 extern int COLLHEIGHT1; // Height in pixels of a collection widget not yet fully learned
26 extern int COLLHEIGHT2; // Height in pixels of a collection widget fully learned
27 
28 
29 class QLabel;
30 class QPushButton;
31 class RemoveButton;
32 class Collection;
33 
34 
35 class CollectionWidget : public QWidget
36 {
37  Q_OBJECT
38 
39 public:
40  CollectionWidget(Collection *collection, WordCount *dueWords,
41  QWidget *parent = 0);
42  ~CollectionWidget();
43 
44  Collection *collection() const;
45  void setCollection(Collection *collection);
46 
47  void updateDue();
48 
49 Q_SIGNALS:
50  void practiceButtonClicked();
51  void removeButtonClicked();
52 
53 private:
54  void setupWidget(WordCount *dueWords);
55  void fillWidget();
56 
57 private:
58  QLabel *m_titleLabel;
59  QLabel *m_thumbnail;
60  BarWidget *m_barWidget;
61  RemoveButton *m_removeButton;
62  QPushButton *m_practiceButton;
63 
64  Collection *m_collection;
65 };
66 
QWidget
CollectionWidget::collection
Collection * collection() const
Definition: collectionwidget.cpp:105
CollectionWidget::setCollection
void setCollection(Collection *collection)
Definition: collectionwidget.cpp:110
CollectionWidget::practiceButtonClicked
void practiceButtonClicked()
BarWidget
Definition: barwidget.h:31
COLLHEIGHT1
int COLLHEIGHT1
Definition: collectionwidget.cpp:35
CollectionWidget::updateDue
void updateDue()
Definition: collectionwidget.cpp:115
Collection
Definition: collection.h:34
WordCount
Definition: utils.h:30
CollectionWidget::CollectionWidget
CollectionWidget(Collection *collection, WordCount *dueWords, QWidget *parent=0)
Definition: collectionwidget.cpp:92
COLLWIDTH
int COLLWIDTH
Definition: collectionwidget.cpp:33
QPushButton
CollectionWidget
Definition: collectionwidget.h:35
collection.h
QLabel
QObject::parent
QObject * parent() const
CollectionWidget::~CollectionWidget
~CollectionWidget()
Definition: collectionwidget.cpp:100
barwidget.h
CollectionWidget::removeButtonClicked
void removeButtonClicked()
COLLHEIGHT2
int COLLHEIGHT2
Definition: collectionwidget.cpp:36
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