File indexing completed on 2024-10-06 04:56:10

0001 /*
0002  *   SPDX-FileCopyrightText: 2008 Laurent Montel <montel@kde.org>
0003  *
0004  *   SPDX-License-Identifier: GPL-2.0-or-later
0005  *
0006  */
0007 
0008 #ifndef PREFERENCESDLG_h
0009 #define PREFERENCESDLG_h
0010 
0011 #include <KPageDialog>
0012 
0013 class SpellCheckingPage;
0014 class MiscPage;
0015 class QCheckBox;
0016 
0017 namespace Sonnet
0018 {
0019 class ConfigWidget;
0020 }
0021 
0022 class PreferencesDialog : public KPageDialog
0023 {
0024     Q_OBJECT
0025 public:
0026     explicit PreferencesDialog(QWidget *parent);
0027 
0028 protected Q_SLOTS:
0029     void slotSave();
0030 
0031 private:
0032     SpellCheckingPage *m_pageSpellChecking = nullptr;
0033     MiscPage *m_pageMisc = nullptr;
0034 };
0035 
0036 class SpellCheckingPage : public QWidget
0037 {
0038     Q_OBJECT
0039 public:
0040     explicit SpellCheckingPage(QWidget *);
0041     void saveOptions();
0042 
0043 private:
0044     Sonnet::ConfigWidget *m_confPage = nullptr;
0045 };
0046 
0047 class MiscPage : public QWidget
0048 {
0049     Q_OBJECT
0050 public:
0051     explicit MiscPage(QWidget *);
0052     void saveOptions();
0053 
0054 private:
0055     QCheckBox *m_showHiddenEntries = nullptr;
0056 };
0057 
0058 #endif