1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4#ifndef PREFERENCESDIALOG_H
5#define PREFERENCESDIALOG_H
6
7#include <QtCore/QMap>
8#include <QtWidgets/QDialog>
9#include <QtHelp/QHelpFilterData>
10#include "ui_preferencesdialog.h"
11#include "helpdocsettings.h"
12
13QT_BEGIN_NAMESPACE
14
15class FontPanel;
16class HelpEngineWrapper;
17class QFileSystemWatcher;
18
19class PreferencesDialog : public QDialog
20{
21 Q_OBJECT
22
23public:
24 PreferencesDialog(QWidget *parent = nullptr);
25
26private slots:
27 void okClicked();
28 void applyClicked();
29 void applyChanges();
30 void appFontSettingToggled(bool on);
31 void appFontSettingChanged(int index);
32 void browserFontSettingToggled(bool on);
33 void browserFontSettingChanged(int index);
34
35 void setBlankPage();
36 void setCurrentPage();
37 void setDefaultPage();
38
39signals:
40 void updateBrowserFont();
41 void updateApplicationFont();
42 void updateUserInterface();
43
44private:
45 void updateFontSettingsPage();
46 void updateOptionsPage();
47
48 Ui::PreferencesDialogClass m_ui;
49
50 HelpDocSettings m_docSettings;
51
52 FontPanel *m_appFontPanel;
53 FontPanel *m_browserFontPanel;
54 bool m_appFontChanged;
55 bool m_browserFontChanged;
56 HelpEngineWrapper &helpEngine;
57 const bool m_hideFiltersTab;
58 const bool m_hideDocsTab;
59 bool m_showTabs;
60};
61
62QT_END_NAMESPACE
63
64#endif // SETTINGSDIALOG_H
65

source code of qttools/src/assistant/assistant/preferencesdialog.h