Krita Source Code Documentation
Loading...
Searching...
No Matches
KisColorSelectorInterface.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Boudewijn Rempt <boud@valdyas.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef KISCOLORSELECTORINTERFACE_H
8#define KISCOLORSELECTORINTERFACE_H
9
10#include "kritawidgets_export.h"
11
12#include <QWidget>
13#include <KoColor.h>
14
16class KoColorSpace;
17
18class KRITAWIDGETS_EXPORT KisColorSelectorInterface : public QWidget {
19 Q_OBJECT
20public:
21 KisColorSelectorInterface(QWidget *parent = 0)
22 : QWidget(parent)
23 {}
25 virtual void setConfig(bool forceCircular, bool forceSelfUpdate)
26 {
27 Q_UNUSED(forceCircular);
28 Q_UNUSED(forceSelfUpdate);
29 }
30 virtual void setDisplayRenderer (const KoColorDisplayRendererInterface *displayRenderer)
31 {
32 Q_UNUSED(displayRenderer);
33 }
34
35 virtual KoColor getCurrentColor() const = 0;
36
37Q_SIGNALS:
38 void sigNewColor(const KoColor &c);
39
40public Q_SLOTS:
41 virtual void slotSetColor(const KoColor &c) = 0;
51 virtual void slotSetColorSpace(const KoColorSpace *cs);
52};
53
54#endif // KISCOLORSELECTORINTERFACE_H
virtual void slotSetColor(const KoColor &c)=0
void sigNewColor(const KoColor &c)
KisColorSelectorInterface(QWidget *parent=0)
virtual void setDisplayRenderer(const KoColorDisplayRendererInterface *displayRenderer)
virtual void setConfig(bool forceCircular, bool forceSelfUpdate)
virtual KoColor getCurrentColor() const =0