Mapper (continuation)

This commit is contained in:
Jakub Melka
2020-11-28 17:50:14 +01:00
parent 41ec260793
commit 112ba7beb9
5 changed files with 509 additions and 22 deletions

View File

@@ -103,6 +103,9 @@ struct PDFObjectEditorModelAttribute
/// Enum items
PDFObjectEditorModelAttributeEnumItems enumItems;
/// Value for selector attribute
bool selectorAttributeValue = false;
};
class PDFFORQTLIBSHARED_EXPORT PDFObjectEditorAbstractModel : public QObject
@@ -117,9 +120,11 @@ public:
virtual ~PDFObjectEditorAbstractModel();
size_t getAttributeCount() const;
ObjectEditorAttributeType getAttributeType(size_t index) const;
const QString& getAttributeCategory(size_t index) const;
const QString& getAttributeSubcategory(size_t index) const;
const QString& getAttributeName(size_t index) const;
const PDFObjectEditorModelAttributeEnumItems& getAttributeEnumItems(size_t index) const;
enum class Question
{
@@ -134,6 +139,8 @@ public:
PDFObject getValue(size_t index) const;
PDFObject getDefaultValue(size_t index) const;
const PDFObjectStorage* getStorage() const { return m_storage; }
protected:
size_t createAttribute(ObjectEditorAttributeType type,
QByteArray attributeName,