mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-23 18:02:29 -04:00
ClearAvg now erases the plot in Echo Graph.
This commit is contained in:
parent
fd09b426ea
commit
14a3ba02f2
@ -114,3 +114,13 @@ bool EchoGraph::baseline()
|
|||||||
{
|
{
|
||||||
return ui->cbBaseline->isChecked();
|
return ui->cbBaseline->isChecked();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void EchoGraph::clearAvg()
|
||||||
|
{
|
||||||
|
for(int i=0; i<4096; i++) {
|
||||||
|
echocom_.blue[i]=0;
|
||||||
|
echocom_.red[i]=0;
|
||||||
|
}
|
||||||
|
echocom_.nsum=0;
|
||||||
|
plotSpec();
|
||||||
|
}
|
||||||
|
@ -23,6 +23,7 @@ public:
|
|||||||
|
|
||||||
void plotSpec();
|
void plotSpec();
|
||||||
void saveSettings();
|
void saveSettings();
|
||||||
|
void clearAvg();
|
||||||
bool baseline();
|
bool baseline();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
@ -3152,6 +3152,7 @@ void MainWindow::on_ClrAvgButton_clicked()
|
|||||||
m_nclearave=1;
|
m_nclearave=1;
|
||||||
if(m_mode=="Echo") {
|
if(m_mode=="Echo") {
|
||||||
echocom_.nsum=0;
|
echocom_.nsum=0;
|
||||||
|
m_echoGraph->clearAvg();
|
||||||
} else {
|
} else {
|
||||||
if(m_msgAvgWidget != NULL) {
|
if(m_msgAvgWidget != NULL) {
|
||||||
if(m_msgAvgWidget->isVisible()) m_msgAvgWidget->displayAvg("");
|
if(m_msgAvgWidget->isVisible()) m_msgAvgWidget->displayAvg("");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user