Krita Source Code Documentation
Loading...
Searching...
No Matches
KisDlgInternalColorSelector Class Reference

The KisInternalColorSelector class. More...

#include <KisDlgInternalColorSelector.h>

+ Inheritance diagram for KisDlgInternalColorSelector:

Classes

struct  Config
 
struct  Private
 

Public Slots

void reject () override
 
void setPreviousColor (KoColor c)
 setPreviousColor set the previous color.
 
void slotColorUpdated (KoColor newColor)
 slotColorUpdated Very important slot. Is connected to krita's resources to make sure it has the currently active color. It's very important that this function is able to understand when the signal came from itself.
 
void slotSetColorFromPatch (KoColorPatch *patch)
 slotSetColorFromPatch update current color from kocolorpatch.
 

Signals

void signalForegroundColorChosen (KoColor color)
 signalForegroundColorChosen The most important signal. This will sent out when a color has been chosen from the selector. There will be a small delay to make sure that the selector causes too many updates.
 

Public Member Functions

void chooseAlpha (bool chooseAlpha)
 
void colorSpaceChanged (const KoColorSpace *cs)
 slotColorSpaceChanged Color space has changed, use this dialog to change the colorspace.
 
KoColor getCurrentColor ()
 getCurrentColor
 
 KisDlgInternalColorSelector (QWidget *parent, KoColor color, Config config, const QString &caption, const KoColorDisplayRendererInterface *displayRenderer=KoDumbColorDisplayRenderer::instance())
 
void lockUsedColorSpace (const KoColorSpace *cs)
 lockUsedColorSpace Lock the used colorspace of this selector.
 
void setDisplayRenderer (const KoColorDisplayRendererInterface *displayRenderer)
 setDisplayRenderer Set the display renderer. This is necessary for HDR color manage support.
 
 ~KisDlgInternalColorSelector () override
 

Static Public Member Functions

static KoColor getModalColorDialog (const KoColor color, QWidget *parent=0, QString caption=QString())
 getModalColorDialog Execute this dialog modally. The function returns the KoColor you want.
 
static void setScreenColorSamplerFactory (std::function< KisScreenColorSamplerBase *(QWidget *)> f)
 

Protected Member Functions

void showEvent (QShowEvent *event) override
 

Private Slots

void endUpdateWithNewColor ()
 
void slotChangePalette (KoColorSetSP set)
 
void slotFinishUp ()
 slotFinishUp This is called when the selector is closed, for saving the current palette.
 
void slotSelectorModelChanged ()
 
void slotSetColorFromHex ()
 slotSetColorFromHex Update from the hex color input.
 

Private Member Functions

void focusInEvent (QFocusEvent *) override
 
void updateAllElements (QObject *source)
 updateAllElements Updates each widget with the new element, and if it's responsible for the update sents a signal out that there's a new color.
 

Private Attributes

const QScopedPointer< Privatem_d
 
Ui_WdgDlgInternalColorSelector * m_ui
 

Static Private Attributes

static std::function< KisScreenColorSamplerBase *(QWidget *) s_screenColorSamplerFactory )
 

Detailed Description

The KisInternalColorSelector class.

A non-modal color selector dialog that is not a plugin and can thus be used for filters.

Definition at line 29 of file KisDlgInternalColorSelector.h.

Constructor & Destructor Documentation

◆ KisDlgInternalColorSelector()

KisDlgInternalColorSelector::KisDlgInternalColorSelector ( QWidget * parent,
KoColor color,
Config config,
const QString & caption,
const KoColorDisplayRendererInterface * displayRenderer = KoDumbColorDisplayRenderer::instance() )

Definition at line 57 of file KisDlgInternalColorSelector.cpp.

