Krita Source Code Documentation
Loading...
Searching...
No Matches
KoInteractionStrategy.h
Go to the documentation of this file.
1
/* This file is part of the KDE project
2
3
SPDX-FileCopyrightText: 2006 Thorsten Zachmann <zachmann@kde.org>
4
SPDX-FileCopyrightText: 2006-2007, 2009 Thomas Zander <zander@kde.org>
5
SPDX-FileCopyrightText: 2011 Jan Hambrecht <jaham@gmx.net>
6
7
SPDX-License-Identifier: LGPL-2.0-or-later
8
*/
9
10
#ifndef KOINTERACTIONSTRATEGY_H
11
#define KOINTERACTIONSTRATEGY_H
12
13
#include "kritaflake_export.h"
14
15
#include <Qt>
16
17
class
KoPointerEvent
;
18
class
KoViewConverter
;
19
class
KoInteractionStrategyPrivate
;
20
class
KoToolBase
;
21
class
KUndo2Command
;
22
class
QPointF;
23
class
QPainter;
24
class
KoColorDisplayRendererInterface
;
25
38
class
KRITAFLAKE_EXPORT
KoInteractionStrategy
39
{
40
public
:
42
explicit
KoInteractionStrategy
(
KoToolBase
*parent);
44
virtual
~KoInteractionStrategy
();
45
50
virtual
void
paint(QPainter &painter,
const
KoViewConverter
&converter,
const
KoColorDisplayRendererInterface
*displayRendererInterface);
57
virtual
void
handleMouseMove
(
const
QPointF &mouseLocation, Qt::KeyboardModifiers modifiers) = 0;
58
64
virtual
KUndo2Command
*
createCommand
() = 0;
69
virtual
void
cancelInteraction();
73
virtual
void
finishInteraction
(Qt::KeyboardModifiers modifiers) = 0;
74
75
KoToolBase
*tool()
const
;
76
77
protected
:
79
KoInteractionStrategy
(
KoInteractionStrategyPrivate
&);
80
81
KoInteractionStrategyPrivate
*
d_ptr
;
82
84
uint
handleRadius()
const
;
85
86
uint
decorationThickness()
const
;
87
89
uint
grabSensitivity()
const
;
90
91
private
:
92
Q_DECLARE_PRIVATE(
KoInteractionStrategy
)
93
};
94
95
#endif
uint
unsigned int uint
Definition
KoIntegerMaths.h:44
KUndo2Command
Definition
kundo2stack.h:87
KoColorDisplayRendererInterface
Definition
KoColorDisplayRendererInterface.h:29
KoInteractionStrategyPrivate
Definition
KoInteractionStrategy_p.h:13
KoInteractionStrategy
Definition
KoInteractionStrategy.h:39
KoInteractionStrategy::handleMouseMove
virtual void handleMouseMove(const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers)=0
KoInteractionStrategy::d_ptr
KoInteractionStrategyPrivate * d_ptr
Definition
KoInteractionStrategy.h:81
KoInteractionStrategy::createCommand
virtual KUndo2Command * createCommand()=0
KoInteractionStrategy::finishInteraction
virtual void finishInteraction(Qt::KeyboardModifiers modifiers)=0
KoPointerEvent
Definition
KoPointerEvent.cpp:93
KoToolBase
Definition
KoToolBase.h:57
KoViewConverter
Definition
KoViewConverter.h:32
libs
flake
tools
KoInteractionStrategy.h
Generated at
2026-06-01 02:30:02+02:00
from
Krita
branch
master
, commit
a9b6c3f4afae3a0c297c10252e67294f96104a6a