1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-12 18:58:48 -04:00

SSB modulator: use settings in GUI (3)

This commit is contained in:
f4exb
2017-10-20 21:19:42 +02:00
parent f3513f9d9a
commit d2c7b6c26b
6 changed files with 44 additions and 27 deletions
+6 -1
View File
@@ -7,7 +7,8 @@
BasicChannelSettingsWidget::BasicChannelSettingsWidget(ChannelMarker* marker, QWidget* parent) :
QWidget(parent),
ui(new Ui::BasicChannelSettingsWidget),
m_channelMarker(marker)
m_channelMarker(marker),
m_hasChanged(false)
{
ui->setupUi(this);
ui->title->setText(m_channelMarker->getTitle());
@@ -24,6 +25,7 @@ BasicChannelSettingsWidget::~BasicChannelSettingsWidget()
void BasicChannelSettingsWidget::on_title_textChanged(const QString& text)
{
m_channelMarker->setTitle(text);
m_hasChanged = true;
}
void BasicChannelSettingsWidget::on_colorBtn_clicked()
@@ -33,12 +35,14 @@ void BasicChannelSettingsWidget::on_colorBtn_clicked()
if(c.isValid()) {
m_channelMarker->setColor(c);
paintColor();
m_hasChanged = true;
}
}
void BasicChannelSettingsWidget::on_address_textEdited(const QString& arg1)
{
m_channelMarker->setUDPAddress(arg1);
m_hasChanged = true;
}
void BasicChannelSettingsWidget::on_port_textEdited(const QString& arg1)
@@ -52,6 +56,7 @@ void BasicChannelSettingsWidget::on_port_textEdited(const QString& arg1)
}
m_channelMarker->setUDPReceivePort(udpPort);
m_hasChanged = true;
}
void BasicChannelSettingsWidget::paintColor()