kopia lustrzana https://gitlab.com/eliggett/wfview
Additional bands added, Airband, WFM
rodzic
839fa7f3dc
commit
96a32f9069
|
@ -2673,6 +2673,8 @@ void rigCommander::determineRigCaps()
|
|||
rigCaps.bands = standardHF;
|
||||
rigCaps.bands.insert(rigCaps.bands.end(), standardVU.begin(), standardVU.end());
|
||||
rigCaps.bands.push_back(bandGen);
|
||||
rigCaps.bands.push_back(bandAir);
|
||||
rigCaps.bands.push_back(bandWFM);
|
||||
rigCaps.bsr[band70cm] = 0x14;
|
||||
rigCaps.bsr[band2m] = 0x13;
|
||||
rigCaps.bsr[bandAir] = 0x12;
|
||||
|
|
20
wfmain.cpp
20
wfmain.cpp
|
@ -2871,6 +2871,18 @@ void wfmain::on_band2mbtn_clicked()
|
|||
bandStackBtnClick();
|
||||
}
|
||||
|
||||
void wfmain::on_bandAirbtn_clicked()
|
||||
{
|
||||
bandStkBand = rigCaps.bsr[bandAir]; // VHF Aircraft
|
||||
bandStackBtnClick();
|
||||
}
|
||||
|
||||
void wfmain::on_bandWFMbtn_clicked()
|
||||
{
|
||||
bandStkBand = rigCaps.bsr[bandWFM]; // Broadcast FM
|
||||
bandStackBtnClick();
|
||||
}
|
||||
|
||||
void wfmain::on_band4mbtn_clicked()
|
||||
{
|
||||
// There isn't a BSR for this one:
|
||||
|
@ -3942,6 +3954,8 @@ void wfmain::setBandButtons()
|
|||
hideButton(ui->band23cmbtn);
|
||||
hideButton(ui->band70cmbtn);
|
||||
hideButton(ui->band2mbtn);
|
||||
hideButton(ui->bandAirbtn);
|
||||
hideButton(ui->bandWFMbtn);
|
||||
hideButton(ui->band4mbtn);
|
||||
hideButton(ui->band6mbtn);
|
||||
|
||||
|
@ -3977,6 +3991,12 @@ void wfmain::setBandButtons()
|
|||
case(band2m):
|
||||
showButton(ui->band2mbtn);
|
||||
break;
|
||||
case(bandAir):
|
||||
showButton(ui->bandAirbtn);
|
||||
break;
|
||||
case(bandWFM):
|
||||
showButton(ui->bandWFMbtn);
|
||||
break;
|
||||
case(band4m):
|
||||
showButton(ui->band4mbtn);
|
||||
break;
|
||||
|
|
4
wfmain.h
4
wfmain.h
|
@ -429,6 +429,10 @@ private slots:
|
|||
|
||||
void on_band2200mbtn_clicked();
|
||||
|
||||
void on_bandAirbtn_clicked();
|
||||
|
||||
void on_bandWFMbtn_clicked();
|
||||
|
||||
private:
|
||||
Ui::wfmain *ui;
|
||||
QSettings settings;
|
||||
|
|
38
wfmain.ui
38
wfmain.ui
|
@ -895,6 +895,44 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="bandAirbtn">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>128</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Air</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="bandWFMbtn">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>128</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>WFM</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="band4mbtn">
|
||||
<property name="sizePolicy">
|
||||
|
|
Ładowanie…
Reference in New Issue