histogram: implemented histogram widget

This commit is contained in:
itsmattkc
2020-04-21 01:29:08 +10:00
parent 6f4bf70d3e
commit bdb13e88f5
5 changed files with 208 additions and 3 deletions
+7 -1
View File
@@ -57,7 +57,8 @@ ScopePanel::ScopePanel(QWidget* parent) :
stack_->addWidget(waveform_view_);
// Create histogram
stack_->addWidget(new QWidget());
histogram_ = new HistogramScope();
stack_->addWidget(histogram_);
connect(scope_type_combobox_, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged), stack_, &QStackedWidget::setCurrentIndex);
@@ -88,6 +89,11 @@ void ScopePanel::DrewManagedTexture(OpenGLTexture *texture)
waveform_view_->SetTexture(texture);
}
void ScopePanel::SetBuffer(Frame *frame)
{
histogram_->SetBuffer(frame);
}
void ScopePanel::Retranslate()
{
SetTitle(tr("Scope"));