Krita Source Code Documentation
Loading...
Searching...
No Matches
KoParameterChangeStrategy_p.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
8#ifndef KOPARAMETERCHANGESTRATEGYPRIVATE_H
9#define KOPARAMETERCHANGESTRATEGYPRIVATE_H
10
12#include "KoParameterShape.h"
13
15{
16public:
19 , parameterShape(paramShape)
20 , handleId(handle)
21 , startPoint(paramShape->shapeToDocument(paramShape->handlePosition(handle)))
22 {
23 // initialize release point with start point position to prevent
24 // change when just clicking a handle without moving the mouse
26 }
28 const int handleId;
29 const QPointF startPoint;
30 QPointF releasePoint;
31 Qt::KeyboardModifiers lastModifierUsed;
32};
33
34#endif // KOPARAMETERCHANGESTRATEGYPRIVATE_H
const QPointF startPoint
the starting position of the control point
const int handleId
the id of the control point
KoParameterShape *const parameterShape
the parametric shape we are working on
KoParameterChangeStrategyPrivate(KoToolBase *owner, KoParameterShape *paramShape, int handle)