Added geometry constraints to the transceiver adjustments window, and

disable controls which do not function except for debug builds.
merge-requests/7/head
Elliott Liggett 2021-11-05 17:38:07 -07:00
rodzic 76c5488983
commit cd7ea97242
2 zmienionych plików z 128 dodań i 39 usunięć

Wyświetl plik

@ -6,7 +6,24 @@ transceiverAdjustments::transceiverAdjustments(QWidget *parent) :
ui(new Ui::transceiverAdjustments)
{
ui->setupUi(this);
// request level updates
#ifndef QT_DEBUG
ui->transmitterControlsGroupBox->setVisible(false); // no controls available so far
ui->bassRxLabel->setVisible(false);
ui->bassRxSlider->setVisible(false);
ui->trebleRxLabel->setVisible(false);
ui->trebleRxSlider->setVisible(false);
ui->NRRxCheckBox->setVisible(false);
ui->NRRxSlider->setVisible(false);
ui->notchRxChkBox->setVisible(false);
ui->notchRxSlider->setVisible(false);
ui->NBRxChkBox->setVisible(false);
ui->NBRxSlider->setVisible(false);
ui->bandwidthGroupBox->setVisible(false);
this->window()->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
this->window()->resize(QSizePolicy::Minimum, QSizePolicy::Minimum);
#endif
}

Wyświetl plik

