Krita Source Code Documentation
Loading...
Searching...
No Matches
KisGamutMaskChooser.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2018 Anna Medonosova <anna.medonosova@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7
8#ifndef KISGAMUTMASKCHOOSER_H
9#define KISGAMUTMASKCHOOSER_H
10
11#include <QWidget>
12
14#include <KoResource.h>
16
18
19class KisGamutMaskChooser : public QWidget
20{
21 Q_OBJECT
22public:
23 explicit KisGamutMaskChooser(QWidget *parent = nullptr);
24 ~KisGamutMaskChooser() override;
25
26 enum ViewMode {
27 THUMBNAIL, // Shows thumbnails
28 DETAIL // Shows thumbnails with text next to it
29 };
30
31 void setCurrentResource(KoResourceSP resource);
32
33protected:
34 void resizeEvent(QResizeEvent* event) override;
35
36Q_SIGNALS:
38
39private Q_SLOTS:
40 void resourceSelected(KoResourceSP resource);
42 void slotSetModeDetail();
43
44private:
45 void setViewMode(ViewMode mode);
46 void updateViewSettings();
50};
51
52#endif // KISGAMUTMASKCHOOSER_H
void resizeEvent(QResizeEvent *event) override
void setCurrentResource(KoResourceSP resource)
KisResourceItemChooser * m_itemChooser
void resourceSelected(KoResourceSP resource)
void setViewMode(ViewMode mode)
KisGamutMaskDelegate * m_delegate
KisGamutMaskChooser(QWidget *parent=nullptr)
void sigGamutMaskSelected(KoGamutMaskSP mask)
The resource item delegate for rendering the resource preview.