OpenHantek
Loading...
Searching...
No Matches
DsoConfigColorsPage.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
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
24class 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
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;
58 QSpinBox *fontSizeSpinBox;
60 QLabel *themeLabel;
61 QComboBox *themeComboBox;
62 QGridLayout *themeLayout;
63};
A widget for the selection of a color.
Definition colorbox.h:9
QLabel * borderLabel
Definition DsoConfigColorsPage.h:42
QLabel * printSpectrumLabel
Definition DsoConfigColorsPage.h:50
ColorBox * printBorderColorBox
Definition DsoConfigColorsPage.h:45
QCheckBox * styleFusionCheckBox
Definition DsoConfigColorsPage.h:59
ColorBox * gridColorBox
Definition DsoConfigColorsPage.h:43
QGroupBox * colorsGroup
Definition DsoConfigColorsPage.h:38
QLabel * screenChannelLabel
Definition DsoConfigColorsPage.h:50
std::vector< ColorBox * > screenSpectrumColorBox
Definition DsoConfigColorsPage.h:53
std::vector< ColorBox * > printChannelColorBox
Definition DsoConfigColorsPage.h:54
QLabel * textLabel
Definition DsoConfigColorsPage.h:42
ColorBox * backgroundColorBox
Definition DsoConfigColorsPage.h:43
QVBoxLayout * mainLayout
Definition DsoConfigColorsPage.h:36
QLabel * printChannelLabel
Definition DsoConfigColorsPage.h:50
ColorBox * printMarkersColorBox
Definition DsoConfigColorsPage.h:45
QLabel * horizontalLine
Definition DsoConfigColorsPage.h:48
ColorBox * printTextColorBox
Definition DsoConfigColorsPage.h:46
QLabel * screenSpectrumLabel
Definition DsoConfigColorsPage.h:50
ColorBox * printAxesColorBox
Definition DsoConfigColorsPage.h:45
QLabel * themeLabel
Definition DsoConfigColorsPage.h:60
QLabel * gridLabel
Definition DsoConfigColorsPage.h:42
QGridLayout * colorsLayout
Definition DsoConfigColorsPage.h:39
QSpinBox * fontSizeSpinBox
Definition DsoConfigColorsPage.h:58
ColorBox * markersColorBox
Definition DsoConfigColorsPage.h:43
std::vector< ColorBox * > printSpectrumColorBox
Definition DsoConfigColorsPage.h:55
ColorBox * printBackgroundColorBox
Definition DsoConfigColorsPage.h:45
void saveSettings()
Saves the new settings.
Definition DsoConfigColorsPage.cpp:160
QGridLayout * themeLayout
Definition DsoConfigColorsPage.h:62
DsoConfigColorsPage(DsoSettings *settings, QWidget *parent=nullptr)
Definition DsoConfigColorsPage.cpp:5
ColorBox * axesColorBox
Definition DsoConfigColorsPage.h:43
QLabel * printColorsLabel
Definition DsoConfigColorsPage.h:41
ColorBox * borderColorBox
Definition DsoConfigColorsPage.h:43
std::vector< ColorBox * > screenChannelColorBox
Definition DsoConfigColorsPage.h:52
QLabel * backgroundLabel
Definition DsoConfigColorsPage.h:42
QComboBox * themeComboBox
Definition DsoConfigColorsPage.h:61
ColorBox * textColorBox
Definition DsoConfigColorsPage.h:43
QLabel * markersLabel
Definition DsoConfigColorsPage.h:42
DsoSettings * settings
Definition DsoConfigColorsPage.h:34
QCheckBox * screenColorCheckBox
Definition DsoConfigColorsPage.h:56
QLabel * fontSizeLabel
Definition DsoConfigColorsPage.h:57
ColorBox * printGridColorBox
Definition DsoConfigColorsPage.h:45
QLabel * axesLabel
Definition DsoConfigColorsPage.h:42
QLabel * screenColorsLabel
Definition DsoConfigColorsPage.h:41
std::vector< QLabel * > colorLabel
Definition DsoConfigColorsPage.h:51
Holds the settings of the program.
Definition dsosettings.h:20