mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-23 20:58:55 -05:00
Add mw/W/kW values to the WSPR control for setting Tx power.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6068 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
258fcbbdbb
commit
94db4b80b2
@ -422,6 +422,9 @@ MainWindow::MainWindow(bool multiple, QSettings * settings, QSharedMemory *shdme
|
|||||||
m_nclearave=1;
|
m_nclearave=1;
|
||||||
m_bEchoTxed=false;
|
m_bEchoTxed=false;
|
||||||
m_nWSPRdecodes=0;
|
m_nWSPRdecodes=0;
|
||||||
|
QString t1[28]={"1 uW","2 uW","5 uW","10 uW","20 uW","50 uW","100 uW","200 uW","500 uW",
|
||||||
|
"1 mW","2 mW","5 mW","10 mW","20 mW","50 mW","100 mW","200 mW","500 mW",
|
||||||
|
"1 W","2 W","5 W","10 W","20 W","50 W","100 W","200 W","500 W","1 kW"};
|
||||||
|
|
||||||
for(int i=0; i<28; i++) { //Initialize dBm values
|
for(int i=0; i<28; i++) { //Initialize dBm values
|
||||||
float dbm=(10.0*i)/3.0 - 30.0;
|
float dbm=(10.0*i)/3.0 - 30.0;
|
||||||
@ -430,6 +433,7 @@ MainWindow::MainWindow(bool multiple, QSettings * settings, QSharedMemory *shdme
|
|||||||
if(dbm>=0) ndbm=int(dbm+0.5);
|
if(dbm>=0) ndbm=int(dbm+0.5);
|
||||||
QString t;
|
QString t;
|
||||||
t.sprintf("%d dBm ",ndbm);
|
t.sprintf("%d dBm ",ndbm);
|
||||||
|
t+=t1[i];
|
||||||
ui->TxPowerComboBox->addItem(t);
|
ui->TxPowerComboBox->addItem(t);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1682,24 +1682,18 @@ list. The list can be maintained in Settings (F2).</string>
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item row="0" column="3">
|
||||||
<widget class="QSpinBox" name="sbTxPercent">
|
<spacer name="horizontalSpacer_2">
|
||||||
<property name="toolTip">
|
<property name="orientation">
|
||||||
<string>Percentage of 2-minute sequences devoted to transmitting.</string>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="alignment">
|
<property name="sizeHint" stdset="0">
|
||||||
<set>Qt::AlignCenter</set>
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="suffix">
|
</spacer>
|
||||||
<string> %</string>
|
|
||||||
</property>
|
|
||||||
<property name="prefix">
|
|
||||||
<string>Tx Pct </string>
|
|
||||||
</property>
|
|
||||||
<property name="maximum">
|
|
||||||
<number>100</number>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="2">
|
<item row="0" column="2">
|
||||||
<widget class="QCheckBox" name="cbUploadWSPR_Spots">
|
<widget class="QCheckBox" name="cbUploadWSPR_Spots">
|
||||||
@ -1777,18 +1771,24 @@ list. The list can be maintained in Settings (F2).</string>
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="3">
|
<item row="1" column="1">
|
||||||
<spacer name="horizontalSpacer_2">
|
<widget class="QSpinBox" name="sbTxPercent">
|
||||||
<property name="orientation">
|
<property name="toolTip">
|
||||||
<enum>Qt::Horizontal</enum>
|
<string>Percentage of 2-minute sequences devoted to transmitting.</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0">
|
<property name="alignment">
|
||||||
<size>
|
<set>Qt::AlignCenter</set>
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
<property name="suffix">
|
||||||
|
<string> %</string>
|
||||||
|
</property>
|
||||||
|
<property name="prefix">
|
||||||
|
<string>Tx Pct </string>
|
||||||
|
</property>
|
||||||
|
<property name="maximum">
|
||||||
|
<number>100</number>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
Loading…
Reference in New Issue
Block a user