1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-25 04:53:27 -04:00

GLScope: trace memory implementation. GLScopeGUI: widgets placement reorganization

This commit is contained in:
f4exb
2015-11-03 03:08:48 +01:00
parent 754a34c4b2
commit 490bccc5a1
6 changed files with 220 additions and 232 deletions
+13
View File
@@ -51,6 +51,7 @@ void GLScopeGUI::setBuddies(MessageQueue* messageQueue, ScopeVis* scopeVis, GLSc
m_messageQueue = messageQueue;
m_scopeVis = scopeVis;
m_glScope = glScope;
ui->memHistory->setMaximum((1<<GLScope::m_memHistorySizeLog2)-1);
connect(m_glScope, SIGNAL(traceSizeChanged(int)), this, SLOT(on_scope_traceSizeChanged(int)));
connect(m_glScope, SIGNAL(sampleRateChanged(int)), this, SLOT(on_scope_sampleRateChanged(int)));
applySettings();
@@ -734,6 +735,18 @@ void GLScopeGUI::on_trigLevelFine_valueChanged(int value)
applyTriggerSettings();
}
void GLScopeGUI::on_memHistory_valueChanged(int value)
{
QString text;
text.sprintf("%02d", value % (1<<GLScope::m_memHistorySizeLog2));
ui->memIndexText->setText(text);
if(m_glScope != NULL)
{
m_glScope->setMemHistoryShift(value % (1<<GLScope::m_memHistorySizeLog2));
}
}
void GLScopeGUI::on_slopePos_clicked()
{
m_triggerPositiveEdge = true;