File indexing completed on 2024-04-21 04:02:02

0001 /*
0002     SPDX-FileCopyrightText: 2006, 2007 Nicolas Roffet <nicolas-kde@roffet.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef KBBLEVELCONFIGURATIONWIDGET_H
0008 #define KBBLEVELCONFIGURATIONWIDGET_H
0009 
0010 
0011 
0012 #include <QWidget>
0013 
0014 
0015 class KBBLevelConfigurationPreview;
0016 class KBBThemeManager;
0017 class KPluralHandlingSpinBox;
0018 
0019 
0020 /**
0021  * @brief Widget to configure the level difficulty
0022  */
0023 class KBBLevelConfigurationWidget : public QWidget
0024 {
0025     Q_OBJECT
0026 
0027     public:
0028         KBBLevelConfigurationWidget(QWidget *parent, int c, int r, int b, KBBThemeManager* themeManager);
0029 
0030         int balls() const;
0031         int columns() const;
0032         int rows() const;
0033 
0034     private Q_SLOTS:
0035         void boxSizeChanged();
0036 
0037     private:
0038         KPluralHandlingSpinBox* kcfg_balls;
0039         KPluralHandlingSpinBox* kcfg_columns;
0040         KPluralHandlingSpinBox* kcfg_rows;
0041 
0042         KBBLevelConfigurationPreview* m_view;
0043 };
0044 
0045 
0046 #endif //KSIMILILEVELCONFIGURATIONWIDGET_H