Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_predefined_brush_chooser.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2004 Adrian Page <adrian@pagenet.plus.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#ifndef KIS_PREDEFINED_BRUSH_CHOOSER_H_
7#define KIS_PREDEFINED_BRUSH_CHOOSER_H_
8
9#include <QLabel>
10#include <kis_brush.h>
11
12#include "kritapaintop_export.h"
13#include "ui_wdgpredefinedbrushchooser.h"
14
15#include <lager/cursor.hpp>
16#include <KisBrushModel.h>
17
18
20class QLabel;
21class QCheckBox;
22
28class KoResource;
30
31
32class PAINTOP_EXPORT KisPredefinedBrushChooser : public QWidget, public Ui::WdgPredefinedBrushChooser
33{
34
35 Q_OBJECT
36
37public:
38 KisPredefinedBrushChooser(int maxBrushSize,
40 QWidget *parent = 0, const char *name = 0);
42
43 void setBrush(KisBrushSP brush);
44 void setImage(KisImageWSP image);
45
46 lager::reader<bool> lightnessModeEnabled() const;
47
48private Q_SLOTS:
49
50 void slotResetBrush();
51 void slotResetAdjustments();
52 void slotOpenStampBrush();
53 void slotOpenClipboardBrush();
54 void slotImportNewBrushResource();
55 void slotDeleteBrushResource();
56 void slotNewPredefinedBrush(KoResourceSP);
57 void slotBrushSelected(KoResourceSP resource);
58 void slotBrushPropertyChanged(KoResourceSignature signature);
59
60private:
61 struct Private;
62 const QScopedPointer<Private> m_d;
63
69};
70
71#endif // KIS_PREDEFINED_BRUSH_CHOOSER_H_
This class is a spinbox in which you can click and drag to set the value. A slider like bar is displa...
KisResourceItemChooser * m_itemChooser
void setBrush(KisBrushSP brush)
KisCustomBrushWidget * m_stampBrushWidget
const QScopedPointer< Private > m_d
KisClipboardBrushWidget * m_clipboardBrushWidget
A simple wrapper object for the main information about the resource.