2024-03-15 00:46:08 +02:00
|
|
|
/* This file is part of the KDE project
|
|
|
|
Copyright (C) 2023 Ivailo Monev <xakepa10@gmail.com>
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Library General Public
|
|
|
|
License version 2, as published by the Free Software Foundation.
|
|
|
|
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Library General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Library General Public License
|
|
|
|
along with this library; see the file COPYING.LIB. If not, write to
|
|
|
|
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
|
|
Boston, MA 02110-1301, USA.
|
2014-11-15 03:14:34 +02:00
|
|
|
*/
|
|
|
|
|
2024-03-15 00:46:08 +02:00
|
|
|
#ifndef SPELLCHECKING_H
|
|
|
|
#define SPELLCHECKING_H
|
2014-11-15 03:14:34 +02:00
|
|
|
|
2024-03-15 00:46:08 +02:00
|
|
|
#include <kcmodule.h>
|
|
|
|
#include <kspellconfigwidget.h>
|
|
|
|
#include <kconfig.h>
|
2014-11-15 03:14:34 +02:00
|
|
|
|
2024-03-15 00:46:08 +02:00
|
|
|
#include <QBoxLayout>
|
2014-11-15 03:14:34 +02:00
|
|
|
|
2024-03-15 00:46:08 +02:00
|
|
|
class SpellCheckingModule : public KCModule
|
2014-11-15 03:14:34 +02:00
|
|
|
{
|
2023-06-19 22:18:17 +03:00
|
|
|
Q_OBJECT
|
2014-11-15 03:14:34 +02:00
|
|
|
|
2023-06-19 22:18:17 +03:00
|
|
|
public:
|
2024-03-15 00:46:08 +02:00
|
|
|
SpellCheckingModule(QWidget *parent, const QVariantList &args);
|
|
|
|
~SpellCheckingModule();
|
2014-11-15 03:14:34 +02:00
|
|
|
|
2023-06-19 22:18:17 +03:00
|
|
|
// KCModule reimplementations
|
|
|
|
public Q_SLOTS:
|
2024-03-15 00:46:08 +02:00
|
|
|
void load() final;
|
2023-06-19 22:18:17 +03:00
|
|
|
void save() final;
|
|
|
|
void defaults() final;
|
2014-11-15 03:14:34 +02:00
|
|
|
|
2024-03-15 00:46:08 +02:00
|
|
|
private Q_SLOTS:
|
|
|
|
void slotConfigChanged();
|
|
|
|
|
2023-06-19 22:18:17 +03:00
|
|
|
private:
|
2024-03-15 00:46:08 +02:00
|
|
|
QVBoxLayout* m_layout;
|
2023-06-19 22:18:17 +03:00
|
|
|
KSpellConfigWidget *m_configWidget;
|
|
|
|
KConfig *m_config;
|
2014-11-15 03:14:34 +02:00
|
|
|
};
|
|
|
|
|
2024-03-15 00:46:08 +02:00
|
|
|
#endif // SPELLCHECKING_H
|