Object content viewer

This commit is contained in:
Jakub Melka
2021-06-13 18:54:47 +02:00
parent c0b0fb6010
commit f4ea513208
11 changed files with 283 additions and 6 deletions

View File

@ -20,6 +20,7 @@
#include "pdfdocument.h"
#include "pdfobjectutils.h"
#include "pdfcms.h"
#include <QDialog>
@ -37,13 +38,15 @@ class ObjectInspectorDialog : public QDialog
Q_OBJECT
public:
explicit ObjectInspectorDialog(const pdf::PDFDocument* document, QWidget* parent);
explicit ObjectInspectorDialog(const pdf::PDFCMS* cms, const pdf::PDFDocument* document, QWidget* parent);
virtual ~ObjectInspectorDialog() override;
private:
void onModeChanged();
void onCurrentIndexChanged(const QModelIndex& current, const QModelIndex& previous);
Ui::ObjectInspectorDialog* ui;
const pdf::PDFCMS* m_cms;
const pdf::PDFDocument* m_document;
pdf::PDFObjectClassifier m_objectClassifier;
PDFObjectInspectorTreeItemModel* m_model;