58 : QDialog(parent)
59 , m_d(new Private)
60{
61 setModal(config.modal);
62 setFocusPolicy(Qt::ClickFocus);
63 m_ui = new Ui_WdgDlgInternalColorSelector();
64 m_ui->setupUi(this);
65
66 setWindowTitle(caption);
67
68 m_d->selectorModel = m_ui->visualSelector->selectorModel();
69
70 m_d->currentColor = color;
71 m_d->currentColorSpace = m_d->currentColor.colorSpace();
72 m_d->displayRenderer = displayRenderer;
73
74 m_ui->spinboxselector->slotSetColor(color);
75 connect(m_ui->spinboxselector, SIGNAL(sigNewColor(KoColor)), this, SLOT(slotColorUpdated(KoColor)));
76
77 m_ui->spinboxHSXSelector->setModel(m_d->selectorModel);
78
79 m_ui->visualSelector->setDisplayRenderer(displayRenderer);
80 m_ui->visualSelector->setConfig(false, config.modal);
81 if (config.visualColorSelector) {
82 connect(m_d->selectorModel.data(), SIGNAL(sigNewColor(KoColor)), this, SLOT(slotColorUpdated(KoColor)));
83 connect(m_d->selectorModel.data(), SIGNAL(sigColorModelChanged()), this, SLOT(slotSelectorModelChanged()));
84 connect(KisConfigNotifier::instance(), SIGNAL(configChanged()), m_ui->visualSelector, SLOT(slotConfigurationChanged()));
85 } else {
86 m_ui->visualSelector->hide();
87 }
88 m_ui->visualSelector->slotSetColor(color);
89
90 m_d->paletteChooser = new KisPaletteChooser(this);
91 m_d->paletteModel = new KisPaletteModel(this);
92 m_ui->bnPaletteChooser->setIcon(KisIconUtils::loadIcon("palette-library"));
93 m_ui->bnPaletteChooser->setToolTip(i18n("Load a palette"));
94 m_ui->paletteBox->setPaletteModel(m_d->paletteModel);
95 m_ui->paletteBox->setDisplayRenderer(displayRenderer);
96 m_ui->cmbNameList->setCompanionView(m_ui->paletteBox);
97 connect(m_d->paletteChooser, SIGNAL(sigPaletteSelected(KoColorSetSP)), this, SLOT(slotChangePalette(KoColorSetSP)));
98 connect(m_ui->cmbNameList, SIGNAL(sigColorSelected(KoColor)), SLOT(slotColorUpdated(KoColor)));
99
100 // For some bizarre reason, the modal dialog doesn't like having the colorset set, so let's not.
101 if (config.paletteBox) {
102 //TODO: Add disable signal as well. Might be not necessary...?
103 KConfigGroup cfg(KSharedConfig::openConfig()->group(""));
104 QString paletteMd5 = cfg.readEntry("internal_selector_active_color_set_md5", QString());
105 QString paletteName = cfg.readEntry("internal_selector_active_color_set", QString());
107 KoColorSetSP savedPal = rServer->resource(paletteMd5, "", paletteName);
108 if (savedPal) {
109 this->slotChangePalette(savedPal);
110 } else {
111 if (rServer->resourceCount()) {
112 savedPal = rServer->firstResource();
113 if (savedPal) {
114 this->slotChangePalette(savedPal);
115 }
116 }
117 }
118
119 connect(m_ui->paletteBox, SIGNAL(sigColorSelected(KoColor)), this,
121 m_ui->bnPaletteChooser->setPopupWidget(m_d->paletteChooser);
122 } else {
123 m_ui->paletteBox->setEnabled(false);
124 m_ui->cmbNameList->setEnabled(false);
125 m_ui->bnPaletteChooser->setEnabled(false);
126 }
127
128 if (config.prevNextButtons) {
129 m_ui->currentColor->setColor(m_d->currentColor);
130 m_ui->currentColor->setDisplayRenderer(displayRenderer);
131 m_ui->previousColor->setColor(m_d->previousColor);
132 m_ui->previousColor->setDisplayRenderer(displayRenderer);
133 connect(m_ui->previousColor, SIGNAL(triggered(KoColorPatch*)), SLOT(slotSetColorFromPatch(KoColorPatch*)));
134 } else {
135 m_ui->currentColor->hide();
136 m_ui->previousColor->hide();
137 }
138
139 if (config.hexInput) {
140 m_d->sRGB.fromKoColor(m_d->currentColor);
141 m_d->hexColorInput = new KisHexColorInput(this, &m_d->sRGB);
142 m_d->hexColorInput->update();
143 connect(m_d->hexColorInput, SIGNAL(updated()), SLOT(slotSetColorFromHex()));
144 m_ui->rightPane->addWidget(m_d->hexColorInput);
145 m_d->hexColorInput->setToolTip(i18n("This is a hexcode input, for webcolors. It can only get colors in the sRGB space."));
146 }
147
148 // KisScreenColorSampler is in the kritaui module, so dependency inversion is used to access it.
149 m_ui->screenColorSamplerWidget->setLayout(new QHBoxLayout());
151 m_d->screenColorSampler = s_screenColorSamplerFactory(m_ui->screenColorSamplerWidget);
152 m_ui->screenColorSamplerWidget->layout()->addWidget(m_d->screenColorSampler);
153 if (config.screenColorSampler) {
154 connect(m_d->screenColorSampler, SIGNAL(sigNewColorSampled(KoColor)),this, SLOT(slotColorUpdated(KoColor)));
155 } else {
156 m_d->screenColorSampler->hide();
157 }
158 }
159
160 m_d->compressColorChanges = new KisSignalCompressor(100 /* ms */, KisSignalCompressor::POSTPONE, this);
161 connect(m_d->compressColorChanges, SIGNAL(timeout()), this, SLOT(endUpdateWithNewColor()));
162
163 KGuiItem::assign(m_ui->buttonBox->button(QDialogButtonBox::Ok), KStandardGuiItem::ok());
164 KGuiItem::assign(m_ui->buttonBox->button(QDialogButtonBox::Cancel), KStandardGuiItem::cancel());
165 connect(m_ui->buttonBox, SIGNAL(accepted()), this, SLOT(accept()), Qt::UniqueConnection);
166 connect(m_ui->buttonBox, SIGNAL(rejected()), this, SLOT(reject()), Qt::UniqueConnection);
167
168 connect(this, SIGNAL(finished(int)), SLOT(slotFinishUp()));
169}
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
static KisConfigNotifier * instance()
static std::function< KisScreenColorSamplerBase *(QWidget *) s_screenColorSamplerFactory)
void slotColorUpdated(KoColor newColor)
slotColorUpdated Very important slot. Is connected to krita's resources to make sure it has the curre...
void slotFinishUp()
slotFinishUp This is called when the selector is closed, for saving the current palette.
void slotSetColorFromPatch(KoColorPatch *patch)
slotSetColorFromPatch update current color from kocolorpatch.
void slotSetColorFromHex()
slotSetColorFromHex Update from the hex color input.
const QScopedPointer< Private > m_d
Ui_WdgDlgInternalColorSelector * m_ui
The KisPaletteModel class This, together with KisPaletteView and KisPaletteDelegate forms a mvc way t...
const KoColorSpace * colorSpace() const
return the current colorSpace
Definition KoColor.h:82
int resourceCount() const
QSharedPointer< T > resource(const QString &md5, const QString &fileName, const QString &name)
resource retrieves a resource. If the md5sum is not empty, the resource will only be retrieved if a r...
QSharedPointer< T > firstResource() const
Return the first resource available.
QIcon loadIcon(const QString &name)
static KoResourceServerProvider * instance()
KoResourceServer< KoColorSet > * paletteServer

