kopia lustrzana https://gitlab.com/eliggett/wfview
Added split state LED for split.
rodzic
c91d06fea5
commit
2d1773720d
|
@ -4,6 +4,7 @@
|
||||||
static const int SIZE = 16;
|
static const int SIZE = 16;
|
||||||
static const QString greenSS = QString("color: white;border-radius: %1;background-color: qlineargradient(spread:pad, x1:0.145, y1:0.16, x2:1, y2:1, stop:0 rgba(20, 252, 7, 255), stop:1 rgba(25, 134, 5, 255));").arg(SIZE / 2);
|
static const QString greenSS = QString("color: white;border-radius: %1;background-color: qlineargradient(spread:pad, x1:0.145, y1:0.16, x2:1, y2:1, stop:0 rgba(20, 252, 7, 255), stop:1 rgba(25, 134, 5, 255));").arg(SIZE / 2);
|
||||||
static const QString redSS = QString("color: white;border-radius: %1;background-color: qlineargradient(spread:pad, x1:0.145, y1:0.16, x2:0.92, y2:0.988636, stop:0 rgba(255, 12, 12, 255), stop:0.869347 rgba(103, 0, 0, 255));").arg(SIZE / 2);
|
static const QString redSS = QString("color: white;border-radius: %1;background-color: qlineargradient(spread:pad, x1:0.145, y1:0.16, x2:0.92, y2:0.988636, stop:0 rgba(255, 12, 12, 255), stop:0.869347 rgba(103, 0, 0, 255));").arg(SIZE / 2);
|
||||||
|
static const QString rgSplitSS = QString("color: white;border-radius: %1;background-color: qlineargradient(spread:pad, x1:0.4, y1:0.5, x2:0.6, y2:0.5, stop:0 rgba(255, 0, 0, 255), stop:1.0 rgba(0, 255, 0, 255));").arg(SIZE / 2);
|
||||||
static const QString orangeSS = QString("color: white;border-radius: %1;background-color: qlineargradient(spread:pad, x1:0.232, y1:0.272, x2:0.98, y2:0.959773, stop:0 rgba(255, 113, 4, 255), stop:1 rgba(91, 41, 7, 255))").arg(SIZE / 2);
|
static const QString orangeSS = QString("color: white;border-radius: %1;background-color: qlineargradient(spread:pad, x1:0.232, y1:0.272, x2:0.98, y2:0.959773, stop:0 rgba(255, 113, 4, 255), stop:1 rgba(91, 41, 7, 255))").arg(SIZE / 2);
|
||||||
static const QString blueSS = QString("color: white;border-radius: %1;background-color: qlineargradient(spread:pad, x1:0.04, y1:0.0565909, x2:0.799, y2:0.795, stop:0 rgba(203, 220, 255, 255), stop:0.41206 rgba(0, 115, 255, 255), stop:1 rgba(0, 49, 109, 255));").arg(SIZE / 2);
|
static const QString blueSS = QString("color: white;border-radius: %1;background-color: qlineargradient(spread:pad, x1:0.04, y1:0.0565909, x2:0.799, y2:0.795, stop:0 rgba(203, 220, 255, 255), stop:0.41206 rgba(0, 115, 255, 255), stop:1 rgba(0, 49, 109, 255));").arg(SIZE / 2);
|
||||||
static const QString blankSS = QString("color: white;border-radius: %1;background-color: qlineargradient(spread:pad, x1:0.04, y1:0.0565909, x2:0.799, y2:0.795, stop:0 rgba(203, 220, 255, 0), stop:0.41206 rgba(0, 115, 255, 0), stop:1 rgba(0, 49, 109, 0));").arg(SIZE / 2);
|
static const QString blankSS = QString("color: white;border-radius: %1;background-color: qlineargradient(spread:pad, x1:0.04, y1:0.0565909, x2:0.799, y2:0.795, stop:0 rgba(203, 220, 255, 0), stop:0.41206 rgba(0, 115, 255, 0), stop:1 rgba(0, 49, 109, 0));").arg(SIZE / 2);
|
||||||
|
@ -36,6 +37,9 @@ void QLedLabel::setState(State state)
|
||||||
case StateBlank:
|
case StateBlank:
|
||||||
setStyleSheet(blankSS);
|
setStyleSheet(blankSS);
|
||||||
break;
|
break;
|
||||||
|
case StateSplitErrorOk:
|
||||||
|
setStyleSheet(rgSplitSS);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
setStyleSheet(blueSS);
|
setStyleSheet(blueSS);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -14,6 +14,7 @@ public:
|
||||||
StateOkBlue,
|
StateOkBlue,
|
||||||
StateWarning,
|
StateWarning,
|
||||||
StateError,
|
StateError,
|
||||||
|
StateSplitErrorOk,
|
||||||
StateBlank
|
StateBlank
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -12,15 +12,6 @@ repeaterSetup::repeaterSetup(QWidget *parent) :
|
||||||
|
|
||||||
// populate the DCS combo box:
|
// populate the DCS combo box:
|
||||||
populateDTCS();
|
populateDTCS();
|
||||||
|
|
||||||
#ifdef QT_DEBUG
|
|
||||||
ui->debugBtn->setVisible(true);
|
|
||||||
ui->rptReadRigBtn->setVisible(true);
|
|
||||||
#else
|
|
||||||
ui->debugBtn->setVisible(false);
|
|
||||||
ui->rptReadRigBtn->setVisible(false);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
repeaterSetup::~repeaterSetup()
|
repeaterSetup::~repeaterSetup()
|
||||||
|
@ -684,7 +675,6 @@ void repeaterSetup::on_splitPlusButton_clicked()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void repeaterSetup::on_splitMinusBtn_clicked()
|
void repeaterSetup::on_splitMinusBtn_clicked()
|
||||||
{
|
{
|
||||||
quint64 hzOffset = getFreqHzFromKHzString(ui->splitOffsetEdit->text());
|
quint64 hzOffset = getFreqHzFromKHzString(ui->splitOffsetEdit->text());
|
||||||
|
@ -717,6 +707,11 @@ void repeaterSetup::on_splitTxFreqSetBtn_clicked()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void repeaterSetup::on_splitTransmitFreqEdit_returnPressed()
|
||||||
|
{
|
||||||
|
this->on_splitTxFreqSetBtn_clicked();
|
||||||
|
}
|
||||||
|
|
||||||
void repeaterSetup::on_selABtn_clicked()
|
void repeaterSetup::on_selABtn_clicked()
|
||||||
{
|
{
|
||||||
vfo_t v = vfoA;
|
vfo_t v = vfoA;
|
||||||
|
@ -800,3 +795,8 @@ void repeaterSetup::on_rptrOffsetSetBtn_clicked()
|
||||||
emit setRptDuplexOffset(f);
|
emit setRptDuplexOffset(f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void repeaterSetup::on_rptrOffsetEdit_returnPressed()
|
||||||
|
{
|
||||||
|
this->on_rptrOffsetSetBtn_clicked();
|
||||||
|
}
|
||||||
|
|
|
@ -104,6 +104,10 @@ private slots:
|
||||||
|
|
||||||
void on_splitEnableChk_clicked();
|
void on_splitEnableChk_clicked();
|
||||||
|
|
||||||
|
void on_rptrOffsetEdit_returnPressed();
|
||||||
|
|
||||||
|
void on_splitTransmitFreqEdit_returnPressed();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::repeaterSetup *ui;
|
Ui::repeaterSetup *ui;
|
||||||
freqt currentMainFrequency;
|
freqt currentMainFrequency;
|
||||||
|
|
201
repeatersetup.ui
201
repeatersetup.ui
|
@ -6,62 +6,27 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>1230</width>
|
<width>1071</width>
|
||||||
<height>267</height>
|
<height>231</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>1071</width>
|
||||||
|
<height>230</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>1071</width>
|
||||||
|
<height>231</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Repeater Setup</string>
|
<string>Repeater Setup</string>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="centralwidget">
|
<widget class="QWidget" name="centralwidget">
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
<item>
|
|
||||||
<spacer name="verticalSpacer">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Vertical</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>20</width>
|
|
||||||
<height>40</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
|
||||||
<property name="topMargin">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="rptReadRigBtn">
|
|
||||||
<property name="text">
|
|
||||||
<string>Read Current Settings</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="debugBtn">
|
|
||||||
<property name="text">
|
|
||||||
<string>Debug</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>
|
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
<property name="leftMargin">
|
<property name="leftMargin">
|
||||||
|
@ -72,6 +37,12 @@
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="rptGrpbox">
|
<widget class="QGroupBox" name="rptGrpbox">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>180</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Repeater Duplex</string>
|
<string>Repeater Duplex</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -118,30 +89,36 @@
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_9">
|
<layout class="QHBoxLayout" name="horizontalLayout_9">
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_5">
|
|
||||||
<property name="text">
|
|
||||||
<string>Offset (MHz):</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLineEdit" name="rptrOffsetEdit"/>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="rptrOffsetSetBtn">
|
<widget class="QPushButton" name="rptrOffsetSetBtn">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><html><head/><body><p>Set the repeater offset for radios using Repeater modes. Only available on radios that have repeater modes. Radios using Split should instead use the provided Split Mode section with a custom Offset. </p></body></html></string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Set</string>
|
<string>Set Offset (MHz):</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLineEdit" name="rptrOffsetEdit">
|
||||||
|
<property name="placeholderText">
|
||||||
|
<string>Rpt Offset (MHz)</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="splitModeGrpbox">
|
<widget class="QGroupBox" name="splitModeGrpbox">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>400</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Split Mode</string>
|
<string>Split Mode</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -150,6 +127,9 @@
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_8">
|
<layout class="QHBoxLayout" name="horizontalLayout_8">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QRadioButton" name="splitEnableChk">
|
<widget class="QRadioButton" name="splitEnableChk">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Turn on Split</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Split On</string>
|
<string>Split On</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -160,6 +140,9 @@
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QRadioButton" name="splitOffBtn">
|
<widget class="QRadioButton" name="splitOffBtn">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Turn off Split</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Split Off</string>
|
<string>Split Off</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -168,17 +151,27 @@
|
||||||
</attribute>
|
</attribute>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_10">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="autoTrackLiveBtn">
|
<widget class="QCheckBox" name="setSplitRptrToneChk">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><html><head/><body><p>Click here to automatically set the sub VFO (transmit VFO) tone. Only available on some radios. Other radios may take care of this for you.</p></body></html></string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>AutoTrack</string>
|
<string>Set Rpt Tone</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="setSplitRptrToneChk">
|
<widget class="QCheckBox" name="autoTrackLiveBtn">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><html><head/><body><p>Click here to continually set the transmit VFO to match the receive VFO with the offset accounted for. </p></body></html></string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Set Rpt Tone</string>
|
<string>AutoTrack</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -207,10 +200,22 @@
|
||||||
<height>16777215</height>
|
<height>16777215</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Enter the desired split offset in KHz.</string>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="splitPlusButton">
|
<widget class="QPushButton" name="splitPlusButton">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>55</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><html><head/><body><p>Set the transmit frequency to the receive frequency PLUS the offset. Sets the radio sub VFO and also populates the wfview text box (as a convenience). </p></body></html></string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Split+</string>
|
<string>Split+</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -218,6 +223,15 @@
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="splitMinusBtn">
|
<widget class="QPushButton" name="splitMinusBtn">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>55</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><html><head/><body><p>Set the transmit frequency to the receive frequency PLUS the offset. Sets the radio sub VFO and also populates the wfview text box (as a convenience). </p></body></html></string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Split-</string>
|
<string>Split-</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -252,6 +266,15 @@
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="splitTxFreqSetBtn">
|
<widget class="QPushButton" name="splitTxFreqSetBtn">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>116</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><html><head/><body><p>Set the transmit frequency manually. Not needed if the Split+ or Split- button was used. </p></body></html></string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Set</string>
|
<string>Set</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -264,12 +287,21 @@
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="groupBox">
|
<widget class="QGroupBox" name="groupBox">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>220</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>VFO</string>
|
<string>VFO</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="QPushButton" name="swapABBtn">
|
<widget class="QPushButton" name="swapABBtn">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Swap VFO A with VFO B. Some radios do not support this.</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Swap AB</string>
|
<string>Swap AB</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -277,6 +309,9 @@
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="1">
|
<item row="2" column="1">
|
||||||
<widget class="QPushButton" name="selSubBtn">
|
<widget class="QPushButton" name="selSubBtn">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Select the Sub VFO</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Sel Sub</string>
|
<string>Sel Sub</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -284,6 +319,9 @@
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
<item row="2" column="0">
|
||||||
<widget class="QPushButton" name="selMainBtn">
|
<widget class="QPushButton" name="selMainBtn">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Select the Main VFO</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Sel Main</string>
|
<string>Sel Main</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -291,6 +329,9 @@
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="QPushButton" name="selBBtn">
|
<widget class="QPushButton" name="selBBtn">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Select VFO B</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Sel B</string>
|
<string>Sel B</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -298,6 +339,9 @@
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QPushButton" name="selABtn">
|
<widget class="QPushButton" name="selABtn">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Select VFO A</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Sel A</string>
|
<string>Sel A</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -305,6 +349,9 @@
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<widget class="QPushButton" name="aEqBBtn">
|
<widget class="QPushButton" name="aEqBBtn">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Set VFO B to VFO A</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>A=B</string>
|
<string>A=B</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -312,6 +359,9 @@
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="0">
|
<item row="3" column="0">
|
||||||
<widget class="QPushButton" name="mEqSBtn">
|
<widget class="QPushButton" name="mEqSBtn">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Set the SUB VFO to match the Main VFO</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>M=>S</string>
|
<string>M=>S</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -319,6 +369,9 @@
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="1">
|
<item row="3" column="1">
|
||||||
<widget class="QPushButton" name="swapMSBtn">
|
<widget class="QPushButton" name="swapMSBtn">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Swap the Main VFO and Sub VFO</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Swap MS</string>
|
<string>Swap MS</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -329,6 +382,12 @@
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="groupBox_2">
|
<widget class="QGroupBox" name="groupBox_2">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>200</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Repeater Tone Type</string>
|
<string>Repeater Tone Type</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -375,6 +434,9 @@
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="setRptrSubVFOBtn">
|
<widget class="QPushButton" name="setRptrSubVFOBtn">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Set the Tone Mode for the Sub VFO. Not available on all radios.</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Set Sub VFO</string>
|
<string>Set Sub VFO</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -385,6 +447,12 @@
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="groupBox_3">
|
<widget class="QGroupBox" name="groupBox_3">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>200</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Tone Selection</string>
|
<string>Tone Selection</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -437,6 +505,9 @@
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="setToneSubVFOBtn">
|
<widget class="QPushButton" name="setToneSubVFOBtn">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Set the Sub VFO to the selected Tone. Not available on all radios and not available for DTCS.</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Set Sub VFO</string>
|
<string>Set Sub VFO</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -453,7 +524,7 @@
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections/>
|
<connections/>
|
||||||
<buttongroups>
|
<buttongroups>
|
||||||
<buttongroup name="rptToneBtns"/>
|
|
||||||
<buttongroup name="rptDuplexBtns"/>
|
<buttongroup name="rptDuplexBtns"/>
|
||||||
|
<buttongroup name="rptToneBtns"/>
|
||||||
</buttongroups>
|
</buttongroups>
|
||||||
</ui>
|
</ui>
|
||||||
|
|
23
wfmain.cpp
23
wfmain.cpp
|
@ -414,6 +414,15 @@ void wfmain::rigConnections()
|
||||||
connect(rig, SIGNAL(haveTSQL(quint16)), rpt, SLOT(handleTSQL(quint16)));
|
connect(rig, SIGNAL(haveTSQL(quint16)), rpt, SLOT(handleTSQL(quint16)));
|
||||||
connect(rig, SIGNAL(haveDTCS(quint16,bool,bool)), rpt, SLOT(handleDTCS(quint16,bool,bool)));
|
connect(rig, SIGNAL(haveDTCS(quint16,bool,bool)), rpt, SLOT(handleDTCS(quint16,bool,bool)));
|
||||||
connect(rig, SIGNAL(haveRptAccessMode(rptAccessTxRx)), rpt, SLOT(handleRptAccessMode(rptAccessTxRx)));
|
connect(rig, SIGNAL(haveRptAccessMode(rptAccessTxRx)), rpt, SLOT(handleRptAccessMode(rptAccessTxRx)));
|
||||||
|
|
||||||
|
connect(this->rig, &rigCommander::haveDuplexMode,
|
||||||
|
[=](const duplexMode &dm) {
|
||||||
|
if(dm==dmSplitOn)
|
||||||
|
this->splitModeEnabled = true;
|
||||||
|
else
|
||||||
|
this->splitModeEnabled = false;
|
||||||
|
});
|
||||||
|
|
||||||
connect(this->rpt, &repeaterSetup::setTransmitFrequency,
|
connect(this->rpt, &repeaterSetup::setTransmitFrequency,
|
||||||
[=](const freqt &transmitFreq) { issueCmd(cmdSetFreq, transmitFreq);});
|
[=](const freqt &transmitFreq) { issueCmd(cmdSetFreq, transmitFreq);});
|
||||||
connect(this->rpt, &repeaterSetup::setTransmitMode,
|
connect(this->rpt, &repeaterSetup::setTransmitMode,
|
||||||
|
@ -1044,6 +1053,7 @@ void wfmain::setupMainUI()
|
||||||
pttLed = new QLedLabel(this);
|
pttLed = new QLedLabel(this);
|
||||||
ui->statusBar->addPermanentWidget(pttLed);
|
ui->statusBar->addPermanentWidget(pttLed);
|
||||||
pttLed->setState(QLedLabel::State::StateOk);
|
pttLed->setState(QLedLabel::State::StateOk);
|
||||||
|
pttLed->setToolTip("Receiving");
|
||||||
|
|
||||||
connectedLed = new QLedLabel(this);
|
connectedLed = new QLedLabel(this);
|
||||||
ui->statusBar->addPermanentWidget(connectedLed);
|
ui->statusBar->addPermanentWidget(connectedLed);
|
||||||
|
@ -4746,15 +4756,24 @@ void wfmain::receiveFreq(freqt freqStruct)
|
||||||
void wfmain::receivePTTstatus(bool pttOn)
|
void wfmain::receivePTTstatus(bool pttOn)
|
||||||
{
|
{
|
||||||
// This is the only place where amTransmitting and the transmit button text should be changed:
|
// This is the only place where amTransmitting and the transmit button text should be changed:
|
||||||
//qInfo(logSystem()) << "PTT status: " << pttOn;
|
|
||||||
if (pttOn && !amTransmitting)
|
if (pttOn && !amTransmitting)
|
||||||
{
|
{
|
||||||
pttLed->setState(QLedLabel::State::StateError);
|
|
||||||
|
|
||||||
|
pttLed->setState(QLedLabel::State::StateError);
|
||||||
|
pttLed->setToolTip("Transmitting");
|
||||||
|
if(splitModeEnabled)
|
||||||
|
{
|
||||||
|
pttLed->setState(QLedLabel::State::StateSplitErrorOk);
|
||||||
|
pttLed->setToolTip("TX Split");
|
||||||
|
} else {
|
||||||
|
pttLed->setState(QLedLabel::State::StateError);
|
||||||
|
pttLed->setToolTip("Transmitting");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (!pttOn && amTransmitting)
|
else if (!pttOn && amTransmitting)
|
||||||
{
|
{
|
||||||
pttLed->setState(QLedLabel::State::StateOk);
|
pttLed->setState(QLedLabel::State::StateOk);
|
||||||
|
pttLed->setToolTip("Receiving");
|
||||||
}
|
}
|
||||||
amTransmitting = pttOn;
|
amTransmitting = pttOn;
|
||||||
rpt->handleTransmitStatus(pttOn);
|
rpt->handleTransmitStatus(pttOn);
|
||||||
|
|
3
wfmain.h
3
wfmain.h
|
@ -1059,7 +1059,8 @@ private:
|
||||||
mode_info currentModeInfo;
|
mode_info currentModeInfo;
|
||||||
|
|
||||||
bool haveRigCaps;
|
bool haveRigCaps;
|
||||||
bool amTransmitting;
|
bool amTransmitting = false;
|
||||||
|
bool splitModeEnabled = false;
|
||||||
bool usingDataMode = false;
|
bool usingDataMode = false;
|
||||||
|
|
||||||
unsigned char micGain=0;
|
unsigned char micGain=0;
|
||||||
|
|
12
wfmain.ui
12
wfmain.ui
|
@ -18,7 +18,7 @@
|
||||||
<item>
|
<item>
|
||||||
<widget class="QTabWidget" name="tabWidget">
|
<widget class="QTabWidget" name="tabWidget">
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>3</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="mainTab">
|
<widget class="QWidget" name="mainTab">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
|
@ -1057,7 +1057,7 @@
|
||||||
<string>Show the repeater tone and offset window</string>
|
<string>Show the repeater tone and offset window</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Repeater</string>
|
<string>Rpt/Split</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -1808,6 +1808,7 @@
|
||||||
<font>
|
<font>
|
||||||
<family>DejaVu Sans Mono</family>
|
<family>DejaVu Sans Mono</family>
|
||||||
<pointsize>14</pointsize>
|
<pointsize>14</pointsize>
|
||||||
|
<weight>75</weight>
|
||||||
<bold>true</bold>
|
<bold>true</bold>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
|
@ -3430,7 +3431,7 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>579</width>
|
<width>570</width>
|
||||||
<height>224</height>
|
<height>224</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
|
@ -5380,6 +5381,7 @@
|
||||||
<widget class="QPushButton" name="exitBtn">
|
<widget class="QPushButton" name="exitBtn">
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
|
<weight>50</weight>
|
||||||
<bold>false</bold>
|
<bold>false</bold>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
|
@ -5399,7 +5401,7 @@
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>1063</width>
|
<width>1063</width>
|
||||||
<height>22</height>
|
<height>21</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
@ -5426,8 +5428,8 @@
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections/>
|
<connections/>
|
||||||
<buttongroups>
|
<buttongroups>
|
||||||
<buttongroup name="pollingButtonGroup"/>
|
|
||||||
<buttongroup name="buttonGroup"/>
|
<buttongroup name="buttonGroup"/>
|
||||||
<buttongroup name="underlayButtonGroup"/>
|
<buttongroup name="underlayButtonGroup"/>
|
||||||
|
<buttongroup name="pollingButtonGroup"/>
|
||||||
</buttongroups>
|
</buttongroups>
|
||||||
</ui>
|
</ui>
|
||||||
|
|
Ładowanie…
Reference in New Issue