mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-27 14:48:46 -05:00
Implement "Tx last: ..." and "Start with Monitor OFF".
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2769 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
725c6bcbc0
commit
22e9eb5417
@ -182,7 +182,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
soundInThread.start(QThread::HighestPriority);
|
||||
soundOutThread.setOutputDevice(m_paOutDevice);
|
||||
soundOutThread.setTxFreq(m_txFreq);
|
||||
m_monitoring=false; // Start with Monitoring OFF
|
||||
m_monitoring=!m_monitorStartOFF; // Start with Monitoring ON/OFF
|
||||
soundInThread.setMonitoring(m_monitoring);
|
||||
m_diskData=false;
|
||||
g_pWideGraph->setTol(m_tol);
|
||||
@ -269,6 +269,7 @@ void MainWindow::writeSettings()
|
||||
settings.setValue("SaveAll",ui->actionSave_all->isChecked());
|
||||
settings.setValue("NDepth",m_ndepth);
|
||||
settings.setValue("KB8RQ",m_kb8rq);
|
||||
settings.setValue("MonitorOFF",m_monitorStartOFF);
|
||||
settings.setValue("NB",m_NB);
|
||||
settings.setValue("NBslider",m_NBslider);
|
||||
settings.setValue("TxFreq",m_txFreq);
|
||||
@ -333,7 +334,10 @@ void MainWindow::readSettings()
|
||||
m_tol=settings.value("Tol",5).toInt();
|
||||
m_inGain=settings.value("InGain",0).toInt();
|
||||
ui->inGain->setValue(m_inGain);
|
||||
m_kb8rq=settings.value("KB8RQ",false).toBool();
|
||||
ui->actionF4_sets_Tx6->setChecked(m_kb8rq);
|
||||
m_monitorStartOFF=settings.value("MonitorOFF",false).toBool();
|
||||
ui->actionMonitor_OFF_at_startup->setChecked(m_monitorStartOFF);
|
||||
settings.endGroup();
|
||||
|
||||
if(!ui->actionLinrad->isChecked() && !ui->actionCuteSDR->isChecked() &&
|
||||
@ -602,7 +606,7 @@ void MainWindow::createStatusBar() //createStatusBar
|
||||
|
||||
lab5 = new QLabel("");
|
||||
lab5->setAlignment(Qt::AlignHCenter);
|
||||
lab5->setMinimumSize(QSize(50,18));
|
||||
lab5->setMinimumSize(QSize(100,18));
|
||||
lab5->setFrameStyle(QFrame::Panel | QFrame::Sunken);
|
||||
statusBar()->addWidget(lab5);
|
||||
}
|
||||
@ -940,7 +944,6 @@ void MainWindow::readFromStdout() //readFromStdout
|
||||
if(!keepFile) {
|
||||
QFile savedFile(m_fname);
|
||||
savedFile.remove();
|
||||
qDebug() << "Removed" << m_fname;
|
||||
}
|
||||
jt9com_.nagain=0;
|
||||
jt9com_.ndiskdat=0;
|
||||
@ -1049,6 +1052,7 @@ void MainWindow::guiUpdate()
|
||||
int len1=22;
|
||||
genjt9_(message,msgsent,itone,len1,len1);
|
||||
msgsent[22]=0;
|
||||
lab5->setText("Last Tx: " + QString::fromAscii(msgsent));
|
||||
if(m_restart) {
|
||||
QFile f("wsjtx_tx.log");
|
||||
f.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Append);
|
||||
@ -1056,6 +1060,7 @@ void MainWindow::guiUpdate()
|
||||
out << QDateTime::currentDateTimeUtc().toString("yyyy-MMM-dd hh:mm")
|
||||
<< " Tx message: " << QString::fromAscii(msgsent) << endl;
|
||||
f.close();
|
||||
|
||||
}
|
||||
|
||||
m_restart=false;
|
||||
@ -1149,16 +1154,19 @@ void MainWindow::guiUpdate()
|
||||
m_hsym0=khsym;
|
||||
m_sec0=nsec;
|
||||
|
||||
/*
|
||||
if(m_myCall=="K1JT") {
|
||||
char s[20];
|
||||
double t1=1.0;
|
||||
//Better: use signals from sound threads?
|
||||
// if(soundInThread.isRunning()) t1=soundInThread.samFacIn();
|
||||
if(soundInThread.isRunning()) t1=soundInThread.samFacIn();
|
||||
double t2=1.0;
|
||||
// if(soundOutThread.isRunning()) t2=soundOutThread.samFacOut();
|
||||
if(soundOutThread.isRunning()) t2=soundOutThread.samFacOut();
|
||||
sprintf(s,"%6.4f %6.4f",t1,t2);
|
||||
lab5->setText(s);
|
||||
}
|
||||
*/
|
||||
|
||||
}
|
||||
iptt0=iptt;
|
||||
btxok0=btxok;
|
||||
@ -1685,3 +1693,8 @@ void MainWindow::on_inGain_valueChanged(int n)
|
||||
{
|
||||
m_inGain=n;
|
||||
}
|
||||
|
||||
void MainWindow::on_actionMonitor_OFF_at_startup_triggered()
|
||||
{
|
||||
m_monitorStartOFF=!m_monitorStartOFF;
|
||||
}
|
||||
|
@ -108,6 +108,7 @@ private slots:
|
||||
void on_actionDeepestDecode_triggered();
|
||||
void on_inGain_valueChanged(int n);
|
||||
void bumpFqso(int n);
|
||||
void on_actionMonitor_OFF_at_startup_triggered();
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
@ -159,6 +160,7 @@ private:
|
||||
bool m_killAll;
|
||||
bool m_bsynced;
|
||||
bool m_bdecoded;
|
||||
bool m_monitorStartOFF;
|
||||
|
||||
char m_decoded[80];
|
||||
|
||||
|
@ -1202,6 +1202,7 @@ p, li { white-space: pre-wrap; }
|
||||
</property>
|
||||
<addaction name="actionDeviceSetup"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionMonitor_OFF_at_startup"/>
|
||||
<addaction name="actionF4_sets_Tx6"/>
|
||||
<addaction name="separator"/>
|
||||
</widget>
|
||||
@ -1658,6 +1659,14 @@ p, li { white-space: pre-wrap; }
|
||||
<string>Deepest</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionMonitor_OFF_at_startup">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Monitor OFF at startup</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<customwidgets>
|
||||
|
Loading…
Reference in New Issue
Block a user