1. Added comport list as per OS type

2. Adjusted layout od devsetup dialog


git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3100 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Edson W. R. Pereira 2013-03-25 20:42:25 +00:00
parent df3e97889a
commit 2fa5a07fd5
3 changed files with 2306 additions and 2226 deletions

View File

@ -152,6 +152,27 @@ void DevSetup::initDlg()
ui.stopBitsComboBox->setCurrentIndex(m_stopBitsIndex);
ui.handshakeComboBox->setCurrentIndex(m_handshakeIndex);
// PY2SDR -- Per OS serial port names
ui.catPortComboBox->clear();
ui.catPortComboBox->addItem("None");
#ifdef WIN32
for ( int i = 1; i < 100; i++ ) {
ui.catPortComboBox->addItem("COM" + QString::number(i));
}
ui.catPortComboBox->addItem("USB");
#else
ui.catPortComboBox->addItem("/dev/ttyS0");
ui.catPortComboBox->addItem("/dev/ttyS1");
ui.catPortComboBox->addItem("/dev/ttyS2");
ui.catPortComboBox->addItem("/dev/ttyS3");
ui.catPortComboBox->addItem("/dev/ttyUSB0");
ui.catPortComboBox->addItem("/dev/ttyUSB1");
ui.catPortComboBox->addItem("/dev/ttyUSB2");
ui.catPortComboBox->addItem("/dev/ttyUSB3");
#endif
ui.catPortComboBox->setCurrentIndex(m_catPortIndex);
ui.macro1->setText(m_macro[0].toUpper());
ui.macro2->setText(m_macro[1].toUpper());
ui.macro3->setText(m_macro[2].toUpper());

File diff suppressed because it is too large Load Diff

View File

@ -51,7 +51,8 @@ subroutine jt9a
100 inquire(file=trim(cwd)//'/.lock',exist=fileExists)
if(fileExists) go to 10
call sleep_msec(100)
!call sleep_msec(100)
call usleep(100*1000)
go to 100
999 return