mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-08-02 14:02:27 -04:00
DATV demod: refactored audio and video GUI
This commit is contained in:
parent
2d86373418
commit
5b300c1033
@ -186,7 +186,10 @@ DATVDemodGUI::DATVDemodGUI(PluginAPI* objPluginAPI, DeviceUISet *deviceUISet, Ba
|
|||||||
m_deviceUISet->addChannelMarker(&m_objChannelMarker);
|
m_deviceUISet->addChannelMarker(&m_objChannelMarker);
|
||||||
m_deviceUISet->addRollupWidget(this);
|
m_deviceUISet->addRollupWidget(this);
|
||||||
|
|
||||||
ui->videoPlay->setIcon(style()->standardIcon(QStyle::SP_MediaPlay));
|
QPixmap pixmapTarget = QPixmap(":/film.png");
|
||||||
|
pixmapTarget = pixmapTarget.scaled(16, 16, Qt::KeepAspectRatio, Qt::SmoothTransformation);
|
||||||
|
ui->videoPlay->setAlignment(Qt::AlignCenter);
|
||||||
|
ui->videoPlay->setPixmap(pixmapTarget);
|
||||||
|
|
||||||
CRightClickEnabler *audioMuteRightClickEnabler = new CRightClickEnabler(ui->audioMute);
|
CRightClickEnabler *audioMuteRightClickEnabler = new CRightClickEnabler(ui->audioMute);
|
||||||
connect(audioMuteRightClickEnabler, SIGNAL(rightClick(const QPoint &)), this, SLOT(audioSelect()));
|
connect(audioMuteRightClickEnabler, SIGNAL(rightClick(const QPoint &)), this, SLOT(audioSelect()));
|
||||||
@ -648,11 +651,11 @@ void DATVDemodGUI::on_StreamMetaDataChanged(DataTSMetaData2 *objMetaData)
|
|||||||
ui->chkVS->setChecked(objMetaData->OK_VideoStream);
|
ui->chkVS->setChecked(objMetaData->OK_VideoStream);
|
||||||
ui->chkDecoding->setChecked(objMetaData->OK_Decoding);
|
ui->chkDecoding->setChecked(objMetaData->OK_Decoding);
|
||||||
|
|
||||||
if (objMetaData->OK_Decoding == true) {
|
if (objMetaData->OK_Decoding) {
|
||||||
ui->videoPlay->setIcon(style()->standardIcon(QStyle::SP_MediaPause));
|
ui->videoPlay->setStyleSheet("QLabel { background-color : green; }");
|
||||||
} else {
|
} else {
|
||||||
ui->videoPlay->setIcon(style()->standardIcon(QStyle::SP_MediaPlay));
|
ui->videoPlay->setStyleSheet("QLabel { background:rgb(79,79,79); }");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (objMetaData->Height > 0) {
|
if (objMetaData->Height > 0) {
|
||||||
ui->screenTV_2->setFixedWidth((int)objMetaData->Width*(270.0f/(float)objMetaData->Height));
|
ui->screenTV_2->setFixedWidth((int)objMetaData->Width*(270.0f/(float)objMetaData->Height));
|
||||||
|
@ -761,8 +761,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>400</x>
|
<x>400</x>
|
||||||
<y>350</y>
|
<y>350</y>
|
||||||
<width>91</width>
|
<width>90</width>
|
||||||
<height>27</height>
|
<height>26</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
@ -772,22 +772,6 @@
|
|||||||
<string>Full Screen</string>
|
<string>Full Screen</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QPushButton" name="videoPlay">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>400</x>
|
|
||||||
<y>300</y>
|
|
||||||
<width>56</width>
|
|
||||||
<height>27</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Start/Stop video streaming</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string> Video</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
<widget class="QWidget" name="formLayoutWidget">
|
<widget class="QWidget" name="formLayoutWidget">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
@ -919,12 +903,15 @@
|
|||||||
<widget class="QToolButton" name="audioMute">
|
<widget class="QToolButton" name="audioMute">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>460</x>
|
<x>430</x>
|
||||||
<y>300</y>
|
<y>300</y>
|
||||||
<width>28</width>
|
<width>24</width>
|
||||||
<height>26</height>
|
<height>24</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Audio mute (right click: Audio select)</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>...</string>
|
<string>...</string>
|
||||||
</property>
|
</property>
|
||||||
@ -934,6 +921,66 @@
|
|||||||
<normalon>:/sound_off.png</normalon>:/sound_on.png</iconset>
|
<normalon>:/sound_off.png</normalon>:/sound_on.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
<widget class="QLabel" name="videoPlay">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>400</x>
|
||||||
|
<y>300</y>
|
||||||
|
<width>24</width>
|
||||||
|
<height>24</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Video play indicator</string>
|
||||||
|
</property>
|
||||||
|
<property name="frameShape">
|
||||||
|
<enum>QFrame::StyledPanel</enum>
|
||||||
|
</property>
|
||||||
|
<property name="frameShadow">
|
||||||
|
<enum>QFrame::Plain</enum>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="QSlider" name="audioVolume">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>400</x>
|
||||||
|
<y>330</y>
|
||||||
|
<width>90</width>
|
||||||
|
<height>16</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Audio volume control</string>
|
||||||
|
</property>
|
||||||
|
<property name="minimum">
|
||||||
|
<number>-32</number>
|
||||||
|
</property>
|
||||||
|
<property name="maximum">
|
||||||
|
<number>32</number>
|
||||||
|
</property>
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="QLabel" name="audioVolumeText">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>460</x>
|
||||||
|
<y>300</y>
|
||||||
|
<width>24</width>
|
||||||
|
<height>24</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Audio volume</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>-32</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user