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

kblackbox

  • sources
  • kde-4.14
  • kdegames
  • kblackbox
kbblevelconfigurationpreview.h
Go to the documentation of this file.
1 /*
2 Copyright (c) 2006, 2007, Nicolas Roffet, <nicolas-kde@roffet.com>
3 
4 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.
5 
6 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
7 
8 You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
9 */
10 
11 #ifndef KBBLEVELCONFIGURATIONPREVIEW_H
12 #define KBBLEVELCONFIGURATIONPREVIEW_H
13 
14 
15 
16 #include <QGraphicsView>
17 #include <QList>
18 
19 
20 class KBBGraphicsItem;
21 class KBBGraphicsItemBlackBox;
22 class KBBThemeManager;
23 
24 
25 
29 class KBBLevelConfigurationPreview : public QGraphicsView
30 {
31  Q_OBJECT
32 
33  public:
34  KBBLevelConfigurationPreview(QWidget *parent, KBBThemeManager* themeManager);
35 
36 
37  public slots:
38  void preview(int balls, int columns, int rows);
39 
40 
41  protected:
42  void drawBackground(QPainter* painter, const QRectF&);
43 
44 
45  private:
46  QGraphicsView* m_view;
47  QList<KBBGraphicsItem*> m_balls;
48  KBBGraphicsItemBlackBox* m_blackbox;
49  KBBThemeManager* m_themeManager;
50 
51 
52  private slots:
53  void resizeEvent(QResizeEvent*);
54 };
55 
56 
57 #endif //KSIMILILEVELCONFIGURATIONPREVIEW_H
QResizeEvent
QWidget
KBBGraphicsItem
Graphic item of the scalable graphic widget.
Definition: kbbgraphicsitem.h:44
KBBGraphicsItemBlackBox
The black box in the scalable graphic widget.
Definition: kbbgraphicsitemblackbox.h:52
QPainter
QList< KBBGraphicsItem * >
KBBLevelConfigurationPreview::KBBLevelConfigurationPreview
KBBLevelConfigurationPreview(QWidget *parent, KBBThemeManager *themeManager)
Definition: kbblevelconfigurationpreview.cpp:28
QRectF
KBBLevelConfigurationPreview::drawBackground
void drawBackground(QPainter *painter, const QRectF &)
Definition: kbblevelconfigurationpreview.cpp:68
KBBThemeManager
Theme manager of the scalable graphic widget.
Definition: kbbthememanager.h:51
QObject::parent
QObject * parent() const
KBBLevelConfigurationPreview
Widget with the preview of the field in the configuration widget.
Definition: kbblevelconfigurationpreview.h:29
KBBLevelConfigurationPreview::preview
void preview(int balls, int columns, int rows)
Definition: kbblevelconfigurationpreview.cpp:39
QGraphicsView
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kblackbox

Skip menu "kblackbox"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdegames API Reference

Skip menu "kdegames API Reference"
  • granatier
  • kapman
  • kblackbox
  • kgoldrunner
  • kigo
  • kmahjongg
  • KShisen
  • ksquares
  • libkdegames
  •   highscore
  •   libkdegamesprivate
  •     kgame
  • libkmahjongg
  • palapeli
  •   libpala

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