|
Krita Source Code Documentation
|
#include <psd_resource_block.h>
Inheritance diagram for PSDResourceBlock:Public Member Functions | |
| KisAnnotation * | clone () const Q_DECL_OVERRIDE |
| QString | displayText () const override |
| displayText: override this to return an interpreted version of the annotation | |
| PSDResourceBlock () | |
| bool | read (QIODevice &io) |
| bool | valid () |
| bool | write (QIODevice &io) const |
| ~PSDResourceBlock () override | |
Public Member Functions inherited from KisAnnotation | |
| const QByteArray & | annotation () const |
| const QString & | description () const |
| KisAnnotation (const QString &type, const QString &description, const QByteArray &data) | |
| void | setAnnotation (const QByteArray ba) |
| const QString & | type () const |
| virtual | ~KisAnnotation () |
Public Member Functions inherited from KisShared | |
| bool | deref () |
| bool | ref () |
| int | refCount () |
| QAtomicInt * | sharedWeakReference () |
Public Attributes | |
| QByteArray | data |
| quint32 | dataSize |
| QString | error |
| quint16 | identifier |
| QString | name |
| PSDInterpretedResource * | resource |
Additional Inherited Members | |
Protected Member Functions inherited from KisAnnotation | |
| KisAnnotation (const KisAnnotation &rhs) | |
Protected Member Functions inherited from KisShared | |
| KisShared () | |
| ~KisShared () | |
Protected Attributes inherited from KisAnnotation | |
| QByteArray | m_annotation |
| QString | m_description |
| QString | m_type |
Contains the unparsed contents of the image resource blocks
Definition at line 70 of file psd_resource_block.h.
| PSDResourceBlock::PSDResourceBlock | ( | ) |
Definition at line 18 of file psd_resource_block.cpp.
|
inlineoverride |
Definition at line 75 of file psd_resource_block.h.
|
inlinevirtual |
Reimplemented from KisAnnotation.
Definition at line 80 of file psd_resource_block.h.
|
inlineoverridevirtual |
displayText: override this to return an interpreted version of the annotation
Reimplemented from KisAnnotation.
Definition at line 105 of file psd_resource_block.h.
| bool PSDResourceBlock::read | ( | QIODevice & | io | ) |
Definition at line 26 of file psd_resource_block.cpp.
References data, dataSize, dbgFile, error, PSDImageResourceSection::GLOBAL_ALT, PSDImageResourceSection::GLOBAL_ANGLE, PSDImageResourceSection::GRID_GUIDE, PSDImageResourceSection::ICC_PROFILE, identifier, PSDImageResourceSection::idToString(), PSDInterpretedResource::interpretBlock(), KisAnnotation::m_annotation, KisAnnotation::m_description, KisAnnotation::m_type, name, psdread(), psdread_pascalstring(), PSDImageResourceSection::RESN_INFO, resource, and valid().
| bool PSDResourceBlock::valid | ( | ) |
Definition at line 294 of file psd_resource_block.cpp.
References data, dataSize, error, identifier, and PSDImageResourceSection::UNKNOWN.
| bool PSDResourceBlock::write | ( | QIODevice & | io | ) | const |
We can actually handle LAYER_SELECTION_ID. It consists of a number of layers and a list of IDs to select, which are retrieved from 'lyid' additional layer block.
Definition at line 248 of file psd_resource_block.cpp.
References PSDInterpretedResource::createBlock(), data, dataSize, dbgFile, displayText(), PSDInterpretedResource::error, error, identifier, PSDImageResourceSection::idToString(), PSDImageResourceSection::LAYER_COMPS, PSDImageResourceSection::LAYER_GROUP, PSDImageResourceSection::LAYER_GROUP_ENABLED_ID, PSDImageResourceSection::LAYER_SELECTION_ID, PSDImageResourceSection::LAYER_STATE, name, psdwrite(), psdwrite_pascalstring(), resource, and PSDInterpretedResource::valid().
| QByteArray PSDResourceBlock::data |
Definition at line 120 of file psd_resource_block.h.
| quint32 PSDResourceBlock::dataSize |
Definition at line 119 of file psd_resource_block.h.
|
mutable |
Definition at line 124 of file psd_resource_block.h.
| quint16 PSDResourceBlock::identifier |
Definition at line 117 of file psd_resource_block.h.
| QString PSDResourceBlock::name |
Definition at line 118 of file psd_resource_block.h.
| PSDInterpretedResource* PSDResourceBlock::resource |
Definition at line 122 of file psd_resource_block.h.