3D PDF: Open media viewer on double click

This commit is contained in:
Jakub Melka
2022-07-08 18:54:50 +02:00
parent 3d3b8edec8
commit f1824da326
8 changed files with 112 additions and 3 deletions

View File

@@ -18,6 +18,8 @@
#ifndef PDFMEDIAVIEWERDIALOG_H
#define PDFMEDIAVIEWERDIALOG_H
#include "pdfglobal.h"
#include <QDialog>
namespace Qt3DCore
@@ -35,6 +37,13 @@ namespace Ui
class PDFMediaViewerDialog;
}
namespace pdf
{
class PDFDocument;
class PDFAnnotation;
class PDF3DAnnotation;
}
namespace pdfviewer
{
@@ -47,8 +56,11 @@ public:
virtual ~PDFMediaViewerDialog() override;
void initDemo();
void initFromAnnotation(const pdf::PDFDocument* document, const pdf::PDFAnnotation* annotation);
private:
void initFrom3DAnnotation(const pdf::PDFDocument* document, const pdf::PDF3DAnnotation* annotation);
Ui::PDFMediaViewerDialog* ui;
Qt3DExtras::Qt3DWindow* m_3dWindow = nullptr;
Qt3DCore::QEntity* m_rootEntity = nullptr;