Krita Source Code Documentation
Loading...
Searching...
No Matches
PathToolOptionWidget.h
Go to the documentation of this file.
1
/* This file is part of the KDE project
2
* SPDX-FileCopyrightText: 2007 Thomas Zander <zander@kde.org>
3
*
4
* SPDX-License-Identifier: LGPL-2.0-or-later
5
*/
6
#ifndef PATHTOOLOPTIONWIDGET_H
7
#define PATHTOOLOPTIONWIDGET_H
8
9
#include <QWidget>
10
#include <QFlags>
11
12
#include <ui_PathToolOptionWidgetBase.h>
13
14
class
KoPathTool
;
15
class
KoPathShape
;
16
class
KoShapeConfigWidgetBase
;
17
class
KoCanvasBase
;
18
19
20
class
PathToolOptionWidget
:
public
QWidget
21
{
22
Q_OBJECT
23
public
:
24
enum
Type
{
25
PlainPath
= 1,
26
ParametricShape
= 2
27
};
28
Q_DECLARE_FLAGS
(Types,
Type
)
29
30
explicit
PathToolOptionWidget
(
KoPathTool
*tool, QWidget *parent = 0);
31
~PathToolOptionWidget
()
override
;
32
33
public
Q_SLOTS:
34
void
setSelectionType
(
int
type);
35
void
setCurrentShape
(
KoPathShape
*pathShape);
36
37
private
Q_SLOTS:
38
void
slotShapePropertyChanged
();
39
40
Q_SIGNALS:
41
void
sigRequestUpdateActions
();
42
43
protected
:
44
void
showEvent
(QShowEvent *event)
override
;
45
46
private
:
47
Ui::PathToolOptionWidgetBase
widget
;
48
49
KoPathShape
*
m_currentShape
;
50
QString
m_currentShapeId
;
51
KoShapeConfigWidgetBase
*
m_currentPanel
;
52
KoCanvasBase
*
m_canvas
;
53
};
54
55
Q_DECLARE_OPERATORS_FOR_FLAGS
(PathToolOptionWidget::Types)
56
57
#endif
Q_DECLARE_FLAGS
Q_DECLARE_FLAGS(KisUpdaterContextSnapshotEx, KisUpdaterContextSnapshotExTag)
KoCanvasBase
Definition
KoCanvasBase.cpp:24
KoPathShape
The position of a path point within a path shape.
Definition
KoPathShape.h:63
KoPathTool
Definition
KoPathTool.h:36
KoShapeConfigWidgetBase
Definition
KoShapeConfigWidgetBase.h:33
PathToolOptionWidget
Definition
PathToolOptionWidget.h:21
PathToolOptionWidget::PathToolOptionWidget
PathToolOptionWidget(KoPathTool *tool, QWidget *parent=0)
Definition
PathToolOptionWidget.cpp:21
PathToolOptionWidget::Type
Type
Definition
PathToolOptionWidget.h:24
PathToolOptionWidget::PlainPath
@ PlainPath
Definition
PathToolOptionWidget.h:25
PathToolOptionWidget::ParametricShape
@ ParametricShape
Definition
PathToolOptionWidget.h:26
PathToolOptionWidget::sigRequestUpdateActions
void sigRequestUpdateActions()
PathToolOptionWidget::m_currentShape
KoPathShape * m_currentShape
Definition
PathToolOptionWidget.h:49
PathToolOptionWidget::setSelectionType
void setSelectionType(int type)
Definition
PathToolOptionWidget.cpp:53
PathToolOptionWidget::m_currentPanel
KoShapeConfigWidgetBase * m_currentPanel
Definition
PathToolOptionWidget.h:51
PathToolOptionWidget::setCurrentShape
void setCurrentShape(KoPathShape *pathShape)
Definition
PathToolOptionWidget.cpp:76
PathToolOptionWidget::widget
Ui::PathToolOptionWidgetBase widget
Definition
PathToolOptionWidget.h:47
PathToolOptionWidget::m_canvas
KoCanvasBase * m_canvas
Definition
PathToolOptionWidget.h:52
PathToolOptionWidget::~PathToolOptionWidget
~PathToolOptionWidget() override
Definition
PathToolOptionWidget.cpp:49
PathToolOptionWidget::slotShapePropertyChanged
void slotShapePropertyChanged()
Definition
PathToolOptionWidget.cpp:137
PathToolOptionWidget::m_currentShapeId
QString m_currentShapeId
Definition
PathToolOptionWidget.h:50
PathToolOptionWidget::showEvent
void showEvent(QShowEvent *event) override
Definition
PathToolOptionWidget.cpp:147
Q_DECLARE_OPERATORS_FOR_FLAGS
Q_DECLARE_OPERATORS_FOR_FLAGS(KisBaseRectsWalker::SubtreeVisitFlags)
libs
flake
tools
PathToolOptionWidget.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52