References KoColor::colorSpace(), connect(), endUpdateWithNewColor(), KoResourceServer< T >::firstResource(), KisDlgInternalColorSelector::Config::hexInput, KisConfigNotifier::instance(), KoResourceServerProvider::instance(), KisIconUtils::loadIcon(), m_d, m_ui, KisDlgInternalColorSelector::Config::modal, KisDlgInternalColorSelector::Config::paletteBox, KoResourceServerProvider::paletteServer, KisSignalCompressor::POSTPONE, KisDlgInternalColorSelector::Config::prevNextButtons, reject(), KoResourceServer< T >::resource(), KoResourceServer< T >::resourceCount(), s_screenColorSamplerFactory, KisDlgInternalColorSelector::Config::screenColorSampler, slotChangePalette(), slotColorUpdated(), slotFinishUp(), slotSelectorModelChanged(), slotSetColorFromHex(), slotSetColorFromPatch(), and KisDlgInternalColorSelector::Config::visualColorSelector.

◆ ~KisDlgInternalColorSelector()

KisDlgInternalColorSelector::~KisDlgInternalColorSelector ( )
override

Definition at line 171 of file KisDlgInternalColorSelector.cpp.

172{
173 delete m_ui;
174}

References m_ui.

Member Function Documentation

◆ chooseAlpha()

void KisDlgInternalColorSelector::chooseAlpha ( bool chooseAlpha)

Definition at line 257 of file KisDlgInternalColorSelector.cpp.

258{
259 m_d->chooseAlpha = chooseAlpha;
260}

References chooseAlpha(), and m_d.

◆ colorSpaceChanged()

void KisDlgInternalColorSelector::colorSpaceChanged ( const KoColorSpace * cs)

slotColorSpaceChanged Color space has changed, use this dialog to change the colorspace.

Definition at line 207 of file KisDlgInternalColorSelector.cpp.

