OpenHantek
Loading...
Searching...
No Matches
legacyexportdrawer.h
1// SPDX-License-Identifier: GPL-2.0+
2
3#pragma once
4
5#include <QPainter>
6#include <QPrinter>
7#include <QSize>
8#include <memory>
9#include "exportsettings.h"
10
11class DsoSettings;
12class PPresult;
14namespace Dso { struct ControlSpecification; }
15
26 public:
28 static bool exportSamples(const PPresult *source, QPaintDevice* dest,
29 const Dso::ControlSpecification* deviceSpecification,
30 const DsoSettings *settings, bool isPrinter, const DsoSettingsColorValues *colorValues);
31
32 private:
33 static void drawGrids(QPainter &painter, const DsoSettingsColorValues *colorValues, double lineHeight, double scopeHeight,
34 int scopeWidth, bool isPrinter, bool zoom);
35};
Holds the settings of the program.
Definition settings.h:16
Exports the oscilloscope screen to a file or prints it. TODO Rewrite image exporter with OpenGL drawn...
Definition legacyexportdrawer.h:25
static bool exportSamples(const PPresult *source, QPaintDevice *dest, const Dso::ControlSpecification *deviceSpecification, const DsoSettings *settings, bool isPrinter, const DsoSettingsColorValues *colorValues)
Draw the graphs coming from source and labels to the destination paintdevice.
Definition legacyexportdrawer.cpp:22
Post processing results.
Definition ppresult.h:31
Holds the color values for the oscilloscope screen.
Definition viewsettings.h:16
Stores the specifications of the currently connected device.
Definition controlspecification.h:47