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
14class KoPathTool;
15class KoPathShape;
17class KoCanvasBase;
18
19
20class PathToolOptionWidget : public QWidget
21{
22 Q_OBJECT
23public:
24 enum Type {
27 };
28 Q_DECLARE_FLAGS(Types, Type)
29
30 explicit PathToolOptionWidget(KoPathTool *tool, QWidget *parent = 0);
31 ~PathToolOptionWidget() override;
32
33public Q_SLOTS:
34 void setSelectionType(int type);
35 void setCurrentShape(KoPathShape *pathShape);
36
37private Q_SLOTS:
39
40Q_SIGNALS:
42
43protected:
44 void showEvent(QShowEvent *event) override;
45
46private:
47 Ui::PathToolOptionWidgetBase widget;
48
53};
54
55Q_DECLARE_OPERATORS_FOR_FLAGS(PathToolOptionWidget::Types)
56
57#endif
Q_DECLARE_FLAGS(KisUpdaterContextSnapshotEx, KisUpdaterContextSnapshotExTag)
The position of a path point within a path shape.
Definition KoPathShape.h:63
PathToolOptionWidget(KoPathTool *tool, QWidget *parent=0)
void sigRequestUpdateActions()
KoShapeConfigWidgetBase * m_currentPanel
void setCurrentShape(KoPathShape *pathShape)
Ui::PathToolOptionWidgetBase widget
void showEvent(QShowEvent *event) override
Q_DECLARE_OPERATORS_FOR_FLAGS(KisBaseRectsWalker::SubtreeVisitFlags)