208{
209 if (cs == m_d->currentColorSpace) {
210 return;
211 }
212
213 m_d->currentColorSpace = KoColorSpaceRegistry::instance()->colorSpace(cs->colorModelId().id(), cs->colorDepthId().id(), cs->profile());
214 m_ui->spinboxselector->slotSetColorSpace(m_d->currentColorSpace);
215 m_ui->visualSelector->slotSetColorSpace(m_d->currentColorSpace);
216
217}
virtual KoID colorModelId() const =0
virtual KoID colorDepthId() const =0
virtual const KoColorProfile * profile() const =0
QString id() const
Definition KoID.cpp:63
const KoColorSpace * colorSpace(const QString &colorModelId, const QString &colorDepthId, const KoColorProfile *profile)
static KoColorSpaceRegistry * instance()

References KoColorSpace::colorDepthId(), KoColorSpace::colorModelId(), KoColorSpaceRegistry::colorSpace(), KoID::id(), KoColorSpaceRegistry::instance(), m_d, m_ui, and KoColorSpace::profile().

◆ endUpdateWithNewColor

void KisDlgInternalColorSelector::endUpdateWithNewColor ( )
privateslot

Definition at line 341 of file KisDlgInternalColorSelector.cpp.

342{
343 Q_EMIT signalForegroundColorChosen(m_d->currentColor);
344 m_d->allowUpdates = true;
345}
void signalForegroundColorChosen(KoColor color)
signalForegroundColorChosen The most important signal. This will sent out when a color has been chose...

References m_d, and signalForegroundColorChosen().

◆ focusInEvent()

void KisDlgInternalColorSelector::focusInEvent ( QFocusEvent * )
overrideprivate

Definition at line 347 of file KisDlgInternalColorSelector.cpp.

348{
349 //setPreviousColor();
350}

◆ getCurrentColor()

KoColor KisDlgInternalColorSelector::getCurrentColor ( )

getCurrentColor

Returns
gives currently active color;

Definition at line 252 of file KisDlgInternalColorSelector.cpp.

253{
254 return m_d->currentColor;
255}

References m_d.

◆ getModalColorDialog()

KoColor KisDlgInternalColorSelector::getModalColorDialog ( const KoColor color,
QWidget * parent = 0,
QString caption = QString() )
static

getModalColorDialog Execute this dialog modally. The function returns the KoColor you want.

Parameters
color- The current color. Make sure this is in the color space you want your end color to be in.
parentparent widget.
captionthe dialog caption.

Definition at line 243 of file KisDlgInternalColorSelector.cpp.

244{
245 Config config = Config();
246 KisDlgInternalColorSelector dialog(parent, color, config, caption);
247 dialog.setPreviousColor(color);
248 dialog.exec();
249 return dialog.getCurrentColor();
250}
The KisInternalColorSelector class.

◆ lockUsedColorSpace()

void KisDlgInternalColorSelector::lockUsedColorSpace ( const KoColorSpace * cs)

lockUsedColorSpace Lock the used colorspace of this selector.

Parameters
cs

Definition at line 219 of file KisDlgInternalColorSelector.cpp.

220{
222 if (m_d->currentColor.colorSpace() != m_d->currentColorSpace) {
223 m_d->currentColor.convertTo(m_d->currentColorSpace);
224 m_ui->spinboxselector->slotSetColor(m_d->currentColor);
225 m_ui->visualSelector->slotSetColor(m_d->currentColor);
226 }
227 m_d->lockUsedCS = true;
228}
void colorSpaceChanged(const KoColorSpace *cs)
slotColorSpaceChanged Color space has changed, use this dialog to change the colorspace.

References colorSpaceChanged(), m_d, and m_ui.

◆ reject

void KisDlgInternalColorSelector::reject ( )
overrideslot

Definition at line 267 of file KisDlgInternalColorSelector.cpp.

268{
269 slotColorUpdated(m_d->previousColor);
270 QDialog::reject();
271}

References m_d, and slotColorUpdated().

◆ setDisplayRenderer()

void KisDlgInternalColorSelector::setDisplayRenderer ( const KoColorDisplayRendererInterface * displayRenderer)

setDisplayRenderer Set the display renderer. This is necessary for HDR color manage support.

Parameters
displayRenderer

Definition at line 230 of file KisDlgInternalColorSelector.cpp.

