Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeRubberSelectStrategy.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 Thomas Zander <zander@kde.org>
5
6
SPDX-License-Identifier: LGPL-2.0-or-later
7
*/
8
9
#ifndef KOSHAPERUBBERSELECTSTRATEGY_H
10
#define KOSHAPERUBBERSELECTSTRATEGY_H
11
12
#include "
KoInteractionStrategy.h
"
13
14
#include <QRectF>
15
16
#include "kritaflake_export.h"
17
18
class
KoToolBase
;
19
class
KoShapeRubberSelectStrategyPrivate
;
20
28
class
KRITAFLAKE_EXPORT
KoShapeRubberSelectStrategy
:
public
KoInteractionStrategy
29
{
30
public
:
40
KoShapeRubberSelectStrategy
(
KoToolBase
*tool,
const
QPointF &clicked,
bool
useSnapToGrid =
false
);
41
42
void
paint
(QPainter &painter,
const
KoViewConverter
&converter)
override
;
43
void
handleMouseMove
(
const
QPointF &mouseLocation, Qt::KeyboardModifiers modifiers)
override
;
44
KUndo2Command
*
createCommand
()
override
;
45
46
protected
:
48
KoShapeRubberSelectStrategy
(
KoShapeRubberSelectStrategyPrivate
&);
49
50
QRectF selectedRectangle()
const
;
51
52
enum
SelectionMode
{
53
CrossingSelection
,
54
CoveringSelection
55
};
56
57
virtual
SelectionMode
currentMode()
const
;
58
59
private
:
60
Q_DECLARE_PRIVATE(
KoShapeRubberSelectStrategy
)
61
};
62
63
#endif
/* KOSHAPERUBBERSELECTSTRATEGY_H */
SelectionMode
SelectionMode
Definition
KisSelectionTags.h:11
KoInteractionStrategy.h
KUndo2Command
Definition
kundo2stack.h:87
KoInteractionStrategy
Definition
KoInteractionStrategy.h:38
KoInteractionStrategy::handleMouseMove
virtual void handleMouseMove(const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers)=0
KoInteractionStrategy::createCommand
virtual KUndo2Command * createCommand()=0
KoInteractionStrategy::paint
virtual void paint(QPainter &painter, const KoViewConverter &converter)
Definition
KoInteractionStrategy.cpp:42
KoShapeRubberSelectStrategyPrivate
Definition
KoShapeRubberSelectStrategy_p.h:14
KoShapeRubberSelectStrategy
Definition
KoShapeRubberSelectStrategy.h:29
KoShapeRubberSelectStrategy::KoShapeRubberSelectStrategy
KoShapeRubberSelectStrategy(KoShapeRubberSelectStrategyPrivate &)
constructor
KoShapeRubberSelectStrategy::SelectionMode
SelectionMode
Definition
KoShapeRubberSelectStrategy.h:52
KoShapeRubberSelectStrategy::CrossingSelection
@ CrossingSelection
Definition
KoShapeRubberSelectStrategy.h:53
KoToolBase
Definition
KoToolBase.h:57
KoViewConverter
Definition
KoViewConverter.h:32
libs
flake
tools
KoShapeRubberSelectStrategy.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52