diff options
| author | Christoph Berg <myon@debian.org> | 2026-04-07 19:04:48 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-04-07 19:04:48 +0200 |
| commit | 9b9d6a272fa4204d45956828da3f20b7be49f675 (patch) | |
| tree | b611f981259a12a2bfd4d7305843929447f1bb74 /qmap/devsetup.cpp | |
| parent | 2f7ab3ab46786fa2a5931dae22a1b119b5cfdafa (diff) | |
| parent | f647d78463c1250ce9c99af664615fafccf5e959 (diff) | |
Update upstream source from tag 'upstream/3.0.0'
Update to upstream version '3.0.0'
with Debian dir 3b764e9a4be12ad8351230b538640dd98ddb9d05
Diffstat (limited to 'qmap/devsetup.cpp')
| -rw-r--r--[-rwxr-xr-x] | qmap/devsetup.cpp | 140 |
1 files changed, 70 insertions, 70 deletions
diff --git a/qmap/devsetup.cpp b/qmap/devsetup.cpp index c980328c..135ea719 100755..100644 --- a/qmap/devsetup.cpp +++ b/qmap/devsetup.cpp @@ -1,70 +1,70 @@ -#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;
-
- QButtonGroup *buttonGroup = new QButtonGroup(this);
- buttonGroup->addButton(ui.w3szBut);
- buttonGroup->addButton(ui.otherBut);
-
- connect(buttonGroup, SIGNAL(buttonClicked(int)), this, SLOT(onButtonClicked(int)));
-}
-
-DevSetup::~DevSetup()
-{
-}
-
-void DevSetup::initDlg()
-{
- ui.myCallEntry->setText(m_myCall);
- ui.myGridEntry->setText(m_myGrid);
- ui.astroFont->setValue(m_astroFont);
- ui.myCallColor->addItems({"","red","green","cyan"});
- ui.myCallColor->setCurrentIndex(m_myCallColor);
- 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);
- ui.otherUrlBox->setText(m_otherUrl);
- if(m_w3szUrl) ui.w3szBut->setChecked(true);
- else ui.otherBut->setChecked(true);
-}
-
-//------------------------------------------------------- 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_myCallColor=ui.myCallColor->currentIndex();
- 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();
- m_otherUrl=ui.otherUrlBox->text();
- m_w3szUrl = ui.w3szBut->isChecked();
- QDialog::accept();
-}
-
-void DevSetup::onButtonClicked()
-{
- if(ui.w3szBut->isChecked())
- {
-
- }
-}
+#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; + + QButtonGroup *buttonGroup = new QButtonGroup(this); + buttonGroup->addButton(ui.w3szBut); + buttonGroup->addButton(ui.otherBut); + + connect(buttonGroup, SIGNAL(buttonClicked(int)), this, SLOT(onButtonClicked(int))); +} + +DevSetup::~DevSetup() +{ +} + +void DevSetup::initDlg() +{ + ui.myCallEntry->setText(m_myCall); + ui.myGridEntry->setText(m_myGrid); + ui.astroFont->setValue(m_astroFont); + ui.myCallColor->addItems({"","red","green","cyan"}); + ui.myCallColor->setCurrentIndex(m_myCallColor); + 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); + ui.otherUrlBox->setText(m_otherUrl); + if(m_w3szUrl) ui.w3szBut->setChecked(true); + else ui.otherBut->setChecked(true); +} + +//------------------------------------------------------- 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_myCallColor=ui.myCallColor->currentIndex(); + 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(); + m_otherUrl=ui.otherUrlBox->text(); + m_w3szUrl = ui.w3szBut->isChecked(); + QDialog::accept(); +} + +void DevSetup::onButtonClicked() +{ + if(ui.w3szBut->isChecked()) + { + + } +} |
