File indexing completed on 2024-10-13 03:27:46

0001 /*
0002     This file is part of Kiten, a KDE Japanese Reference Tool...
0003     SPDX-FileCopyrightText: 2006 Joseph Kerian <jkerian@gmail.com>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #ifndef CONFIGSORTINGPAGE_H
0009 #define CONFIGSORTINGPAGE_H
0010 
0011 #include "ui_configsorting.h" //From the UI file
0012 
0013 #include <QWidget>
0014 
0015 class KitenConfigSkeleton;
0016 class QString;
0017 
0018 class ConfigSortingPage : public QWidget, public Ui::configSorting
0019 {
0020     Q_OBJECT
0021 
0022 public:
0023     explicit ConfigSortingPage(QWidget *parent = nullptr, KitenConfigSkeleton *config = nullptr, Qt::WindowFlags f = {});
0024 
0025 public Q_SLOTS:
0026     bool hasChanged();
0027     bool isDefault();
0028     void updateSettings();
0029     void updateWidgets();
0030     void updateWidgetsDefault();
0031 
0032 Q_SIGNALS:
0033     void widgetChanged();
0034 
0035 private:
0036     KitenConfigSkeleton *_config;
0037     QStringList _dictNames;
0038     QStringList _fields;
0039 };
0040 
0041 #endif