PDF4QT/Pdf4QtViewerPlugins/OutputPreviewPlugin/outputpreviewdialog.h

57 lines
1.5 KiB
C
Raw Normal View History

2021-01-30 18:54:38 +01:00
// Copyright (C) 2021 Jakub Melka
//
// This file is part of Pdf4Qt.
//
// Pdf4Qt is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Pdf4Qt is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with Pdf4Qt. If not, see <https://www.gnu.org/licenses/>.
#ifndef OUTPUTPREVIEWDIALOG_H
#define OUTPUTPREVIEWDIALOG_H
2021-01-31 19:15:11 +01:00
#include "pdfdocument.h"
#include "pdfdrawwidget.h"
#include "pdftransparencyrenderer.h"
2021-01-30 18:54:38 +01:00
#include <QDialog>
namespace Ui
{
class OutputPreviewDialog;
}
namespace pdfplugin
{
class OutputPreviewDialog : public QDialog
{
Q_OBJECT
public:
2021-01-31 19:15:11 +01:00
explicit OutputPreviewDialog(const pdf::PDFDocument* document, pdf::PDFWidget* widget, QWidget* parent);
2021-01-30 18:54:38 +01:00
virtual ~OutputPreviewDialog() override;
2021-02-07 18:59:39 +01:00
virtual void resizeEvent(QResizeEvent* event) override;
2021-01-30 18:54:38 +01:00
private:
2021-01-31 19:15:11 +01:00
void updateImage();
2021-01-30 18:54:38 +01:00
Ui::OutputPreviewDialog* ui;
2021-01-31 19:15:11 +01:00
pdf::PDFInkMapper m_inkMapper;
const pdf::PDFDocument* m_document;
pdf::PDFWidget* m_widget;
2021-01-30 18:54:38 +01:00
};
} // namespace pdf
#endif // OUTPUTPREVIEWDIALOG_H