Object classifier

This commit is contained in:
Jakub Melka
2021-06-11 19:01:18 +02:00
parent 2745c7828c
commit eb5f904842
9 changed files with 428 additions and 40 deletions

View File

@@ -19,6 +19,7 @@
#define PDFOBJECTINSPECTORTREEITEMMODEL_H
#include "pdfitemmodels.h"
#include "pdfobjectutils.h"
#include <set>
@@ -37,11 +38,20 @@ public:
{
Document,
Page,
ContentStream,
GraphicState,
ColorSpace,
Pattern,
Shading,
Image,
Form,
Font,
Action,
Annotation,
List
};
explicit PDFObjectInspectorTreeItemModel(QObject* parent);
explicit PDFObjectInspectorTreeItemModel(const pdf::PDFObjectClassifier* classifier, QObject* parent);
virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
virtual int columnCount(const QModelIndex& parent) const override;
@@ -59,6 +69,7 @@ private:
PDFObjectInspectorTreeItem* getRootItem();
const pdf::PDFObjectClassifier* m_classifier;
Mode m_mode = List;
};