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