6#ifndef KISSCREENCOLORSAMPLER_H
7#define KISSCREENCOLORSAMPLER_H
9#include <QScopedPointer>
16#include "kritaui_export.h"
32 bool handleColorSamplingMouseMove(QMouseEvent *e);
33 bool handleColorSamplingMouseButtonRelease(QMouseEvent *e);
34 bool handleColorSamplingKeyPress(QKeyEvent *e);
39 bool performRealColorSamplingOfCanvas()
const;
48 void sampleScreenColor();
49 void setPerformRealColorSamplingOfCanvas(
bool enable);
50 void setCurrentColor(
KoColor c);
54 void updateColorSampling();
56 void changeEvent(QEvent *event)
override;
59 const QScopedPointer<Private>
m_d;
61 KoColor grabScreenColor(
const QPoint &
p);
62 void updateColorLabelText(
const QPoint &globalPos);
63 void releaseColorSampling();
64 void continueUpdateColorSampling(
const QPoint &globalPos);
71 bool eventFilter(QObject *, QEvent *event)
override;
virtual void updateIcons()=0
reloads icon(s) when theme is updated
The KisScreenColorSampler class Based on the original QColorDialog's screen color picker,...
void sigNewColorHovered(KoColor c)
const QScopedPointer< Private > m_d
void sigNewColorSampled(KoColor c)
static KisScreenColorSampler * createScreenColorSampler(QWidget *parent=0)
bool eventFilter(QObject *, QEvent *event) override
KisScreenColorSamplingEventFilter(KisScreenColorSampler *w, QObject *parent=0)
KisScreenColorSampler * m_w