Output preview widget (first part)

This commit is contained in:
Jakub Melka
2021-03-27 16:06:07 +01:00
parent 40bbdd531a
commit 019637f9f2
10 changed files with 485 additions and 37 deletions

View File

@ -21,6 +21,7 @@
#include "pdfdocument.h"
#include "pdfdrawwidget.h"
#include "pdftransparencyrenderer.h"
#include "outputpreviewwidget.h"
#include <QDialog>
#include <QFuture>
@ -50,15 +51,6 @@ public:
virtual void reject() override;
private:
enum DisplayMode
{
Separations,
ColorWarningInkCoverage,
ColorWarningRichBlack,
InkCoverage
};
void updateInks();
void updatePaperColorWidgets();
@ -70,6 +62,8 @@ private:
struct RenderedImage
{
QImage image;
pdf::PDFFloatBitmapWithColorSpace originalProcessImage;
QSizeF pageSize;
QList<pdf::PDFRenderError> errors;
};