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

Binary file not shown.

After

Width:  |  Height:  |  Size: 742 B

View File

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