File indexing completed on 2025-01-26 04:08:07
0001 /* 0002 * KisColorSpaceConversionDialog.h -- part of KimageShop^WKrayon^WKrita 0003 * 0004 * SPDX-FileCopyrightText: 2004 Boudewijn Rempt <boud@valdyas.org> 0005 * 0006 * SPDX-License-Identifier: GPL-2.0-or-later 0007 */ 0008 #ifndef KISCOLORSPACECONVERSIONDIALOG_H 0009 #define KISCOLORSPACECONVERSIONDIALOG_H 0010 0011 0012 #include <QButtonGroup> 0013 0014 #include <KoDialog.h> 0015 0016 #include <KoID.h> 0017 #include <KoColorConversionTransformation.h> 0018 #include "kis_types.h" 0019 0020 #include "kritaui_export.h" 0021 0022 #include "ui_wdgconvertcolorspace.h" 0023 0024 class KoColorSpace; 0025 0026 class KRITAUI_EXPORT WdgConvertColorSpace : public QWidget, public Ui::WdgConvertColorSpace 0027 { 0028 Q_OBJECT 0029 0030 public: 0031 WdgConvertColorSpace(QWidget *parent) : QWidget(parent) { 0032 setupUi(this); 0033 } 0034 }; 0035 0036 /** 0037 * XXX 0038 */ 0039 class KRITAUI_EXPORT KisColorSpaceConversionDialog : public KoDialog 0040 { 0041 0042 Q_OBJECT 0043 0044 public: 0045 0046 KisColorSpaceConversionDialog(QWidget * parent = 0, const char* name = 0); 0047 ~KisColorSpaceConversionDialog() override; 0048 0049 void setInitialColorSpace(const KoColorSpace *cs, KisImageSP entireImage); 0050 0051 const KoColorSpace *colorSpace() const; 0052 KoColorConversionTransformation::Intent conversionIntent() const; 0053 KoColorConversionTransformation::ConversionFlags conversionFlags() const; 0054 0055 WdgConvertColorSpace * m_page; 0056 0057 QButtonGroup m_intentButtonGroup; 0058 0059 public Q_SLOTS: 0060 void selectionChanged(bool); 0061 void okClicked(); 0062 void slotColorSpaceChanged(const KoColorSpace *cs); 0063 0064 private: 0065 KisImageSP m_image; 0066 }; 0067 0068 #endif // KISCOLORSPACECONVERSIONDIALOG_H