Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_color_space_selector.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2007 Cyrille Berger <cberger@cberger.net>
3 * SPDX-FileCopyrightText: 2011 Srikanth Tiyyagura <srikanth.tulasiram@gmail.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
7
8#ifndef _KIS_COLOR_SPACE_SELECTOR_H_
9#define _KIS_COLOR_SPACE_SELECTOR_H_
10
11#include <QWidget>
12#include <kritaui_export.h>
13
14class KoID;
15class KoColorSpace;
17
18class KRITAUI_EXPORT KisColorSpaceSelector : public QWidget
19{
20 Q_OBJECT
21public:
22 KisColorSpaceSelector(QWidget* parent);
23 ~KisColorSpaceSelector() override;
24 const KoColorSpace* currentColorSpace();
25 void setCurrentColorModel(const KoID& id);
26 void setCurrentColorDepth(const KoID& id);
27 void setCurrentProfile(const QString& name);
28 void setCurrentColorSpace(const KoColorSpace* colorSpace);
29 void showColorBrowserButton(bool showButton);
30 void showDepth(bool showDepth);
31Q_SIGNALS:
36 void selectionChanged(bool valid);
39private Q_SLOTS:
40 void fillCmbDepths(const KoID& idd);
41 void fillCmbProfiles();
42 void colorSpaceChanged();
43 void installProfile();
44 void slotOpenAdvancedSelector();
45 void slotProfileValid(bool valid);
46
47 void slotModelsComboBoxActivated(const KoID& id);
48 void slotDepthsComboBoxActivated();
49 void slotProfilesComboBoxActivated();
50private:
51 struct Private;
52 Private * const d;
53
54};
55
56
57#endif
void selectionChanged(bool valid)
void colorSpaceChanged(const KoColorSpace *)
This signal is emitted, when a new color space is selected, that can be used (eg is valid)
Definition KoID.h:30