Sonnet

configview.h
1 /*
2  *
3  * SPDX-FileCopyrightText: 2004 Zack Rusin <[email protected]>
4  * SPDX-FileCopyrightText: 2020 Benjamin Port <[email protected]>
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 class ConfigViewPrivate;
16 
17 namespace Sonnet
18 {
19 class SONNETUI_EXPORT ConfigView : public QWidget
20 {
21  Q_OBJECT
22  Q_PROPERTY(QString language READ language WRITE setLanguage)
23  Q_PROPERTY(QStringList ignoreList READ ignoreList WRITE setIgnoreList)
24  Q_PROPERTY(QStringList preferredLanguages READ preferredLanguages WRITE setPreferredLanguages)
25  Q_PROPERTY(bool backgroundCheckingButtonShown READ backgroundCheckingButtonShown WRITE setBackgroundCheckingButtonShown)
26  Q_PROPERTY(bool showNoBackendFound READ noBackendFoundVisible WRITE setNoBackendFoundVisible)
27 public:
28  explicit ConfigView(QWidget *parent = nullptr);
29  ~ConfigView() override;
30 
31  bool backgroundCheckingButtonShown() const;
32  bool noBackendFoundVisible() const;
33  QStringList preferredLanguages() const;
34  QString language() const;
35  QStringList ignoreList() const;
36 
37 public Q_SLOTS:
38  void setNoBackendFoundVisible(bool show);
39  void setBackgroundCheckingButtonShown(bool);
40  void setPreferredLanguages(const QStringList &ignoreList);
41  void setLanguage(const QString &language);
42  void setIgnoreList(const QStringList &ignoreList);
43 
44 Q_SIGNALS:
45  void configChanged();
46 
47 private:
48  ConfigViewPrivate *const d;
49 };
50 }
51 
52 #endif
The sonnet namespace.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Sep 25 2022 04:14:52 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.