Changed Show More button to also raise the transceiver adjustments

window. Added "reset PBT" button to the transceiver adjustments window.
half-duplex
Elliott Liggett 2023-01-17 20:53:34 -08:00
rodzic b468c514df
commit 9c0aea0102
4 zmienionych plików z 48 dodań i 2 usunięć

Wyświetl plik

@ -24,7 +24,7 @@ transceiverAdjustments::transceiverAdjustments(QWidget *parent) :
this->window()->resize(QSizePolicy::Minimum, QSizePolicy::Minimum);
#endif
this->setWindowTitle("TransceiverAdjustments");
}
transceiverAdjustments::~transceiverAdjustments()
@ -103,3 +103,12 @@ void transceiverAdjustments::updateTPBFOuter(unsigned char level)
ui->TPBFOuterSlider->setValue(level);
ui->TPBFOuterSlider->blockSignals(false);
}
void transceiverAdjustments::on_resetPBTbtn_clicked()
{
ui->TPBFInnerSlider->setValue(128);
ui->TPBFOuterSlider->setValue(128);
ui->IFShiftSlider->blockSignals(true);
ui->IFShiftSlider->setValue(128);
ui->IFShiftSlider->blockSignals(false);
}

Wyświetl plik

@ -40,6 +40,8 @@ private slots:
void on_TPBFOuterSlider_valueChanged(int value);
void on_resetPBTbtn_clicked();
private:
Ui::transceiverAdjustments *ui;
rigCapabilities rigCaps;

Wyświetl plik

@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>832</width>
<height>337</height>
<height>342</height>
</rect>
</property>
<property name="windowTitle">
@ -463,6 +463,33 @@
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<property name="topMargin">
<number>0</number>
</property>
<item>
<widget class="QPushButton" name="resetPBTbtn">
<property name="text">
<string>Reset PBT</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
<resources/>

Wyświetl plik

@ -6770,7 +6770,15 @@ void wfmain::on_waterfallFormatCombo_activated(int index)
void wfmain::on_moreControlsBtn_clicked()
{
if(trxadj->isMinimized())
{
trxadj->raise();
trxadj->activateWindow();
return;
}
trxadj->show();
trxadj->raise();
trxadj->activateWindow();
}
void wfmain::on_useCIVasRigIDChk_clicked(bool checked)