Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeConfigWidgetBase.h
Go to the documentation of this file.
1
/* This file is part of the KDE project
2
* SPDX-FileCopyrightText: 2006-2007 Thomas Zander <zander@kde.org>
3
*
4
* SPDX-License-Identifier: LGPL-2.0-or-later
5
*/
6
7
#ifndef KOSHAPECONFIGWIDGETBASE_H
8
#define KOSHAPECONFIGWIDGETBASE_H
9
10
#include <QWidget>
11
12
#include "kritaflake_export.h"
13
14
class
KoShape
;
15
class
KUndo2Command
;
16
class
KoUnit
;
17
class
KoCanvasResourceProvider
;
18
32
class
KRITAFLAKE_EXPORT
KoShapeConfigWidgetBase
:
public
QWidget
33
{
34
Q_OBJECT
35
public
:
39
KoShapeConfigWidgetBase
();
40
~KoShapeConfigWidgetBase
()
override
;
41
47
virtual
void
open
(
KoShape
*shape) = 0;
53
virtual
void
save
() = 0;
54
61
virtual
void
setUnit(
const
KoUnit
&unit);
62
64
void
setResourceManager(
KoCanvasResourceProvider
*rm);
65
67
virtual
bool
showOnShapeCreate();
68
70
virtual
bool
showOnShapeSelect();
71
73
virtual
KUndo2Command
* createCommand();
74
75
Q_SIGNALS:
77
void
propertyChanged
();
78
80
void
accept
();
81
82
protected
:
83
KoCanvasResourceProvider
*
m_resourceManager
;
84
};
85
86
#endif
KUndo2Command
Definition
kundo2stack.h:87
KoCanvasResourceProvider
Definition
KoCanvasResourceProvider.cpp:38
KoShapeConfigWidgetBase
Definition
KoShapeConfigWidgetBase.h:33
KoShapeConfigWidgetBase::open
virtual void open(KoShape *shape)=0
KoShapeConfigWidgetBase::propertyChanged
void propertyChanged()
is emitted after one of the config options has changed
KoShapeConfigWidgetBase::m_resourceManager
KoCanvasResourceProvider * m_resourceManager
the resource provider with data for this canvas
Definition
KoShapeConfigWidgetBase.h:83
KoShapeConfigWidgetBase::save
virtual void save()=0
KoShapeConfigWidgetBase::accept
void accept()
is emitted when the dialog should be accepted ie a file double clicked in a filebrowser
KoShape
Definition
KoShape.h:92
KoUnit
Definition
KoUnit.h:71
libs
flake
KoShapeConfigWidgetBase.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52