File indexing completed on 2024-04-21 04:01:59

0001 /*
0002     This file is part of the KDE project "KAtomic"
0003 
0004     SPDX-FileCopyrightText: 2006-2009 Dmitry Suzdalev <dimsuz@gmail.com>
0005 
0006     SPDX-License-Identifier: GPL-2.0-or-later
0007 */
0008 
0009 #ifndef CHOOSE_LEVEL_SET_DIALOG_H
0010 #define CHOOSE_LEVEL_SET_DIALOG_H
0011 
0012 #include "ui_levelsetwidget.h"
0013 
0014 #include <QDialog>
0015 
0016 class QDialogButtonBox;
0017 
0018 class ChooseLevelSetDialog : public QDialog
0019 {
0020     Q_OBJECT
0021 
0022 public:
0023     explicit ChooseLevelSetDialog(QWidget* parent=nullptr);
0024 
0025     void setCurrentLevelSet(const QString& levelSetName);
0026     void loadData();
0027 
0028 Q_SIGNALS:
0029     void levelSetChanged(QString);
0030 
0031 protected Q_SLOTS:
0032     void newStuffDone(const QList<KNSCore::Entry>& entries);
0033 
0034 private Q_SLOTS:
0035     void updateApplyButton();
0036     void slotApplyClicked();
0037     void slotOkClicked();
0038 
0039 private:
0040     void saveSettings();
0041     Ui::LevelSetWidget m_ui;
0042     QString m_gameCurrentLevelSetName;
0043     QDialogButtonBox *m_buttonBox;
0044 };
0045 
0046 #endif