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
11
#include "
KoInteractionStrategy_p.h
"
12
#include "
KoParameterShape.h
"
13
14
class
KoParameterChangeStrategyPrivate
:
public
KoInteractionStrategyPrivate
15
{
16
public
:
17
KoParameterChangeStrategyPrivate
(
KoToolBase
*owner,
KoParameterShape
*paramShape,
int
handle)
18
:
KoInteractionStrategyPrivate
(owner)
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
25
releasePoint
=
startPoint
;
26
}
27
KoParameterShape
*
const
parameterShape
;
28
const
int
handleId
;
29
const
QPointF
startPoint
;
30
QPointF
releasePoint
;
31
Qt::KeyboardModifiers
lastModifierUsed
;
32
};
33
34
#endif
// KOPARAMETERCHANGESTRATEGYPRIVATE_H
KoInteractionStrategy_p.h
KoParameterShape.h
KoInteractionStrategyPrivate
Definition
KoInteractionStrategy_p.h:13
KoParameterChangeStrategyPrivate
Definition
KoParameterChangeStrategy_p.h:15
KoParameterChangeStrategyPrivate::startPoint
const QPointF startPoint
the starting position of the control point
Definition
KoParameterChangeStrategy_p.h:29
KoParameterChangeStrategyPrivate::releasePoint
QPointF releasePoint
Definition
KoParameterChangeStrategy_p.h:30
KoParameterChangeStrategyPrivate::handleId
const int handleId
the id of the control point
Definition
KoParameterChangeStrategy_p.h:28
KoParameterChangeStrategyPrivate::parameterShape
KoParameterShape *const parameterShape
the parametric shape we are working on
Definition
KoParameterChangeStrategy_p.h:27
KoParameterChangeStrategyPrivate::lastModifierUsed
Qt::KeyboardModifiers lastModifierUsed
Definition
KoParameterChangeStrategy_p.h:31
KoParameterChangeStrategyPrivate::KoParameterChangeStrategyPrivate
KoParameterChangeStrategyPrivate(KoToolBase *owner, KoParameterShape *paramShape, int handle)
Definition
KoParameterChangeStrategy_p.h:17
KoParameterShape
Definition
KoParameterShape.h:35
KoToolBase
Definition
KoToolBase.h:57
libs
flake
tools
KoParameterChangeStrategy_p.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52