mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Object classifier
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user