231{
232 if (displayRenderer) {
233 m_d->displayRenderer = displayRenderer;
234 m_ui->visualSelector->setDisplayRenderer(displayRenderer);
235 m_ui->currentColor->setDisplayRenderer(displayRenderer);
236 m_ui->previousColor->setDisplayRenderer(displayRenderer);
237 m_ui->paletteBox->setDisplayRenderer(displayRenderer);
238 } else {
239 m_d->displayRenderer = KoDumbColorDisplayRenderer::instance();
240 }
241}
static KoColorDisplayRendererInterface * instance()

References KoDumbColorDisplayRenderer::instance(), m_d, and m_ui.

◆ setPreviousColor

void KisDlgInternalColorSelector::setPreviousColor ( KoColor c)
slot

setPreviousColor set the previous color.

Definition at line 262 of file KisDlgInternalColorSelector.cpp.

263{
264 m_d->previousColor = c;
265}

References m_d.

◆ setScreenColorSamplerFactory()

static void KisDlgInternalColorSelector::setScreenColorSamplerFactory ( std::function< KisScreenColorSamplerBase *(QWidget *)> f)
inlinestatic

Definition at line 37 of file KisDlgInternalColorSelector.h.

◆ showEvent()

void KisDlgInternalColorSelector::showEvent ( QShowEvent * event)
overrideprotected

Definition at line 377 of file KisDlgInternalColorSelector.cpp.

378{
380 QDialog::showEvent(event);
381}
void updateAllElements(QObject *source)
updateAllElements Updates each widget with the new element, and if it's responsible for the update se...

References updateAllElements().

◆ signalForegroundColorChosen

void KisDlgInternalColorSelector::signalForegroundColorChosen ( KoColor color)
signal

signalForegroundColorChosen The most important signal. This will sent out when a color has been chosen from the selector. There will be a small delay to make sure that the selector causes too many updates.

Do not connect this to slotColorUpdated.

Parameters
colorThe new color chosen

◆ slotChangePalette

void KisDlgInternalColorSelector::slotChangePalette ( KoColorSetSP set)
privateslot

Definition at line 369 of file KisDlgInternalColorSelector.cpp.

370{
371 if (!set) {
372 return;
373 }
374 m_d->paletteModel->setColorSet(set);
375}

References m_d.

◆ slotColorUpdated

void KisDlgInternalColorSelector::slotColorUpdated ( KoColor newColor)
slot

slotColorUpdated Very important slot. Is connected to krita's resources to make sure it has the currently active color. It's very important that this function is able to understand when the signal came from itself.

Parameters
newColorThis is the new color.

Definition at line 176 of file KisDlgInternalColorSelector.cpp.

177{
178 // not-so-nice solution: if someone calls this slot directly and that code was
179 // triggered by our compressor signal, our compressor is technically the sender()!
180 if (sender() == m_d->compressColorChanges) {
181 return;
182 }
183 // Do not accept external updates while a color update Q_EMIT is pending;
184 // Note: Assumes external updates only come from parent(), a separate slot might be better
185 if (m_d->allowUpdates || (QObject::sender() && QObject::sender() != this->parent())) {
186 // Enforce palette colors
187 KConfigGroup group(KSharedConfig::openConfig(), "");
188 if (group.readEntry("colorsettings/forcepalettecolors", false)) {
189 newColor = m_ui->paletteBox->closestColor(newColor);
190 }
191
192 if (m_d->lockUsedCS){
193 newColor.convertTo(m_d->currentColorSpace);
194 } else {
195 colorSpaceChanged(newColor.colorSpace());
196 }
197 m_d->currentColor = newColor;
198 updateAllElements(QObject::sender());
199 }
200}
void convertTo(const KoColorSpace *cs, KoColorConversionTransformation::Intent renderingIntent, KoColorConversionTransformation::ConversionFlags conversionFlags)
Definition KoColor.cpp:136

References KoColor::colorSpace(), colorSpaceChanged(), KoColor::convertTo(), m_d, m_ui, and updateAllElements().

◆ slotFinishUp

void KisDlgInternalColorSelector::slotFinishUp ( )
privateslot

slotFinishUp This is called when the selector is closed, for saving the current palette.

Definition at line 352 of file KisDlgInternalColorSelector.cpp.

353{
354 setPreviousColor(m_d->currentColor);
355 KConfigGroup cfg(KSharedConfig::openConfig()->group(""));
356 if (m_d->paletteModel) {
357 if (m_d->paletteModel->colorSet()) {
358 cfg.writeEntry("internal_selector_active_color_set_md5", m_d->paletteModel->colorSet()->md5Sum());
359 cfg.writeEntry("internal_selector_active_color_set", m_d->paletteModel->colorSet()->name());
360 }
361 }
362}
void setPreviousColor(KoColor c)
setPreviousColor set the previous color.

