File indexing completed on 2024-05-12 08:00:00

0001 /***************************************************************************
0002     File                 : DifficultyDialog.h
0003     Project              : Knights
0004     Description          : Dialogs for setting custom difficulty
0005     --------------------------------------------------------------------
0006     SPDX-FileCopyrightText: 2016 Alexander Semke (alexander.semke@web.de)
0007 
0008  ***************************************************************************/
0009 
0010 /***************************************************************************
0011  *                                                                         *
0012  *  SPDX-License-Identifier: GPL-2.0-or-later
0013  *                                                                         *
0014  *  This program is distributed in the hope that it will be useful,        *
0015  *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
0016  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
0017  *  GNU General Public License for more details.                           *
0018  *                                                                         *
0019  *   You should have received a copy of the GNU General Public License     *
0020  *   along with this program; if not, write to the Free Software           *
0021  *   Foundation, Inc., 51 Franklin Street, Fifth Floor,                    *
0022  *   Boston, MA  02110-1301  USA                                           *
0023  *                                                                         *
0024  ***************************************************************************/
0025 
0026 #ifndef DIFFICULTYDIALOG_H
0027 #define DIFFICULTYDIALOG_H
0028 
0029 #include <QDialog>
0030 
0031 namespace Ui {
0032 class CustomDifficultyDialog;
0033 }
0034 
0035 class DifficultyDialog : public QDialog {
0036     Q_OBJECT
0037 
0038 public:
0039     explicit DifficultyDialog (QWidget* parent = nullptr, Qt::WindowFlags f = {});
0040     ~DifficultyDialog() override;
0041 
0042     int searchDepth() const;
0043     int memorySize() const;
0044 
0045 private:
0046     Ui::CustomDifficultyDialog* ui;
0047 };
0048 
0049 #endif