Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

appearancewidget.h
Go to the documentation of this file.
1 // Copyright (c) 2020 The Dash Core developers
2 // Distributed under the MIT/X11 software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_QT_APPEARANCEWIDGET_H
6 #define BITCOIN_QT_APPEARANCEWIDGET_H
7 
8 #include <QWidget>
9 
10 #include <qt/guiutil.h>
11 
12 namespace Ui {
13 class AppearanceWidget;
14 }
15 
16 class OptionsModel;
17 
18 class QDataWidgetMapper;
19 class QSlider;
20 class QComboBox;
21 
22 class AppearanceWidget : public QWidget
23 {
24  Q_OBJECT
25 
26 public:
27  explicit AppearanceWidget(QWidget* parent = 0);
29 
31 
32 Q_SIGNALS:
33  void appearanceChanged();
34 
35 public Q_SLOTS:
36  void accept();
37 
38 private Q_SLOTS:
39  void updateTheme(const QString& toTheme = QString());
40  void updateFontFamily(int index);
41  void updateFontScale(int nScale);
42  void updateFontWeightNormal(int nValue, bool fForce = false);
43  void updateFontWeightBold(int nValue, bool fForce = false);
44 
45 private:
46  Ui::AppearanceWidget* ui;
47  QDataWidgetMapper* mapper;
50  QString prevTheme;
51  int prevScale;
53  QFont::Weight prevWeightNormal;
54  QFont::Weight prevWeightBold;
55 
56  void updateWeightSlider();
57 };
58 
59 #endif // BITCOIN_QT_APPEARANCEWIDGET_H
FontFamily
Definition: guiutil.h:277
OptionsModel * model
AppearanceWidget(QWidget *parent=0)
GUIUtil::FontFamily prevFontFamily
QFont::Weight prevWeightBold
void updateFontFamily(int index)
void updateTheme(const QString &toTheme=QString())
QFont::Weight prevWeightNormal
void updateFontWeightBold(int nValue, bool fForce=false)
Ui::AppearanceWidget * ui
void appearanceChanged()
QDataWidgetMapper * mapper
void setModel(OptionsModel *model)
Interface from Qt to configuration data structure for Bitcoin client.
Definition: optionsmodel.h:25
void updateFontWeightNormal(int nValue, bool fForce=false)
void updateFontScale(int nScale)
Released under the MIT license