References m_d, and setPreviousColor().

◆ slotSelectorModelChanged

void KisDlgInternalColorSelector::slotSelectorModelChanged ( )
privateslot

Definition at line 307 of file KisDlgInternalColorSelector.cpp.

308{
309 if (m_d->selectorModel->isHSXModel()) {
310 QString label;
311 switch (m_d->selectorModel->colorModel()) {
313 label = i18n("HSV");
314 break;
316 label = i18n("HSL");
317 break;
319 label = i18n("HSI");
320 break;
322 label = i18n("HSY'");
323 break;
324 default:
325 label = i18n("Unknown");
326 }
327 if (m_ui->tabWidget->count() == 1) {
328 m_ui->tabWidget->addTab(m_ui->tab_hsx, label);
329 }
330 else {
331 m_ui->tabWidget->setTabText(1, label);
332 }
333 }
334 else {
335 if (m_ui->tabWidget->count() == 2) {
336 m_ui->tabWidget->removeTab(1);
337 }
338 }
339}

References KisVisualColorModel::HSI, KisVisualColorModel::HSL, KisVisualColorModel::HSV, KisVisualColorModel::HSY, m_d, and m_ui.

◆ slotSetColorFromHex

void KisDlgInternalColorSelector::slotSetColorFromHex ( )
privateslot

slotSetColorFromHex Update from the hex color input.

Definition at line 364 of file KisDlgInternalColorSelector.cpp.

365{
366 slotColorUpdated(m_d->sRGB);
367}

References m_d, and slotColorUpdated().

◆ slotSetColorFromPatch

void KisDlgInternalColorSelector::slotSetColorFromPatch ( KoColorPatch * patch)
slot

slotSetColorFromPatch update current color from kocolorpatch.

Parameters
patch

Definition at line 202 of file KisDlgInternalColorSelector.cpp.

203{
204 slotColorUpdated(patch->color());
205}
KoColor color() const

References KoColorPatch::color(), and slotColorUpdated().

◆ updateAllElements()

void KisDlgInternalColorSelector::updateAllElements ( QObject * source)
private

updateAllElements Updates each widget with the new element, and if it's responsible for the update sents a signal out that there's a new color.

Definition at line 273 of file KisDlgInternalColorSelector.cpp.

274{
275 //update everything!!!
276 if (source != m_ui->spinboxselector) {
277 m_ui->spinboxselector->slotSetColor(m_d->currentColor);
278 }
279
280 if (source != m_ui->visualSelector) {
281 m_ui->visualSelector->slotSetColor(m_d->currentColor);
282 }
283
284 if (source != m_d->hexColorInput) {
285 m_d->sRGB.fromKoColor(m_d->currentColor);
286 m_d->hexColorInput->update();
287 }
288
289 if (source != m_ui->paletteBox) {
290 m_ui->paletteBox->selectClosestColor(m_d->currentColor);
291 }
292
293 m_ui->previousColor->setColor(m_d->previousColor);
294
295 m_ui->currentColor->setColor(m_d->currentColor);
296
297 if (source && source != this->parent()) {
298 m_d->allowUpdates = false;
299 m_d->compressColorChanges->start();
300 }
301
302 if (m_d->screenColorSampler) {
303 m_d->screenColorSampler->updateIcons();
304 }
305}
KisMagneticGraph::vertex_descriptor source(typename KisMagneticGraph::edge_descriptor e, KisMagneticGraph g)
ChildIterator< value_type, is_const > parent(const ChildIterator< value_type, is_const > &it)
Definition KisForest.h:327

References m_d, m_ui, and source().

Member Data Documentation

◆ m_d

const QScopedPointer<Private> KisDlgInternalColorSelector::m_d
private

Definition at line 173 of file KisDlgInternalColorSelector.h.

◆ m_ui

Ui_WdgDlgInternalColorSelector* KisDlgInternalColorSelector::m_ui
private

Definition at line 171 of file KisDlgInternalColorSelector.h.

◆ s_screenColorSamplerFactory

std::function<KisScreenColorSamplerBase *(QWidget *) KisDlgInternalColorSelector::s_screenColorSamplerFactory)
staticprivate

Definition at line 33 of file KisDlgInternalColorSelector.h.


The documentation for this class was generated from the following files: