mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-11-04 05:50:31 -05:00 
			
		
		
		
	More cleanup of unneeded stuff.
This commit is contained in:
		
							parent
							
								
									c98eb2019f
								
							
						
					
					
						commit
						1099837b50
					
				@ -1246,21 +1246,6 @@ void MainWindow::guiUpdate()
 | 
				
			|||||||
  bIQxt=m_bIQxt;
 | 
					  bIQxt=m_bIQxt;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void MainWindow::ba2msg(QByteArray ba, char message[])             //ba2msg()
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  bool eom;
 | 
					 | 
				
			||||||
  eom=false;
 | 
					 | 
				
			||||||
  for(int i=0;i<22; i++) {
 | 
					 | 
				
			||||||
    if (i >= ba.size () || !ba[i]) eom=true;
 | 
					 | 
				
			||||||
    if(eom) {
 | 
					 | 
				
			||||||
      message[i] = ' ';
 | 
					 | 
				
			||||||
    } else {
 | 
					 | 
				
			||||||
      message[i]=ba[i];
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
  message[22] = '\0';
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
void MainWindow::lookup()                                       //lookup()
 | 
					void MainWindow::lookup()                                       //lookup()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  QString hiscall=ui->dxCallEntry->text().toUpper().trimmed();
 | 
					  QString hiscall=ui->dxCallEntry->text().toUpper().trimmed();
 | 
				
			||||||
@ -1394,47 +1379,6 @@ void MainWindow::on_addButton_clicked()                       //Add button
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					 | 
				
			||||||
void MainWindow::msgtype(QString t, QLineEdit* tx)                //msgtype()
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
//  if(t.length()<1) return 0;
 | 
					 | 
				
			||||||
  char message[23];
 | 
					 | 
				
			||||||
  char msgsent[23];
 | 
					 | 
				
			||||||
  int len1=22;
 | 
					 | 
				
			||||||
  int mode65=0;            //mode65 ==> check message but don't make wave()
 | 
					 | 
				
			||||||
  double samfac=1.0;
 | 
					 | 
				
			||||||
  int nsendingsh=0;
 | 
					 | 
				
			||||||
  int mwave;
 | 
					 | 
				
			||||||
  t=t.toUpper();
 | 
					 | 
				
			||||||
  int i1=t.indexOf(" OOO");
 | 
					 | 
				
			||||||
  QByteArray s=t.toUpper().toLocal8Bit();
 | 
					 | 
				
			||||||
  ba2msg(s,message);
 | 
					 | 
				
			||||||
  gen65_(message,&mode65,&samfac,&nsendingsh,msgsent,iwave,
 | 
					 | 
				
			||||||
         &mwave,len1,len1);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  QPalette p(tx->palette());
 | 
					 | 
				
			||||||
  if(nsendingsh==1) {
 | 
					 | 
				
			||||||
    p.setColor(QPalette::Base,"#66ffff");
 | 
					 | 
				
			||||||
  } else if(nsendingsh==-1) {
 | 
					 | 
				
			||||||
    p.setColor(QPalette::Base,"#ffccff");
 | 
					 | 
				
			||||||
  } else {
 | 
					 | 
				
			||||||
    p.setColor(QPalette::Base,Qt::white);
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
  tx->setPalette(p);
 | 
					 | 
				
			||||||
  int len=t.length();
 | 
					 | 
				
			||||||
  if(nsendingsh==-1) {
 | 
					 | 
				
			||||||
    len=qMin(len,13);
 | 
					 | 
				
			||||||
    if(i1>10) {
 | 
					 | 
				
			||||||
      tx->setText(t.mid(0,len).toUpper() + " OOO");
 | 
					 | 
				
			||||||
    } else {
 | 
					 | 
				
			||||||
      tx->setText(t.mid(0,len).toUpper());
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
  } else {
 | 
					 | 
				
			||||||
    tx->setText(t);
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
void MainWindow::on_dxCallEntry_textChanged(const QString &t) //dxCall changed
 | 
					void MainWindow::on_dxCallEntry_textChanged(const QString &t) //dxCall changed
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  m_hisCall=t.toUpper().trimmed();
 | 
					  m_hisCall=t.toUpper().trimmed();
 | 
				
			||||||
 | 
				
			|||||||
@ -217,9 +217,6 @@ private:
 | 
				
			|||||||
  void updateStatusBar();
 | 
					  void updateStatusBar();
 | 
				
			||||||
  void msgBox(QString t);
 | 
					  void msgBox(QString t);
 | 
				
			||||||
  void lookup();
 | 
					  void lookup();
 | 
				
			||||||
  void ba2msg(QByteArray ba, char* message);
 | 
					 | 
				
			||||||
  void msgtype(QString t, QLineEdit* tx);
 | 
					 | 
				
			||||||
  void stub();
 | 
					 | 
				
			||||||
  bool isGrid4(QString g);
 | 
					  bool isGrid4(QString g);
 | 
				
			||||||
  bool subProcessFailed (QProcess *, int exit_code, QProcess::ExitStatus);
 | 
					  bool subProcessFailed (QProcess *, int exit_code, QProcess::ExitStatus);
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
@ -240,14 +237,6 @@ extern "C" {
 | 
				
			|||||||
                float* px, float* py, float s[], int* nkhz, int* nhsym,
 | 
					                float* px, float* py, float s[], int* nkhz, int* nhsym,
 | 
				
			||||||
                int* nzap, float* slimit, uchar lstrong[]);
 | 
					                int* nzap, float* slimit, uchar lstrong[]);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  void gen65_(char* msg, int* mode65, double* samfac,
 | 
					 | 
				
			||||||
              int* nsendingsh, char* msgsent, short iwave[], int* nwave,
 | 
					 | 
				
			||||||
              int len1, int len2);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  void gen_q65_wave_(char* msg, int* ntxFreq, int* mode64,
 | 
					 | 
				
			||||||
              char* msgsent, short iwave[], int* nwave,
 | 
					 | 
				
			||||||
              int len1, int len2);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  void astrosub00_ (int* nyear, int* month, int* nday, double* uth, int* nfreq,
 | 
					  void astrosub00_ (int* nyear, int* month, int* nday, double* uth, int* nfreq,
 | 
				
			||||||
                    const char* mygrid, int* ndop00, int len1);
 | 
					                    const char* mygrid, int* ndop00, int len1);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user