• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kblackbox

kbblevelconfigurationpreview.h

Go to the documentation of this file.
00001 /*
00002 Copyright (c) 2006, 2007, Nicolas Roffet, <nicolas-kde@roffet.com>
00003 
00004 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.
00005 
00006 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.
00007 
00008 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
00009 */
00010 
00011 #ifndef KBBLEVELCONFIGURATIONPREVIEW_H
00012 #define KBBLEVELCONFIGURATIONPREVIEW_H
00013 
00014 
00015 
00016 #include <QGraphicsView>
00017 #include <QList>
00018 
00019 
00020 class KBBGraphicsItem;
00021 class KBBGraphicsItemBlackBox;
00022 class KBBThemeManager;
00023 
00024 
00025 
00029 class KBBLevelConfigurationPreview : public QGraphicsView
00030 {
00031     Q_OBJECT
00032 
00033     public:
00034         KBBLevelConfigurationPreview(QWidget *parent, KBBThemeManager* themeManager);
00035 
00036 
00037     public slots:
00038         void preview(int balls, int columns, int rows);
00039 
00040 
00041     protected:
00042         void drawBackground(QPainter* painter, const QRectF&);
00043 
00044 
00045     private:
00046         QGraphicsView* m_view;
00047         QList<KBBGraphicsItem*> m_balls;
00048         KBBGraphicsItemBlackBox* m_blackbox;
00049         KBBThemeManager* m_themeManager;
00050 
00051 
00052     private slots:
00053         void resizeEvent(QResizeEvent*);
00054 };
00055 
00056 
00057 #endif //KSIMILILEVELCONFIGURATIONPREVIEW_H

kblackbox

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

API Reference

Skip menu "API Reference"
  • kblackbox
  • kgoldrunner
  • kmahjongg
  • ksquares
  • libkdegames
  •   highscore
  •   kgame
  •   kggzgames
  •   kggzmod
  •   kggznet
  • libkmahjongg
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal