BibleTime
btfontsettings.h
Go to the documentation of this file.
1/*********
2*
3* In the name of the Father, and of the Son, and of the Holy Spirit.
4*
5* This file is part of BibleTime's source code, https://bibletime.info/
6*
7* Copyright 1999-2025 by the BibleTime developers.
8* The BibleTime source code is licensed under the GNU General Public License
9* version 2.0.
10*
11**********/
12
13#pragma once
14
15#include "btconfigdialog.h"
16
17#include <QObject>
18#include <QString>
19#include <vector>
20#include "../../backend/config/btconfig.h"
21
22
24class Language;
25class QCheckBox;
26class QComboBox;
27class QFontDialog;
28class QGroupBox;
29class QLabel;
30
32
33 Q_OBJECT
34
35 private: // types:
36
41
42 public: // methods:
43
45
46 void save() const final override;
47
48 protected Q_SLOTS:
49
50 // This slot is called when the "Use own font for language" button was clicked.
51 void useOwnFontClicked(bool);
52
53 private: // methods:
54
55 void retranslateUi();
56
57 private: // fields:
58
59 QGroupBox *m_fontsGroupBox;
63 QFontDialog * m_fontChooser;
64
66
67};
QPair< bool, QFont > FontSettingsPair
Definition btconfig.h:47
QGroupBox * m_fontsGroupBox
std::vector< WorkSetting > m_workSettings
QComboBox * m_languageComboBox
QCheckBox * m_languageCheckBox
QFontDialog * m_fontChooser
void save() const final override
BtConfig::FontSettingsPair settings