Krita Source Code Documentation
Loading...
Searching...
No Matches
dlg_separate.h
Go to the documentation of this file.
1/*
2 * dlg_imagesize.h -- part of KimageShop^WKrayon^WKrita
3 *
4 * SPDX-FileCopyrightText: 2005 Boudewijn Rempt <boud@valdyas.org>
5 *
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8#ifndef DLG_SEPARATE
9#define DLG_SEPARATE
10
11#include <KoDialog.h>
13#include "ui_wdg_separations.h"
14
15class WdgSeparations : public QWidget, public Ui::WdgSeparations
16{
17public:
18 WdgSeparations(QWidget *parent) : QWidget(parent) {
19 setupUi(this);
20 }
21};
22
27class DlgSeparate: public KoDialog
28{
29
30 Q_OBJECT
31
32public:
33
34 DlgSeparate(const QString & imageCS, const QString & layerCS, QWidget * parent = 0,
35 const char* name = 0);
36 ~DlgSeparate() override;
37
38public:
39
42
43 bool getDownscale();
44 void enableDownscale(bool enable);
45
46 bool getToColor();
48
49
50private Q_SLOTS:
51
53 void okClicked();
54 void separateToColorActivated(bool disable);
55
56private:
57
59 QString m_imageCS;
60 QString m_layerCS;
61 bool m_canDownScale {true};
62
63};
64
65#endif // DLG_SEPARATE
bool getDownscale()
void enableDownscale(bool enable)
QString m_imageCS
~DlgSeparate() override
enumSepSource getSource()
WdgSeparations * m_page
bool m_canDownScale
enumSepAlphaOptions getAlphaOptions()
DlgSeparate(const QString &imageCS, const QString &layerCS, QWidget *parent=0, const char *name=0)
bool getToColor()
void separateToColorActivated(bool disable)
void okClicked()
QString m_layerCS
bool getActivateCurrentChannel()
void slotSetColorSpaceLabel()
A dialog base class with standard buttons and predefined layouts.
Definition KoDialog.h:116
WdgSeparations(QWidget *parent)
enumSepAlphaOptions