OpenHantek
DsoConfigColorsPage.h
1 // SPDX-License-Identifier: GPL-2.0+
2 
3 #include <QWidget>
4 
5 #include "settings.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 = 0);
27 
28  public slots:
29  void saveSettings();
30 
31  private:
32  DsoSettings *settings;
33 
34  QVBoxLayout *mainLayout;
35 
36  QGroupBox *colorsGroup;
37  QGridLayout *colorsLayout;
38 
39  QLabel *screenColorsLabel, *printColorsLabel;
40  QLabel *axesLabel, *backgroundLabel, *borderLabel, *gridLabel, *markersLabel, *textLabel;
41  ColorBox *axesColorBox, *backgroundColorBox, *borderColorBox, *gridColorBox, *markersColorBox, *textColorBox;
42 
43  ColorBox *printAxesColorBox, *printBackgroundColorBox, *printBorderColorBox, *printGridColorBox,
44  *printMarkersColorBox, *printTextColorBox;
45 
46  QLabel *graphLabel;
47 
48  QLabel *screenChannelLabel, *screenSpectrumLabel, *printChannelLabel, *printSpectrumLabel;
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 };
Holds the settings of the program.
Definition: settings.h:16
Config page for the colors.
Definition: DsoConfigColorsPage.h:22
A widget for the selection of a color.
Definition: colorbox.h:9
void saveSettings()
Saves the new settings.
Definition: DsoConfigColorsPage.cpp:129