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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user