mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Ink management in output preview
This commit is contained in:
@ -46,8 +46,19 @@ public:
|
||||
virtual void closeEvent(QCloseEvent* event) override;
|
||||
virtual void showEvent(QShowEvent* event) override;
|
||||
|
||||
virtual void accept() override;
|
||||
virtual void reject() override;
|
||||
|
||||
private:
|
||||
|
||||
void updateInks();
|
||||
void updatePaperColorWidgets();
|
||||
|
||||
void onPaperColorChanged();
|
||||
void onSimulateSeparationsChecked(bool checked);
|
||||
void onSimulatePaperColorChecked(bool checked);
|
||||
void onInksChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector<int>& roles);
|
||||
|
||||
struct RenderedImage
|
||||
{
|
||||
QImage image;
|
||||
@ -55,11 +66,12 @@ private:
|
||||
|
||||
void updatePageImage();
|
||||
void onPageImageRendered();
|
||||
RenderedImage renderPage(const pdf::PDFPage* page, QSize renderSize);
|
||||
RenderedImage renderPage(const pdf::PDFPage* page, QSize renderSize, pdf::PDFRGB paperColor, uint32_t activeColorMask);
|
||||
bool isRenderingDone() const;
|
||||
|
||||
Ui::OutputPreviewDialog* ui;
|
||||
pdf::PDFInkMapper m_inkMapper;
|
||||
pdf::PDFInkMapper m_inkMapperForRendering;
|
||||
const pdf::PDFDocument* m_document;
|
||||
pdf::PDFWidget* m_widget;
|
||||
bool m_needUpdateImage;
|
||||
|
Reference in New Issue
Block a user