File indexing completed on 2024-12-22 04:09:13

0001 /* This file is part of the KDE project
0002  *
0003  * SPDX-FileCopyrightText: 2006-2007, 2010 Thomas Zander <zander@kde.org>
0004  *
0005  * SPDX-License-Identifier: LGPL-2.0-or-later
0006  */
0007 
0008 #ifndef KOINTERACTIONTOOLPRIVATE_H
0009 #define KOINTERACTIONTOOLPRIVATE_H
0010 
0011 #include "KoToolBase_p.h"
0012 #include "KoInteractionStrategy.h"
0013 #include "KoInteractionStrategyFactory.h"
0014 
0015 class KoInteractionToolPrivate : public KoToolBasePrivate
0016 {
0017 public:
0018     KoInteractionToolPrivate(KoToolBase *qq, KoCanvasBase *canvas)
0019         : KoToolBasePrivate(qq, canvas),
0020         currentStrategy(0)
0021     {
0022     }
0023 
0024     ~KoInteractionToolPrivate() {
0025         delete currentStrategy;
0026     }
0027 
0028     QPointF lastPoint;
0029     KoInteractionStrategy *currentStrategy;
0030     QList<QSharedPointer<KoInteractionStrategyFactory>> interactionFactories;
0031 };
0032 
0033 #endif