1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-09-27 15:26:33 -04:00

ATV Demod: GUI: new RF settings layout

This commit is contained in:
f4exb 2017-03-16 18:00:18 +01:00
parent cfec4d1be9
commit 701c853cff
3 changed files with 199 additions and 93 deletions

View File

@ -7,7 +7,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>520</width> <width>520</width>
<height>480</height> <height>539</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
@ -34,127 +34,225 @@
<property name="windowTitle"> <property name="windowTitle">
<string>ATV Demodulator</string> <string>ATV Demodulator</string>
</property> </property>
<widget class="QWidget" name="layoutWidget"> <widget class="QWidget" name="layoutWidget 1">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
<y>10</y> <y>10</y>
<width>501</width> <width>501</width>
<height>27</height> <height>71</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>RF Settings</string> <string>RF Settings</string>
</property> </property>
<layout class="QHBoxLayout" name="rfSettingsLayout"> <layout class="QVBoxLayout" name="rfSettingsLayout">
<property name="spacing">
<number>2</number>
</property>
<item> <item>
<layout class="QHBoxLayout" name="deltaFrequencyLayout"> <layout class="QHBoxLayout" name="rfSettings1Layout">
<item> <item>
<widget class="QToolButton" name="deltaFrequencyMinus"> <layout class="QHBoxLayout" name="deltaFrequencyLayout">
<property name="text"> <item>
<string/> <widget class="QToolButton" name="deltaFrequencyMinus">
</property> <property name="text">
<property name="icon"> <string/>
<iconset> </property>
<selectedoff>:/plus.png</selectedoff> <property name="icon">
<selectedon>:/minus.png</selectedon> <iconset>
</iconset> <selectedoff>:/plus.png</selectedoff>
<selectedon>:/minus.png</selectedon>
</iconset>
</property>
</widget>
</item>
<item>
<widget class="ValueDial" name="deltaFrequency" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>32</width>
<height>16</height>
</size>
</property>
<property name="font">
<font>
<family>Monospace</family>
<pointsize>12</pointsize>
</font>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="deltaFrequencyUnits">
<property name="text">
<string>Hz</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="ValueDial" name="deltaFrequency" native="true"> <widget class="QLabel" name="channelSampleRateText">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>32</width> <width>52</width>
<height>16</height> <height>0</height>
</size> </size>
</property> </property>
<property name="font"> <property name="text">
<font> <string> 00000k</string>
<family>Monospace</family> </property>
<pointsize>12</pointsize> <property name="alignment">
</font> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="deltaFrequencyUnits"> <widget class="QComboBox" name="modulation">
<property name="toolTip">
<string>Modulation type</string>
</property>
<item>
<property name="text">
<string>FM 1</string>
</property>
</item>
<item>
<property name="text">
<string>FM 2</string>
</property>
</item>
<item>
<property name="text">
<string>AM</string>
</property>
</item>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="channePowerText">
<property name="minimumSize">
<size>
<width>54</width>
<height>0</height>
</size>
</property>
<property name="text"> <property name="text">
<string>Hz</string> <string>-100.0 dB</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
</layout> </layout>
</item> </item>
<item> <item>
<widget class="QComboBox" name="modulation"> <layout class="QHBoxLayout" name="rfSettings2Layout">
<property name="toolTip">
<string>Modulation type</string>
</property>
<item> <item>
<property name="text"> <widget class="ButtonSwitch" name="toolButton">
<string>FM 1</string> <property name="text">
</property> <string/>
</property>
<property name="icon">
<iconset resource="../../../sdrbase/resources/res.qrc">
<normaloff>:/filter_bandpass.png</normaloff>:/filter_bandpass.png</iconset>
</property>
</widget>
</item> </item>
<item> <item>
<property name="text"> <widget class="QLabel" name="rfBWLabel">
<string>FM 2</string> <property name="text">
</property> <string>BW</string>
</property>
</widget>
</item> </item>
<item> <item>
<property name="text"> <widget class="QLabel" name="rfOppBWText">
<string>AM</string> <property name="text">
</property> <string>10.0</string>
</property>
</widget>
</item> </item>
</widget> <item>
</item> <widget class="QSlider" name="rfOppBW">
<item> <property name="layoutDirection">
<widget class="QLabel" name="rfBWLabel"> <enum>Qt::RightToLeft</enum>
<property name="text"> </property>
<string>BW</string> <property name="maximum">
</property> <number>100</number>
</widget> </property>
</item> <property name="pageStep">
<item> <number>1</number>
<widget class="QSlider" name="rfBW"> </property>
<property name="orientation"> <property name="value">
<enum>Qt::Horizontal</enum> <number>10</number>
</property> </property>
</widget> <property name="orientation">
</item> <enum>Qt::Horizontal</enum>
<item> </property>
<widget class="QLabel" name="rfBWText"> </widget>
<property name="text"> </item>
<string>10.0</string> <item>
</property> <widget class="QSlider" name="rfBW">
</widget> <property name="minimum">
</item> <number>1</number>
<item> </property>
<spacer name="horizontalSpacer_3"> <property name="maximum">
<property name="orientation"> <number>100</number>
<enum>Qt::Horizontal</enum> </property>
</property> <property name="value">
<property name="sizeHint" stdset="0"> <number>10</number>
<size> </property>
<width>40</width> <property name="orientation">
<height>20</height> <enum>Qt::Horizontal</enum>
</size> </property>
</property> </widget>
</spacer> </item>
</item> <item>
<item> <widget class="QLabel" name="rfBWText">
<widget class="QLabel" name="channelSampleRateText"> <property name="minimumSize">
<property name="text"> <size>
<string>00000k</string> <width>54</width>
</property> <height>0</height>
</widget> </size>
</property>
<property name="text">
<string>10.0 MHz</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
</layout>
</item> </item>
</layout> </layout>
</widget> </widget>
@ -162,13 +260,13 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
<y>40</y> <y>80</y>
<width>501</width> <width>501</width>
<height>347</height> <height>348</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>TV Monitor</string> <string>Video</string>
</property> </property>
<layout class="QHBoxLayout" name="screenTVLayout"> <layout class="QHBoxLayout" name="screenTVLayout">
<property name="sizeConstraint"> <property name="sizeConstraint">
@ -185,13 +283,13 @@
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>495</width> <width>495</width>
<height>345</height> <height>346</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>495</width> <width>495</width>
<height>345</height> <height>346</height>
</size> </size>
</property> </property>
<property name="styleSheet"> <property name="styleSheet">
@ -205,9 +303,9 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
<y>390</y> <y>430</y>
<width>501</width> <width>501</width>
<height>80</height> <height>81</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -498,7 +596,14 @@
<header>atvscreen.h</header> <header>atvscreen.h</header>
<container>1</container> <container>1</container>
</customwidget> </customwidget>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
</customwidgets> </customwidgets>
<resources/> <resources>
<include location="../../../sdrbase/resources/res.qrc"/>
</resources>
<connections/> <connections/>
</ui> </ui>

Binary file not shown.

After

Width:  |  Height:  |  Size: 742 B

View File

@ -75,5 +75,6 @@
<file>film.png</file> <file>film.png</file>
<file>picture.png</file> <file>picture.png</file>
<file>camera.png</file> <file>camera.png</file>
<file>filter_bandpass.png</file>
</qresource> </qresource>
</RCC> </RCC>