1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-23 00:18:37 -05:00

Tx supoort: removed file record option. Unify play button status colors

This commit is contained in:
f4exb 2017-01-04 21:11:51 +01:00
parent 3479559859
commit a4f286835d
5 changed files with 4 additions and 54 deletions

View File

@ -324,20 +324,6 @@ void BladerfOutputGui::on_startStop_toggled(bool checked)
} }
} }
void BladerfOutputGui::on_record_toggled(bool checked)
{
// if (checked)
// {
// ui->record->setStyleSheet("QToolButton { background-color : red; }");
// m_fileSink->startRecording();
// }
// else
// {
// ui->record->setStyleSheet("QToolButton { background:rgb(79,79,79); }");
// m_fileSink->stopRecording();
// }
}
void BladerfOutputGui::updateHardware() void BladerfOutputGui::updateHardware()
{ {
qDebug() << "BladerfGui::updateHardware"; qDebug() << "BladerfGui::updateHardware";

View File

@ -76,7 +76,6 @@ private slots:
void on_vga2_valueChanged(int value); void on_vga2_valueChanged(int value);
void on_xb200_currentIndexChanged(int index); void on_xb200_currentIndexChanged(int index);
void on_startStop_toggled(bool checked); void on_startStop_toggled(bool checked);
void on_record_toggled(bool checked);
void updateHardware(); void updateHardware();
void updateStatus(); void updateStatus();
}; };

View File

@ -59,21 +59,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="ButtonSwitch" name="record">
<property name="toolTip">
<string>Toggle record I/Q samples from device</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="../../../sdrbase/resources/res.qrc">
<normaloff>:/record_off.png</normaloff>
<normalon>:/record_on.png</normalon>:/record_off.png</iconset>
</property>
</widget>
</item>
</layout> </layout>
</item> </item>
<item> <item>
@ -277,26 +262,6 @@
<string>2</string> <string>2</string>
</property> </property>
</item> </item>
<item>
<property name="text">
<string>4</string>
</property>
</item>
<item>
<property name="text">
<string>8</string>
</property>
</item>
<item>
<property name="text">
<string>16</string>
</property>
</item>
<item>
<property name="text">
<string>32</string>
</property>
</item>
</widget> </widget>
</item> </item>
</layout> </layout>

View File

@ -229,10 +229,10 @@ void FileSinkGui::updateStatus()
ui->startStop->setStyleSheet("QToolButton { background-color : blue; }"); ui->startStop->setStyleSheet("QToolButton { background-color : blue; }");
break; break;
case DSPDeviceSinkEngine::StRunning: case DSPDeviceSinkEngine::StRunning:
ui->startStop->setStyleSheet("QToolButton { background-color : green; }"); ui->startStop->setStyleSheet("QToolButton { background-color : red; }");
break; break;
case DSPDeviceSinkEngine::StError: case DSPDeviceSinkEngine::StError:
ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); ui->startStop->setStyleSheet("QToolButton { background-color : magenta; }");
QMessageBox::information(this, tr("Message"), m_deviceAPI->errorMessage()); QMessageBox::information(this, tr("Message"), m_deviceAPI->errorMessage());
break; break;
default: default:

View File

@ -54,8 +54,8 @@
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../../../sdrbase/resources/res.qrc"> <iconset resource="../../../sdrbase/resources/res.qrc">
<normaloff>:/record_off.png</normaloff> <normaloff>:/play.png</normaloff>
<normalon>:/stop.png</normalon>:/record_off.png</iconset> <normalon>:/stop.png</normalon>:/play.png</iconset>
</property> </property>
</widget> </widget>
</item> </item>