OpenHantek
viewsettings.h
1 // SPDX-License-Identifier: GPL-2.0+
2 
3 #pragma once
4 
5 #include <QColor>
6 #include <QObject>
7 #include <QPoint>
8 #include <QString>
9 #include <QVector>
10 
11 #include "hantekdso/enums.h"
12 
17  QColor axes;
18  QColor background;
19  QColor border;
20  QColor grid;
21  QColor markers;
22  QColor text;
23  std::vector<QColor> spectrum;
24  std::vector<QColor> voltage;
25 };
26 
31  DsoSettingsColorValues screen = {QColor(0xff, 0xff, 0xff, 0x7f), QColor(0x00, 0x00, 0x00, 0xff),
32  QColor(0xff, 0xff, 0xff, 0xff), QColor(0xff, 0xff, 0xff, 0x3f),
33  QColor(0xff, 0xff, 0xff, 0xbf), QColor(0xff, 0xff, 0xff, 0xff),
34  std::vector<QColor>(), std::vector<QColor>()};
35  DsoSettingsColorValues print = {QColor(0x00, 0x00, 0x00, 0xbf), QColor(0x00, 0x00, 0x00, 0x00),
36  QColor(0x00, 0x00, 0x00, 0xff), QColor(0x00, 0x00, 0x00, 0x7f),
37  QColor(0x00, 0x00, 0x00, 0xef), QColor(0x00, 0x00, 0x00, 0xff),
38  std::vector<QColor>(), std::vector<QColor>()};
39  bool antialiasing = true;
40  bool digitalPhosphor = false;
41  unsigned digitalPhosphorDepth = 8;
42  Dso::InterpolationMode interpolation = Dso::INTERPOLATION_LINEAR;
43  bool screenColorImages = false;
44  bool zoom = false;
45  Qt::ToolBarArea cursorGridPosition = Qt::RightToolBarArea;
46  bool cursorsVisible = false;
47 
48  unsigned digitalPhosphorDraws() const {
50  }
51 };
QColor grid
The color of the grid.
Definition: viewsettings.h:20
unsigned digitalPhosphorDepth
Number of channels shown at one time.
Definition: viewsettings.h:41
std::vector< QColor > spectrum
The colors of the spectrum graphs.
Definition: viewsettings.h:23
bool antialiasing
Antialiasing for the graphs.
Definition: viewsettings.h:39
bool zoom
true if the magnified scope is enabled
Definition: viewsettings.h:44
bool screenColorImages
true exports images with screen colors
Definition: viewsettings.h:43
QColor markers
The color of the markers.
Definition: viewsettings.h:21
QColor axes
X- and Y-axis and subdiv lines on them.
Definition: viewsettings.h:17
QColor border
The border of the scope screen.
Definition: viewsettings.h:19
Dso::InterpolationMode interpolation
Interpolation mode for the graph.
Definition: viewsettings.h:42
Holds all view settings.
Definition: viewsettings.h:30
std::vector< QColor > voltage
The colors of the voltage graphs.
Definition: viewsettings.h:24
QColor text
The default text color.
Definition: viewsettings.h:22
Holds the color values for the oscilloscope screen.
Definition: viewsettings.h:16
QColor background
The scope background.
Definition: viewsettings.h:18
bool digitalPhosphor
true slowly fades out the previous graphs
Definition: viewsettings.h:40