@ -29,13 +29,13 @@
<number>10</number>
</property>
<item>
<widget class="QGroupBox" name="groupBox">
<widget class="QGroupBox" name="transmitterControlsGroupBox">
<property name="title">
<string>Transmitter</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
<layout class="QVBoxLayout" name="compVertLayout">
<property name="leftMargin">
<number>0</number>
</property>
@ -49,14 +49,20 @@
<number>0</number>
</property>
<item>
<widget class="QSlider" name="verticalSlider">
<widget class="QSlider" name="compSlider">
<property name="minimumSize">
<size>
<width>0</width>
<height>230</height>
</size>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox">
<widget class="QCheckBox" name="compChkBox">
<property name="text">
<string>Comp</string>
</property>
@ -65,16 +71,22 @@
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_5">
<layout class="QVBoxLayout" name="bassTxVertLayout">
<item>
<widget class="QSlider" name="verticalSlider_4">
<widget class="QSlider" name="bassTxSlider">
<property name="minimumSize">
<size>
<width>0</width>
<height>230</height>
</size>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_4">
<widget class="QLabel" name="bassTxLabel">
<property name="minimumSize">
<size>
<width>0</width>
@ -89,16 +101,22 @@
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_4">
<layout class="QVBoxLayout" name="trebleTxVertLayout">
<item>
<widget class="QSlider" name="verticalSlider_3">
<widget class="QSlider" name="trebleTxSlider">
<property name="minimumSize">
<size>
<width>0</width>
<height>230</height>
</size>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_3">
<widget class="QLabel" name="trebleTxLabel">
<property name="minimumSize">
<size>
<width>0</width>
@ -106,23 +124,29 @@
</size>
</property>
<property name="text">
<string>Trebble</string>
<string>Treble</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_10">
<layout class="QVBoxLayout" name="tbdVertLayout">
<item>
<widget class="QSlider" name="verticalSlider_9">
<widget class="QSlider" name="tbdSlider">
<property name="minimumSize">
<size>
<width>0</width>
<height>230</height>
</size>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_6">
<widget class="QLabel" name="tbdLabel">
<property name="minimumSize">
<size>
<width>0</width>
@ -140,22 +164,28 @@
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2">
<widget class="QGroupBox" name="receiverControlsGroupBox">
<property name="title">
<string>Receiver</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<layout class="QVBoxLayout" name="verticalLayout_8">
<layout class="QVBoxLayout" name="bassRxVertLayout">
<item>
<widget class="QSlider" name="verticalSlider_5">
<widget class="QSlider" name="bassRxSlider">
<property name="minimumSize">
<size>
<width>0</width>
<height>230</height>
</size>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label">
<widget class="QLabel" name="bassRxLabel">
<property name="minimumSize">
<size>
<width>0</width>
@ -170,16 +200,22 @@
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_3">
<layout class="QVBoxLayout" name="trebleRxVertLayout">
<item>
<widget class="QSlider" name="verticalSlider_2">
<widget class="QSlider" name="trebleRxSlider">
<property name="minimumSize">
<size>
<width>0</width>
<height>230</height>
</size>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_2">
<widget class="QLabel" name="trebleRxLabel">
<property name="minimumSize">
<size>
<width>0</width>
@ -187,7 +223,7 @@
</size>
</property>
<property name="text">
<string>Trebble</string>
<string>Treble</string>
</property>
</widget>
</item>
@ -197,6 +233,12 @@
<layout class="QVBoxLayout" name="IFShiftVertLayout">
<item>
<widget class="QSlider" name="IFShiftSlider">
<property name="minimumSize">
<size>
<width>0</width>
<height>230</height>
</size>
</property>
<property name="maximum">
<number>255</number>
</property>
@ -230,6 +272,12 @@
</property>
<item>
<widget class="QSlider" name="TPBFInnerSlider">
<property name="minimumSize">
<size>
<width>0</width>
<height>230</height>
</size>
</property>
<property name="maximum">
<number>255</number>
</property>
@ -263,6 +311,12 @@
</property>
<item>
<widget class="QSlider" name="TPBFOuterSlider">
<property name="minimumSize">
<size>
<width>0</width>
<height>230</height>
</size>
</property>
<property name="maximum">
<number>255</number>
</property>
@ -281,16 +335,22 @@
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_7">
<layout class="QVBoxLayout" name="NRRxVertLayout">
<item>
<widget class="QSlider" name="verticalSlider_6">
<widget class="QSlider" name="NRRxSlider">
<property name="minimumSize">
<size>
<width>0</width>
<height>230</height>
</size>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_2">
<widget class="QCheckBox" name="NRRxCheckBox">
<property name="text">
<string>NR</string>
</property>
@ -299,16 +359,22 @@
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_6">
<layout class="QVBoxLayout" name="NBRxVertLayout">
<item>
<widget class="QSlider" name="verticalSlider_7">
<widget class="QSlider" name="NBRxSlider">
<property name="minimumSize">
<size>
<width>0</width>
<height>230</height>
</size>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_3">
<widget class="QCheckBox" name="NBRxChkBox">
<property name="text">
<string>NB</string>
</property>
@ -317,16 +383,22 @@
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_11">
<layout class="QVBoxLayout" name="notchRxVertLayout">
<item>
<widget class="QSlider" name="verticalSlider_10">
<widget class="QSlider" name="notchRxSlider">
<property name="minimumSize">
<size>
<width>0</width>
<height>230</height>
</size>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_4">
<widget class="QCheckBox" name="notchRxChkBox">
<property name="text">
<string>Notch</string>
</property>
@ -335,40 +407,40 @@
</layout>
</item>
<item>
<widget class="QGroupBox" name="groupBox_3">
<widget class="QGroupBox" name="bandwidthGroupBox">
<property name="title">
<string>Bandwidth</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_12">
<item>
<widget class="QLabel" name="label_7">
<widget class="QLabel" name="lowBandwidthLabel">
<property name="text">
<string>Low</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboBox_2"/>
<widget class="QComboBox" name="lowBandwidthCombo"/>
</item>
<item>
<widget class="QLabel" name="label_8">
<widget class="QLabel" name="highBandwidthLabel">
<property name="text">
<string>High</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboBox"/>
<widget class="QComboBox" name="highBandwidthCombo"/>
</item>
<item>
<widget class="QLabel" name="label_9">
<widget class="QLabel" name="filterBandwidthLabel">
<property name="text">
<string>Filter</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboBox_3"/>
<widget class="QComboBox" name="filterBandwidthCombo"/>
</item>
<item>
<spacer name="verticalSpacer">