Sonnet

configdialog.h
1 /*
2  * configdialog.h
3  *
4  * SPDX-FileCopyrightText: 2004 Zack Rusin <[email protected]>
5  *
6  * SPDX-License-Identifier: LGPL-2.1-or-later
7  */
8 #ifndef SONNET_CONFIGDIALOG_H
9 #define SONNET_CONFIGDIALOG_H
10 
11 #include <QDialog>
12 class ConfigDialogPrivate;
13 #include "sonnetui_export.h"
14 
15 namespace Sonnet
16 {
17 /// The sonnet ConfigDialog
18 class SONNETUI_EXPORT ConfigDialog : public QDialog
19 {
20  Q_OBJECT
21 public:
22  explicit ConfigDialog(QWidget *parent);
23  ~ConfigDialog() override;
24 
25  /**
26  * Sets the language/dictionary that will be selected by default
27  * in this config dialog.
28  * This overrides the setting in the config file.
29  *
30  * @param language the language which will be selected by default.
31  * @since 4.1
32  */
33  void setLanguage(const QString &language);
34  /**
35  * return selected language
36  * @since 4.8.1
37  */
38  QString language() const;
39 
40 protected Q_SLOTS:
41  virtual void slotOk();
42  virtual void slotApply();
43 
44 Q_SIGNALS:
45 
46  /**
47  * This is emitted all the time when we change config and not just language
48  *
49  * @param language the language which the user has selected
50  * @since 4.1
51  */
52 
53  void languageChanged(const QString &language);
54 
55  /**
56  * This is emitted when configChanged
57  * @since 4.8.1
58  */
59  void configChanged();
60 
61 private:
62  ConfigDialogPrivate *const d;
63  Q_DISABLE_COPY(ConfigDialog)
64  Q_PRIVATE_SLOT(d, void slotConfigChanged())
65 };
66 }
67 
68 #endif
The sonnet namespace.
The sonnet ConfigDialog.
Definition: configdialog.h:18
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.