Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_common_colors.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2010 Adam Celarek <kdedev at xibo dot at>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef KIS_COMMON_COLORS_H
8#define KIS_COMMON_COLORS_H
9
10#include <QToolButton>
11
12#include <QMutex>
13#include <QTimer>
14#include "kis_color_patches.h"
15#include <kis_types.h>
16
18{
19Q_OBJECT
20public:
21 explicit KisCommonColors(QWidget *parent = 0);
22 void setCanvas(KisCanvas2 *canvas) override;
23 void unsetCanvas() override {}
24 KisColorSelectorBase* createPopup() const override;
25
26public Q_SLOTS:
28 void updateSettings() override;
29 void recalculate();
30
31private:
32 QMutex m_mutex;
34 QToolButton* m_reloadButton;
37};
38
39#endif
QList< KoColor > colors() const
Base class for all color selectors, that should support color management and zooming.
void unsetCanvas() override
KisColorSelectorBase * createPopup() const override
QToolButton * m_reloadButton
void updateSettings() override
QList< KoColor > m_calculatedColors
void setColors(QList< KoColor > colors)
void setCanvas(KisCanvas2 *canvas) override
KisCommonColors(QWidget *parent=0)