KTextAddons

grammalecteconfigwidget.h
1/*
2 SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "textgrammarcheck_export.h"
10#include <QWidget>
11#include <TextGrammarCheck/GrammalecteGenerateConfigOptionJob>
12class QCheckBox;
13class QStackedWidget;
14class QScrollArea;
15namespace TextGrammarCheck
16{
17class GrammalecteUrlRequesterWidget;
18class TEXTGRAMMARCHECK_EXPORT GrammalecteConfigWidget : public QWidget
19{
20 Q_OBJECT
21public:
22 explicit GrammalecteConfigWidget(QWidget *parent = nullptr, bool disableMessageBox = false);
23 ~GrammalecteConfigWidget() override;
24 void loadSettings();
25 void saveSettings();
26
27private:
28 Q_DISABLE_COPY(GrammalecteConfigWidget)
29 TEXTGRAMMARCHECK_NO_EXPORT void loadGrammarSettings();
30 TEXTGRAMMARCHECK_NO_EXPORT void slotGetSettingsFinished(const QVector<GrammalecteGenerateConfigOptionJob::Option> &result);
31 TEXTGRAMMARCHECK_NO_EXPORT void slotGetSettingsError();
32 TEXTGRAMMARCHECK_NO_EXPORT QWidget *addGeneralTab();
33 TEXTGRAMMARCHECK_NO_EXPORT QWidget *addGrammarTab();
34
35 QStringList mSaveOptions;
36 QVector<QCheckBox *> mListOptions;
37 QStackedWidget *mStackedWidget = nullptr;
38 QWidget *mGrammarTabWidget = nullptr;
39 QWidget *mReloadSettingsWidget = nullptr;
40 QScrollArea *mScrollArea = nullptr;
41 GrammalecteUrlRequesterWidget *mPythonPath = nullptr;
42 GrammalecteUrlRequesterWidget *mGrammalectePath = nullptr;
43 const bool mDisableDialogBox = false;
44};
45}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.