40 d->manager.setResource(key,
value);
45 return d->manager.resource(key);
71 return d->manager.koColorResource(key);
77 return d->manager.boolResource(key);
82 return d->manager.intResource(key);
87 return d->manager.stringResource(key);
92 return d->manager.sizeResource(key);
97 return d->manager.hasResource(key);
102 d->manager.clearResource(key);
float value(const T *src, size_t ch)
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
qreal documentResolution() const
~KoDocumentResourceManager() override
QString stringResource(int key) const
void setUndoStack(KUndo2Stack *undoStack)
int grabSensitivity() const
Returns the actual grab sensitivity.
KoDocumentResourceManager(QObject *parent=0)
KoColor koColorResource(int key) const
bool boolResource(int key) const
void setResource(int key, const QVariant &value)
bool hasResource(int key) const
void clearResource(int key)
QSizeF sizeResource(int key) const
KUndo2Stack * undoStack() const
QRectF documentRectInPixels() const
KoResourceManager manager
void setGrabSensitivity(int grabSensitivity)
void resourceChanged(int key, const QVariant &value)
@ 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.
int intResource(int key) const
QVariant resource(int key) const
The KoResourceManager class provides access to the currently active resources for a given canvas....
void resourceChanged(int key, const QVariant &value)
#define KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE(cond, val)