File indexing completed on 2023-05-30 10:45:25

0001 /*
0002     SPDX-FileCopyrightText: 2002-2008 Peter Hedlund <peter.hedlund@kdemail.net>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #ifndef KWORDQUIZPREFS_H
0007 #define KWORDQUIZPREFS_H
0008 
0009 #include <KConfigDialog>
0010 #include <KActionCollection>
0011 
0012 /**
0013   *@author Peter Hedlund
0014 */
0015 
0016 class PrefGeneral;
0017 class PrefEditor;
0018 class PrefQuiz;
0019 class PrefCharacter;
0020 class PrefCardAppearance;
0021 class KConfigSkeleton;
0022 
0023 class KWordQuizPrefs : public KConfigDialog
0024 {
0025   Q_OBJECT
0026 public:
0027   KWordQuizPrefs(QWidget *parent, const QString & name, KConfigSkeleton *config, KActionCollection *actionCollection);
0028 
0029 protected Q_SLOTS:
0030   void updateSettings() override;
0031   void updateWidgetsDefault() override;
0032 
0033 protected:
0034   bool hasChanged() override;
0035   bool isDefault() override;
0036 
0037 private:
0038   PrefGeneral *m_prefGeneral;
0039   PrefEditor *m_prefEditor;
0040   PrefQuiz *m_prefQuiz;
0041   PrefCharacter* m_prefCharacter;
0042   PrefCardAppearance* m_prefCardAppearance;
0043   KConfigSkeleton * m_config;
0044 };
0045 
0046 #endif