summaryrefslogtreecommitdiff
path: root/map65/devsetup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'map65/devsetup.cpp')
-rwxr-xr-xmap65/devsetup.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/map65/devsetup.cpp b/map65/devsetup.cpp
index 31923eab..a143c56c 100755
--- a/map65/devsetup.cpp
+++ b/map65/devsetup.cpp
@@ -13,6 +13,13 @@ DevSetup::DevSetup(QWidget *parent) : QDialog(parent)
ui.setupUi(this); //setup the dialog form
m_restartSoundIn=false;
m_restartSoundOut=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()
@@ -134,6 +141,10 @@ void DevSetup::initDlg()
m_paInDevice=m_inDevList[m_nDevIn];
m_paOutDevice=m_outDevList[m_nDevOut];
+ ui.otherUrlBox->setText(m_otherUrl);
+ if(m_w3szUrl) ui.w3szBut->setChecked(true);
+ else ui.otherBut->setChecked(true);
+
}
//------------------------------------------------------- accept()
@@ -182,6 +193,8 @@ void DevSetup::accept()
m_mult570Tx=ui.mult570TxSpinBox->value();
m_cal570=ui.cal570SpinBox->value();
m_TxOffset=ui.sbTxOffset->value();
+ m_otherUrl=ui.otherUrlBox->text();
+ m_w3szUrl = ui.w3szBut->isChecked();
QDialog::accept();
}
@@ -198,6 +211,18 @@ void DevSetup::on_soundCardRadioButton_toggled(bool checked)
ui.sb_dB->setEnabled(checked);
}
+void DevSetup::onButtonClicked()
+{
+ if(ui.w3szBut->isChecked())
+ {
+ m_w3szUrl = true;
+ }
+ else
+ {
+ m_w3szUrl = false;
+ }
+}
+
void DevSetup::on_cbXpol_stateChanged(int n)
{
m_xpol = (n!=0);