Sonnet

configview.h
1/*
2 *
3 * SPDX-FileCopyrightText: 2004 Zack Rusin <zack@kde.org>
4 * SPDX-FileCopyrightText: 2020 Benjamin Port <benjamin.port@kde.org>
5 *
6 * SPDX-License-Identifier: LGPL-2.1-or-later
7 */
8#ifndef SONNET_CONFIGVIEW_H
9#define SONNET_CONFIGVIEW_H
10
11#include <QWidget>
12
13#include "sonnetui_export.h"
14
15#include <memory>
16
17namespace Sonnet
18{
19class ConfigViewPrivate;
20
21class SONNETUI_EXPORT ConfigView : public QWidget
22{
23 Q_OBJECT
24 Q_PROPERTY(QString language READ language WRITE setLanguage)
25 Q_PROPERTY(QStringList ignoreList READ ignoreList WRITE setIgnoreList)
26 Q_PROPERTY(QStringList preferredLanguages READ preferredLanguages WRITE setPreferredLanguages)
27 Q_PROPERTY(bool backgroundCheckingButtonShown READ backgroundCheckingButtonShown WRITE setBackgroundCheckingButtonShown)
28 Q_PROPERTY(bool showNoBackendFound READ noBackendFoundVisible WRITE setNoBackendFoundVisible)
29public:
30 explicit ConfigView(QWidget *parent = nullptr);
31 ~ConfigView() override;
32
33 bool backgroundCheckingButtonShown() const;
34 bool noBackendFoundVisible() const;
35 QStringList preferredLanguages() const;
36 QString language() const;
37 QStringList ignoreList() const;
38
39public Q_SLOTS:
40 void setNoBackendFoundVisible(bool show);
41 void setBackgroundCheckingButtonShown(bool);
42 void setPreferredLanguages(const QStringList &ignoreList);
43 void setLanguage(const QString &language);
44 void setIgnoreList(const QStringList &ignoreList);
45
46Q_SIGNALS:
47 void configChanged();
48
49private:
50 std::unique_ptr<ConfigViewPrivate> const d;
51};
52}
53
54#endif
The sonnet namespace.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:02:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.