1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 21:54:55 -04:00

Massive UI revamping (v7): updated basic channel settings and indicate stream index for MIMO device and single stream channel

This commit is contained in:
f4exb
2022-04-18 01:42:03 +02:00
parent 50a12b3a3f
commit 018b97e17d
105 changed files with 934 additions and 1044 deletions
+22
View File
@@ -63,6 +63,18 @@ void BasicChannelSettingsDialog::setReverseAPIChannelIndex(uint16_t channelIndex
ui->reverseAPIChannelIndex->setText(tr("%1").arg(m_reverseAPIChannelIndex));
}
void BasicChannelSettingsDialog::setNumberOfStreams(int numberOfStreams)
{
ui->streamIndex->setMaximum(numberOfStreams - 1);
ui->streamIndex->setEnabled(true);
}
void BasicChannelSettingsDialog::setStreamIndex(int index)
{
m_streamIndex = index;
ui->streamIndex->setValue(index);
}
void BasicChannelSettingsDialog::paintColor()
{
QPixmap pm(24, 24);
@@ -132,6 +144,16 @@ void BasicChannelSettingsDialog::on_reverseAPIChannelIndex_editingFinished()
}
}
void BasicChannelSettingsDialog::on_streamIndex_valueChanged(int value)
{
m_streamIndex = value;
}
void BasicChannelSettingsDialog::on_titleReset_clicked()
{
ui->title->setText(m_defaultTitle);
}
void BasicChannelSettingsDialog::accept()
{
m_channelMarker->blockSignals(true);