Krita Source Code Documentation
Loading...
Searching...
No Matches
KoParameterChangeStrategy.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 SPDX-FileCopyrightText: 2006 Thorsten Zachmann <zachmann@kde.org>
3 SPDX-FileCopyrightText: 2007 Thomas Zander <zander@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7#ifndef KOPARAMETERCHANGESTRATEGY_H
8#define KOPARAMETERCHANGESTRATEGY_H
9
10#include "kritaflake_export.h"
12#include <QPointF>
13
16
18class KRITAFLAKE_EXPORT KoParameterChangeStrategy : public KoInteractionStrategy
19{
20public:
27 KoParameterChangeStrategy(KoToolBase *tool, KoParameterShape *parameterShape, int handleId);
29
30 void handleMouseMove(const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers) override;
31 void finishInteraction(Qt::KeyboardModifiers modifiers) override;
32 KUndo2Command* createCommand() override;
33
34protected:
37
38private:
39 Q_DECLARE_PRIVATE(KoParameterChangeStrategy)
40};
41
42#endif /* KOPARAMETERCHANGESTRATEGY_H */
virtual void handleMouseMove(const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers)=0
virtual KUndo2Command * createCommand()=0
virtual void finishInteraction(Qt::KeyboardModifiers modifiers)=0
Strategy for changing control points of parametric shapes.