OpenHantek
DsoConfigColorsPage.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: GPL-2.0+
2 
3 #include <QWidget>
4 
5 #include <QCheckBox>
6 #include <QComboBox>
7 #include <QDoubleSpinBox>
8 #include <QGridLayout>
9 #include <QGroupBox>
10 #include <QHBoxLayout>
11 #include <QLabel>
12 #include <QSpinBox>
13 #include <QVBoxLayout>
14 
15 #include <QDebug>
16 
17 #include "colorbox.h"
18 #include "dsosettings.h"
19 
20 
24 class DsoConfigColorsPage : public QWidget {
25  Q_OBJECT
26 
27  public:
28  DsoConfigColorsPage( DsoSettings *settings, QWidget *parent = nullptr );
29 
30  public slots:
31  void saveSettings();
32 
33  private:
35 
36  QVBoxLayout *mainLayout;
37 
38  QGroupBox *colorsGroup;
39  QGridLayout *colorsLayout;
40 
44 
47 
48  QLabel *horizontalLine;
49 
51  std::vector< QLabel * > colorLabel;
52  std::vector< ColorBox * > screenChannelColorBox;
53  std::vector< ColorBox * > screenSpectrumColorBox;
54  std::vector< ColorBox * > printChannelColorBox;
55  std::vector< ColorBox * > printSpectrumColorBox;
56  QCheckBox *screenColorCheckBox;
57  QLabel *fontSizeLabel;
58  QSpinBox *fontSizeSpinBox;
59  QCheckBox *styleFusionCheckBox;
60  QLabel *themeLabel;
61  QComboBox *themeComboBox;
62  QGridLayout *themeLayout;
63 };
std::vector< ColorBox *> printChannelColorBox
Definition: DsoConfigColorsPage.h:54
ColorBox * printAxesColorBox
Definition: DsoConfigColorsPage.h:45
ColorBox * textColorBox
Definition: DsoConfigColorsPage.h:43
QSpinBox * fontSizeSpinBox
Definition: DsoConfigColorsPage.h:58
QLabel * printChannelLabel
Definition: DsoConfigColorsPage.h:50
QGridLayout * colorsLayout
Definition: DsoConfigColorsPage.h:39
ColorBox * printTextColorBox
Definition: DsoConfigColorsPage.h:45
std::vector< ColorBox *> screenChannelColorBox
Definition: DsoConfigColorsPage.h:52
QCheckBox * styleFusionCheckBox
Definition: DsoConfigColorsPage.h:59
ColorBox * printBorderColorBox
Definition: DsoConfigColorsPage.h:45
QGridLayout * themeLayout
Definition: DsoConfigColorsPage.h:62
QLabel * backgroundLabel
Definition: DsoConfigColorsPage.h:42
QLabel * printColorsLabel
Definition: DsoConfigColorsPage.h:41
QLabel * gridLabel
Definition: DsoConfigColorsPage.h:42
Holds the settings of the program.
Definition: dsosettings.h:21
ColorBox * gridColorBox
Definition: DsoConfigColorsPage.h:43
ColorBox * printBackgroundColorBox
Definition: DsoConfigColorsPage.h:45
QLabel * themeLabel
Definition: DsoConfigColorsPage.h:60
ColorBox * printGridColorBox
Definition: DsoConfigColorsPage.h:45
QLabel * axesLabel
Definition: DsoConfigColorsPage.h:42
QLabel * screenChannelLabel
Definition: DsoConfigColorsPage.h:50
QLabel * screenColorsLabel
Definition: DsoConfigColorsPage.h:41
QGroupBox * colorsGroup
Definition: DsoConfigColorsPage.h:38
QLabel * horizontalLine
Definition: DsoConfigColorsPage.h:48
Config page for the colors.
Definition: DsoConfigColorsPage.h:24
ColorBox * borderColorBox
Definition: DsoConfigColorsPage.h:43
A widget for the selection of a color.
Definition: colorbox.h:9
QLabel * borderLabel
Definition: DsoConfigColorsPage.h:42
QVBoxLayout * mainLayout
Definition: DsoConfigColorsPage.h:36
QLabel * markersLabel
Definition: DsoConfigColorsPage.h:42
std::vector< ColorBox *> screenSpectrumColorBox
Definition: DsoConfigColorsPage.h:53
ColorBox * printMarkersColorBox
Definition: DsoConfigColorsPage.h:45
QCheckBox * screenColorCheckBox
Definition: DsoConfigColorsPage.h:56
DsoSettings * settings
Definition: DsoConfigColorsPage.h:34
QLabel * textLabel
Definition: DsoConfigColorsPage.h:42
ColorBox * backgroundColorBox
Definition: DsoConfigColorsPage.h:43
QLabel * fontSizeLabel
Definition: DsoConfigColorsPage.h:57
DsoConfigColorsPage(DsoSettings *settings, QWidget *parent=nullptr)
Definition: DsoConfigColorsPage.cpp:5
ColorBox * axesColorBox
Definition: DsoConfigColorsPage.h:43
QLabel * printSpectrumLabel
Definition: DsoConfigColorsPage.h:50
QComboBox * themeComboBox
Definition: DsoConfigColorsPage.h:61
std::vector< ColorBox *> printSpectrumColorBox
Definition: DsoConfigColorsPage.h:55
void saveSettings()
Saves the new settings.
Definition: DsoConfigColorsPage.cpp:160
std::vector< QLabel *> colorLabel
Definition: DsoConfigColorsPage.h:51
QLabel * screenSpectrumLabel
Definition: DsoConfigColorsPage.h:50
ColorBox * markersColorBox
Definition: DsoConfigColorsPage.h:43