diff options
| author | tony mancill <tmancill@debian.org> | 2023-09-03 19:46:43 -0700 |
|---|---|---|
| committer | tony mancill <tmancill@debian.org> | 2023-09-03 19:46:43 -0700 |
| commit | 393a486ee1d7e308a49f8e0b8c3a4b2f43223248 (patch) | |
| tree | 6a6e8a56ace360795e1cf1a310d5652bb23f1386 /qmap/devsetup.cpp | |
| parent | 6a285ab382ebff18c88e52bec75dc1773ac33b74 (diff) | |
New upstream version 2.7.0~rc2+repackupstream/2.7.0_rc2+repack
Diffstat (limited to 'qmap/devsetup.cpp')
| -rwxr-xr-x | qmap/devsetup.cpp | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/qmap/devsetup.cpp b/qmap/devsetup.cpp new file mode 100755 index 00000000..2617952b --- /dev/null +++ b/qmap/devsetup.cpp @@ -0,0 +1,48 @@ +#include "devsetup.h"
+#include "mainwindow.h"
+#include <QTextStream>
+#include <QDebug>
+#include <cstdio>
+
+//----------------------------------------------------------- DevSetup()
+DevSetup::DevSetup(QWidget *parent) : QDialog(parent)
+{
+ ui.setupUi(this); //setup the dialog form
+ m_restartSoundIn=false;
+}
+
+DevSetup::~DevSetup()
+{
+}
+
+void DevSetup::initDlg()
+{
+ ui.myCallEntry->setText(m_myCall);
+ ui.myGridEntry->setText(m_myGrid);
+ ui.astroFont->setValue(m_astroFont);
+ ui.saveDirEntry->setText(m_saveDir);
+ ui.azelDirEntry->setText(m_azelDir);
+ ui.fCalSpinBox->setValue(m_fCal);
+ ui.faddEntry->setText(QString::number(m_fAdd,'f',3));
+ ui.sbPort->setValue(m_udpPort);
+ ui.sb_dB->setValue(m_dB);
+}
+
+//------------------------------------------------------- accept()
+void DevSetup::accept()
+{
+ // Called when OK button is clicked.
+ // Check to see whether SoundInThread must be restarted,
+ // and save user parameters.
+
+ m_myCall=ui.myCallEntry->text();
+ m_myGrid=ui.myGridEntry->text();
+ m_astroFont=ui.astroFont->value();
+ m_saveDir=ui.saveDirEntry->text();
+ m_azelDir=ui.azelDirEntry->text();
+ m_fCal=ui.fCalSpinBox->value();
+ m_fAdd=ui.faddEntry->text().toDouble();
+ m_udpPort=ui.sbPort->value();
+ m_dB=ui.sb_dB->value();
+ QDialog::accept();
+}
|
