1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-05-27 20:52:25 -04:00

UDP Source: new GUI items

This commit is contained in:
f4exb 2015-12-03 04:24:29 +01:00
parent f297298adb
commit eeecaf5d3f
2 changed files with 89 additions and 59 deletions

View File

@ -172,7 +172,6 @@ UDPSrcGUI::UDPSrcGUI(PluginAPI* pluginAPI, QWidget* parent) :
m_doApplySettings(true)
{
ui->setupUi(this);
ui->connectedClientsBox->hide();
connect(this, SIGNAL(widgetRolled(QWidget*,bool)), this, SLOT(onWidgetRolled(QWidget*,bool)));
connect(this, SIGNAL(menuDoubleClickEvent()), this, SLOT(onMenuDoubleClicked()));
setAttribute(Qt::WA_DeleteOnClose, true);

View File

@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>294</width>
<height>434</height>
<width>257</width>
<height>324</height>
</rect>
</property>
<property name="windowTitle">
@ -92,7 +92,7 @@
</property>
</widget>
</item>
<item row="7" column="1">
<item row="6" column="1">
<layout class="QHBoxLayout" name="BoostLayout">
<item>
<widget class="QLabel" name="boostLabel">
@ -103,6 +103,9 @@
</item>
<item>
<widget class="QSlider" name="boost">
<property name="toolTip">
<string>Signal boost factor</string>
</property>
<property name="maximum">
<number>3</number>
</property>
@ -123,6 +126,43 @@
</item>
</layout>
</item>
<item row="7" column="1">
<layout class="QHBoxLayout" name="VolumeLayout">
<item>
<widget class="QLabel" name="volumeLabel">
<property name="text">
<string>Vol</string>
</property>
</widget>
</item>
<item>
<widget class="QSlider" name="volume">
<property name="toolTip">
<string>Audio volume</string>
</property>
<property name="maximum">
<number>100</number>
</property>
<property name="pageStep">
<number>1</number>
</property>
<property name="value">
<number>20</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="volimeText">
<property name="text">
<string>20</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="0">
<layout class="QHBoxLayout" name="DeltaFrequencyLayout">
<item>
@ -264,6 +304,9 @@
</item>
<item>
<widget class="QLineEdit" name="udpPort">
<property name="toolTip">
<string>Destination port</string>
</property>
<property name="text">
<string>9999</string>
</property>
@ -271,8 +314,42 @@
</item>
</layout>
</item>
<item row="6" column="0">
<layout class="QHBoxLayout" name="AudioPortLayout">
<item>
<widget class="QLabel" name="audioPortlabel">
<property name="text">
<string>Audio</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox">
<property name="toolTip">
<string>Activate audio</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="audioPort">
<property name="toolTip">
<string>Audio input port</string>
</property>
<property name="text">
<string>9998</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="5" column="1">
<widget class="QLineEdit" name="rfBandwidth">
<property name="toolTip">
<string>Signal bandwidth</string>
</property>
<property name="text">
<string>32000</string>
</property>
@ -297,6 +374,9 @@
</item>
<item row="2" column="1">
<widget class="QLineEdit" name="sampleRate">
<property name="toolTip">
<string>Samples rate</string>
</property>
<property name="text">
<string>48000</string>
</property>
@ -304,6 +384,9 @@
</item>
<item row="2" column="0">
<widget class="QComboBox" name="sampleFormat">
<property name="toolTip">
<string>Samples format</string>
</property>
<property name="currentIndex">
<number>2</number>
</property>
@ -335,6 +418,9 @@
</item>
<item>
<widget class="QLineEdit" name="udpAddress">
<property name="toolTip">
<string>Destination address</string>
</property>
<property name="text">
<string>127.0.0.1</string>
</property>
@ -380,60 +466,6 @@
</item>
</layout>
</widget>
<widget class="QWidget" name="connectedClientsBox" native="true">
<property name="geometry">
<rect>
<x>15</x>
<y>330</y>
<width>274</width>
<height>101</height>
</rect>
</property>
<property name="windowTitle">
<string>Connected Clients (0)</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>3</number>
</property>
<property name="leftMargin">
<number>2</number>
</property>
<property name="topMargin">
<number>2</number>
</property>
<property name="rightMargin">
<number>2</number>
</property>
<property name="bottomMargin">
<number>2</number>
</property>
<item>
<widget class="QTreeWidget" name="connections">
<property name="maximumSize">
<size>
<width>400</width>
<height>100</height>
</size>
</property>
<property name="rootIsDecorated">
<bool>false</bool>
</property>
<property name="itemsExpandable">
<bool>false</bool>
</property>
<attribute name="headerVisible">
<bool>false</bool>
</attribute>
<column>
<property name="text">
<string>IP:Port</string>
</property>
</column>
</widget>
</item>
</layout>
</widget>
</widget>
<customwidgets>
<customwidget>
@ -467,7 +499,6 @@
<tabstop>sampleRate</tabstop>
<tabstop>rfBandwidth</tabstop>
<tabstop>applyBtn</tabstop>
<tabstop>connections</tabstop>
</tabstops>
<resources>
<include location="../../../sdrbase/resources/res.qrc"/>