1/*
2Copyright (c) 2006, 2007, Nicolas Roffet, <nicolas-kde@roffet.com>
3
4This 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
6This 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
8You 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 KBBLEVELCONFIGURATIONWIDGET_H
12#define KBBLEVELCONFIGURATIONWIDGET_H
13
14
15
16class KIntSpinBox;
17#include <QWidget>
18
19
20class KBBLevelConfigurationPreview;
21class KBBThemeManager;
22
23
24
25/**
26 * @brief Widget to configure the level difficulty
27 */
28class KBBLevelConfigurationWidget : public QWidget
29{
30 Q_OBJECT
31
32 public:
33 KBBLevelConfigurationWidget(QWidget *parent, int c, int r, int b, KBBThemeManager* themeManager);
34
35 int balls() const;
36 int columns() const;
37 int rows() const;
38
39 private slots:
40 void boxSizeChanged();
41
42 private:
43 KIntSpinBox* kcfg_balls;
44 KIntSpinBox* kcfg_columns;
45 KIntSpinBox* kcfg_rows;
46
47 KBBLevelConfigurationPreview* m_view;
48};
49
50
51#endif //KSIMILILEVELCONFIGURATIONWIDGET_H
52