Krita Source Code Documentation
Loading...
Searching...
No Matches
KoActiveCanvasResourceDependency.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2020 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#ifndef KOACTIVECANVASRESOURCEDEPENDENCY_H
7#define KOACTIVECANVASRESOURCEDEPENDENCY_H
8
9#include <QScopedPointer>
10#include <QSharedPointer>
11#include "kritaflake_export.h"
12
13
24class KRITAFLAKE_EXPORT KoActiveCanvasResourceDependency
25{
26public:
27 KoActiveCanvasResourceDependency(int sourceKey, int targetKey);
29
33 int sourceKey() const;
34
38 int targetKey() const;
39
44 virtual bool shouldUpdateSource(QVariant &source, const QVariant &target) = 0;
45
46private:
47 struct Private;
48 const QScopedPointer<Private> m_d;
49};
50
52
53#endif // KOACTIVECANVASRESOURCEDEPENDENCY_H
KisMagneticGraph::vertex_descriptor target(typename KisMagneticGraph::edge_descriptor e, KisMagneticGraph g)
KisMagneticGraph::vertex_descriptor source(typename KisMagneticGraph::edge_descriptor e, KisMagneticGraph g)
QSharedPointer< KoActiveCanvasResourceDependency > KoActiveCanvasResourceDependencySP
A representation of dependency between different canvas resources stored in KoResourceManager.
virtual bool shouldUpdateSource(QVariant &source, const QVariant &target)=0