When visible, this panel will show the current reference and display transformed color under the cursor of any viewer.
24 lines
532 B
C++
24 lines
532 B
C++
#include "pixelsamplerpanel.h"
|
|
|
|
PixelSamplerPanel::PixelSamplerPanel(QWidget *parent) :
|
|
PanelWidget(parent)
|
|
{
|
|
// FIXME: This won't work if there's ever more than one of this panel
|
|
setObjectName("ProjectPanel");
|
|
|
|
sampler_widget_ = new ManagedPixelSamplerWidget();
|
|
setWidget(sampler_widget_);
|
|
|
|
Retranslate();
|
|
}
|
|
|
|
void PixelSamplerPanel::SetValues(const Color &reference, const Color &display)
|
|
{
|
|
sampler_widget_->SetValues(reference, display);
|
|
}
|
|
|
|
void PixelSamplerPanel::Retranslate()
|
|
{
|
|
SetTitle(tr("Pixel Sampler"));
|
|
}
|