8#ifndef KO_DOCUMENTRESOURCEMANAGER_H
9#define KO_DOCUMENTRESOURCEMANAGER_H
13#include "kritaflake_export.h"
73 KoPageAppStart = 9000,
91 void setResource(
int key,
const QVariant &
value);
99 void setResource(
int key,
const KoColor &color);
107 void setResource(
int key,
KoShape *shape);
115 void setResource(
int key,
const KoUnit &unit);
123 QVariant resource(
int key)
const;
130 bool boolResource(
int key)
const;
137 int intResource(
int key)
const;
144 KoColor koColorResource(
int key)
const;
158 QString stringResource(
int key)
const;
165 QSizeF sizeResource(
int key)
const;
179 bool hasResource(
int key)
const;
187 void clearResource(
int key);
196 void setGrabSensitivity(
int grabSensitivity);
198 int grabSensitivity()
const;
203 qreal documentResolution()
const;
204 QRectF documentRectInPixels()
const;
float value(const T *src, size_t ch)
KoShape * koShapeResource(int key) const
KoUnit unitResource(int key) const
KoDocumentResourceManager & operator=(const KoDocumentResourceManager &)
KoDocumentResourceManager(const KoDocumentResourceManager &)
void resourceChanged(int key, const QVariant &value)
@ OdfDocument
OBSOLETE The document this canvas shows.
@ UndoStack
The document-wide undo stack (KUndo2Stack)
@ DocumentRectInPixels
Bounds of the document in pixels.
@ DocumentResolution
Pixels-per-inch resolution of the document.
@ GrabSensitivity
The grab sensitivity used for grabbing handles of any kind.
@ MarkerCollection
The collection holding all markers.