Files
oak-editor/app/panel/pixelsampler/pixelsamplerpanel.cpp
T
itsmattkc 6ea6dd810e pixelsampler: added pixel sampler panel
When visible, this panel will show the current reference and display transformed
color under the cursor of any viewer.
2020-04-01 16:57:10 +11:00

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"));
}