|
Krita Source Code Documentation
|
A data extension mechanism for Krita. More...
#include <kis_annotation.h>
Inheritance diagram for KisAnnotation:Public Member Functions | |
| const QByteArray & | annotation () const |
| virtual KisAnnotation * | clone () const |
| const QString & | description () const |
| virtual QString | displayText () const |
| displayText: override this to return an interpreted version of the annotation | |
| 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 () |
Protected Member Functions | |
| KisAnnotation (const KisAnnotation &rhs) | |
Protected Member Functions inherited from KisShared | |
| KisShared () | |
| ~KisShared () | |
Protected Attributes | |
| QByteArray | m_annotation |
| QString | m_description |
| QString | m_type |
A data extension mechanism for Krita.
An annotation can be of something like a QByteArray or a QString or a more specific datatype that can be attached to an image (or maybe later, if needed, to a layer) and contains data that must be associated with an image for purposes of import/export.
Annotations will be saved to krita images and may be exported in filetypes that support them.
Examples of annotations are EXIF data and ICC profiles.
Definition at line 41 of file kis_annotation.h.
|
inline |
creates a new annotation object. The annotation object cannot be changed later.
| type | a non-localized string identifying the type of the annotation. There can only be one annotation of a given type attached to an image. |
| description | a localized string describing the annotation |
| data | a binary blob containing the annotation data |
Definition at line 56 of file kis_annotation.h.
|
inlinevirtual |
Definition at line 61 of file kis_annotation.h.
|
inlineprotected |
Definition at line 107 of file kis_annotation.h.
|
inline |
gets a binary blob representation of this annotation
Definition at line 91 of file kis_annotation.h.
|
inlinevirtual |
Reimplemented in PSDResourceBlock, and KisAnimatedBrushAnnotation.
Definition at line 63 of file kis_annotation.h.
|
inline |
gets a localized string describing the type of annotations for used interface purposes.
Definition at line 83 of file kis_annotation.h.
|
inlinevirtual |
displayText: override this to return an interpreted version of the annotation
Reimplemented in PSDResourceBlock.
Definition at line 102 of file kis_annotation.h.
|
inline |
Definition at line 95 of file kis_annotation.h.
|
inline |
gets a non-localized string identifying the type of the annotation.
Definition at line 73 of file kis_annotation.h.
|
protected |
Definition at line 119 of file kis_annotation.h.
|
protected |
Definition at line 118 of file kis_annotation.h.
|
protected |
Definition at line 117 of file kis_annotation.h.