mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-25 05:38:46 -05:00
Change selection of Current/Cumulative/JT9Sync to a combobox.
Don't change frequency settings on double-click on decoded text, if the first call is MyCall. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3038 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
f678edddf2
commit
dc1877bc9d
@ -1267,7 +1267,9 @@ void MainWindow::doubleClickOnCall(bool shift, bool ctrl)
|
||||
QString t3=t.mid(i1,i4);
|
||||
QStringList t4=t3.split(" ",QString::SkipEmptyParts);
|
||||
if(t4.length() <7) return; //Skip the rest if no decoded text
|
||||
if(!shift) { //Don't change freqs if Shift key down
|
||||
QString firstcall=t4.at(6);
|
||||
//Don't change freqs if Shift key down or a station is calling me.
|
||||
if(!shift and firstcall!=m_myCall) {
|
||||
int nfreq=int(t4.at(4).toFloat());
|
||||
ui->TxFreqSpinBox->setValue(nfreq);
|
||||
g_pWideGraph->setQSOfreq(nfreq);
|
||||
|
@ -44,9 +44,9 @@ WideGraph::WideGraph(QWidget *parent) :
|
||||
ui->widePlot->m_bCurrent=settings.value("Current",true).toBool();
|
||||
ui->widePlot->m_bCumulative=settings.value("Cumulative",false).toBool();
|
||||
ui->widePlot->m_bJT9Sync=settings.value("JT9Sync",false).toBool();
|
||||
ui->rbCurrent->setChecked(ui->widePlot->m_bCurrent);
|
||||
ui->rbCumulative->setChecked(ui->widePlot->m_bCumulative);
|
||||
ui->rbJT9Sync->setChecked(ui->widePlot->m_bJT9Sync);
|
||||
if(ui->widePlot->m_bCurrent) ui->spec2dComboBox->setCurrentIndex(0);
|
||||
if(ui->widePlot->m_bCumulative) ui->spec2dComboBox->setCurrentIndex(1);
|
||||
if(ui->widePlot->m_bJT9Sync) ui->spec2dComboBox->setCurrentIndex(2);
|
||||
int nbpp=settings.value("BinsPerPixel",1).toInt();
|
||||
ui->widePlot->setBinsPerPixel(nbpp);
|
||||
m_qsoFreq=settings.value("QSOfreq",1010).toInt();
|
||||
@ -252,28 +252,17 @@ void WideGraph::setPeriod(int ntrperiod, int nsps)
|
||||
ui->widePlot->setNsps(ntrperiod, nsps);
|
||||
}
|
||||
|
||||
void WideGraph::on_rbCurrent_clicked()
|
||||
{
|
||||
ui->widePlot->m_bCurrent=true;
|
||||
ui->widePlot->m_bCumulative=false;
|
||||
ui->widePlot->m_bJT9Sync=false;
|
||||
}
|
||||
|
||||
void WideGraph::on_rbCumulative_clicked()
|
||||
{
|
||||
ui->widePlot->m_bCurrent=false;
|
||||
ui->widePlot->m_bCumulative=true;
|
||||
ui->widePlot->m_bJT9Sync=false;
|
||||
}
|
||||
|
||||
void WideGraph::on_rbJT9Sync_clicked()
|
||||
{
|
||||
ui->widePlot->m_bCurrent=false;
|
||||
ui->widePlot->m_bCumulative=false;
|
||||
ui->widePlot->m_bJT9Sync=true;
|
||||
}
|
||||
|
||||
void WideGraph::setTxFreq(int n)
|
||||
{
|
||||
ui->widePlot->setTxFreq(n);
|
||||
}
|
||||
|
||||
void WideGraph::on_spec2dComboBox_currentIndexChanged(const QString &arg1)
|
||||
{
|
||||
ui->widePlot->m_bCurrent=false;
|
||||
ui->widePlot->m_bCumulative=false;
|
||||
ui->widePlot->m_bJT9Sync=false;
|
||||
if(arg1=="Current") ui->widePlot->m_bCurrent=true;
|
||||
if(arg1=="Cumulative") ui->widePlot->m_bCumulative=true;
|
||||
if(arg1=="JT9 Sync") ui->widePlot->m_bJT9Sync=true;
|
||||
}
|
||||
|
@ -50,9 +50,7 @@ private slots:
|
||||
void on_zeroSpinBox_valueChanged(int arg1);
|
||||
void on_gainSpinBox_valueChanged(int arg1);
|
||||
void on_fDialLineEdit_editingFinished();
|
||||
void on_rbCurrent_clicked();
|
||||
void on_rbCumulative_clicked();
|
||||
void on_rbJT9Sync_clicked();
|
||||
void on_spec2dComboBox_currentIndexChanged(const QString &arg1);
|
||||
|
||||
private:
|
||||
qint32 m_waterfallAvg;
|
||||
|
40
widegraph.ui
40
widegraph.ui
@ -6,7 +6,7 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>1178</width>
|
||||
<width>811</width>
|
||||
<height>326</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -258,27 +258,25 @@
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QRadioButton" name="rbCurrent">
|
||||
<property name="text">
|
||||
<string>Current</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QRadioButton" name="rbCumulative">
|
||||
<property name="text">
|
||||
<string>Cumulative</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QRadioButton" name="rbJT9Sync">
|
||||
<property name="text">
|
||||
<string>JT9 Sync</string>
|
||||
<widget class="QComboBox" name="spec2dComboBox">
|
||||
<property name="currentIndex">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Current</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Cumulative</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>JT9 Sync</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
|
Loading…
Reference in New Issue
Block a user