Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
/* This file is part of the KDE project
*
* SPDX-FileCopyrightText: 2006-2007, 2010 Thomas Zander <[email protected]>
*
* SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef KOINTERACTIONTOOLPRIVATE_H
#define KOINTERACTIONTOOLPRIVATE_H
#include "KoToolBase_p.h"
#include "KoInteractionStrategy.h"
#include "KoInteractionStrategyFactory.h"
class KoInteractionToolPrivate : public KoToolBasePrivate
{
public:
KoInteractionToolPrivate(KoToolBase *qq, KoCanvasBase *canvas)
: KoToolBasePrivate(qq, canvas),
currentStrategy(0)
{
}
~KoInteractionToolPrivate() {
delete currentStrategy;
}
QPointF lastPoint;
KoInteractionStrategy *currentStrategy;
QList<QSharedPointer<KoInteractionStrategyFactory>> interactionFactories;
};
#endif