Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_advanced_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 Boudewijn Rempt <boud@valdyas.org>
4 * SPDX-FileCopyrightText: 2011 Srikanth Tiyyagura <srikanth.tulasiram@gmail.com>
5 * SPDX-FileCopyrightText: 2015 Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com>
6 *
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 */
9
10#ifndef _KIS_ADVANCED_COLOR_SPACE_SELECTOR_H_
11#define _KIS_ADVANCED_COLOR_SPACE_SELECTOR_H_
12
13#include <QWidget>
14#include <QDialog>
15#include "kritaui_export.h"
16
17#include "ui_wdgcolorspaceselectoradvanced.h"
18
19class KoID;
20class KoColorSpace;
21
22/* Use KisColorSpaceSelector instead of directly using this one*/
23
24class KRITAUI_EXPORT KisAdvancedColorSpaceSelector : public QDialog
25{
26 Q_OBJECT
27public:
28 KisAdvancedColorSpaceSelector(QWidget* parent, const QString &caption);
30 const KoColorSpace* currentColorSpace();
31 void setCurrentColorModel(const KoID& id);
32 void setCurrentColorDepth(const KoID& id);
33 void setCurrentProfile(const QString& name);
34 void setCurrentColorSpace(const KoColorSpace* colorSpace);
35Q_SIGNALS:
36 void selectionChanged(bool valid);
38private Q_SLOTS:
39 void fillCmbDepths(const KoID& idd);
40 void fillLstProfiles();
41 void fillDescription();
42 QString nameWhitePoint(QVector <double> whitePoint);
43 void colorSpaceChanged();
44 void installProfile();
45private:
46 struct Private;
47 Private * const d;
48};
49
50
51#endif
void selectionChanged(bool valid)
void colorSpaceChanged(const KoColorSpace *)
Definition KoID.h:30