Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_cmb_composite.h
Go to the documentation of this file.
1/*
2 * widgets/kis_cmb_composite.h - part of KImageShop/Krayon/Krita
3 *
4 * SPDX-FileCopyrightText: 2004 Boudewijn Rempt (boud@valdyas.org)
5 * SPDX-FileCopyrightText: 2011 Silvio Heinrich <plassy@web.de>
6 *
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 */
9
10#ifndef KIS_COMPOSITEOP_WIDGETS_H_
11#define KIS_COMPOSITEOP_WIDGETS_H_
12
13#include <KisSqueezedComboBox.h>
14#include <kritaui_export.h>
16
17class KoID;
18class KoColorSpace;
20class KisAction;
22
24{
25 Q_OBJECT
26public:
27 KisCompositeOpListWidget(QWidget* parent = 0);
29
30 KoID selectedCompositeOp() const;
31
32public Q_SLOTS:
33 void setCompositeOp(const KoID &id);
34
35private:
37};
38
39
40class KRITAUI_EXPORT KisCompositeOpComboBox: public KisSqueezedComboBox
41{
42 Q_OBJECT
43public:
44 KisCompositeOpComboBox(QWidget* parent = 0);
45 KisCompositeOpComboBox(bool limitToLayerStyles, QWidget* parent = 0);
46 ~KisCompositeOpComboBox() override;
47
48 void hidePopup() override;
49
50 void validate(const KoColorSpace *cs);
51 void selectCompositeOp(const KoID &op);
52 KoID selectedCompositeOp() const;
53
54 void connectBlendmodeActions(KisActionManager *manager);
55
56 void wheelEvent(QWheelEvent *e) override;
57 void keyPressEvent(QKeyEvent *e) override;
58
59private Q_SLOTS:
60 void slotCategoryToggled(const QModelIndex& index, bool toggled);
61 void slotEntryChecked(const QModelIndex& index);
62
63 void slotNextBlendingMode();
64 void slotPreviousBlendingMode();
65 void slotNormal();
66 void slotDissolve();
67 void slotBehind();
68 void slotClear();
69 void slotDarken();
70 void slotMultiply();
71 void slotColorBurn();
72 void slotLinearBurn();
73 void slotLighten();
74 void slotScreen();
75 void slotColorDodge();
76 void slotLinearDodge();
77 void slotOverlay();
78 void slotHardOverlay();
79 void slotSoftLight();
80 void slotHardLight();
81 void slotVividLight();
82 void slotLinearLight();
83 void slotPinLight();
84 void slotHardMix();
85 void slotDifference();
86 void slotExclusion();
87 void slotHue();
88 void slotSaturation();
89 void slotColor();
90 void slotLuminosity();
91
92private:
93 void selectNeighbouringBlendMode(bool down);
94
95private:
99};
100
102{
103public:
104 KisLayerStyleCompositeOpComboBox(QWidget* parent = 0);
105};
106
107#endif // KIS_COMPOSITEOP_WIDGETS_H_
A KisActionManager class keeps track of KisActions. These actions are always associated with the GUI....
KisCategorizedListView * m_view
KisSortedCompositeOpListModel * m_model
KisSortedCompositeOpListModel * m_model
The KisSortedCompositeOpListModel class provides a model for the composite op combobox.
Definition KoID.h:30