OpenHantek
viewsettings.h
Go to the documentation of this file.
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), // axes, background
32  QColor(0xff, 0xff, 0xff, 0xff), QColor(0xff, 0xff, 0xff, 0xbf), // border, grid
33  QColor(0xff, 0xff, 0xff, 0xbf), QColor(0xff, 0xff, 0xff, 0xff), // markers, text
34  std::vector<QColor>(), std::vector<QColor>()}; // spectrum, voltage
35  DsoSettingsColorValues print = {QColor(0x00, 0x00, 0x00, 0xbf), QColor(0x00, 0x00, 0x00, 0x00), // axes, background
36  QColor(0x00, 0x00, 0x00, 0xff), QColor(0x00, 0x00, 0x00, 0xbf), // border, grid
37  QColor(0x00, 0x00, 0x00, 0xbf), QColor(0x00, 0x00, 0x00, 0xff), // markers, text
38  std::vector<QColor>(), std::vector<QColor>()}; // spectrum, voltage
39  bool antialiasing = true;
40  bool digitalPhosphor = false;
41  unsigned digitalPhosphorDepth = 8;
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 };
Sample dots connected by lines.
Definition: enums.h:55
unsigned digitalPhosphorDraws() const
Definition: viewsettings.h:48
QColor grid
The color of the grid.
Definition: viewsettings.h:20
InterpolationMode
The different interpolation modes for the graphs.
Definition: enums.h:53
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
DsoSettingsColorValues print
Definition: viewsettings.h:35
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
Qt::ToolBarArea cursorGridPosition
Definition: viewsettings.h:45
bool cursorsVisible
Definition: viewsettings.h:46
DsoSettingsColorValues screen
Definition: viewsettings.h:31