75 connect(ui.m_spinBox_SamplingFreq, static_cast<void (QSpinBox::*)(
int)>(&QSpinBox::valueChanged),
76 this, &TMSISetupWidget::setDeviceSamplingProperties);
77 connect(ui.m_spinBox_NumberOfChannels, static_cast<void (QSpinBox::*)(
int)>(&QSpinBox::valueChanged),
78 this, &TMSISetupWidget::setDeviceSamplingProperties);
79 connect(ui.m_spinBox_SamplesPerBlock, static_cast<void (QSpinBox::*)(
int)>(&QSpinBox::valueChanged),
80 this, &TMSISetupWidget::setDeviceSamplingProperties);
81 connect(ui.m_checkBox_UseCommonAverage, static_cast<void (QCheckBox::*)(
bool)>(&QCheckBox::clicked),
82 this, &TMSISetupWidget::setDeviceSamplingProperties);
85 connect(ui.m_checkBox_UseChExponent, static_cast<void (QCheckBox::*)(
bool)>(&QCheckBox::clicked),
86 this, &TMSISetupWidget::setDeviceSamplingProperties);
87 connect(ui.m_checkBox_UseUnitGain, static_cast<void (QCheckBox::*)(
bool)>(&QCheckBox::clicked),
88 this, &TMSISetupWidget::setDeviceSamplingProperties);
89 connect(ui.m_checkBox_UseUnitOffset, static_cast<void (QCheckBox::*)(
bool)>(&QCheckBox::clicked),
90 this, &TMSISetupWidget::setDeviceSamplingProperties);
93 connect(ui.m_checkBox_UseFiltering, static_cast<void (QCheckBox::*)(
bool)>(&QCheckBox::clicked),
94 this, &TMSISetupWidget::setPreprocessing);
97 connect(ui.m_checkBox_UseFFT, static_cast<void (QCheckBox::*)(
bool)>(&QCheckBox::clicked),
98 this, &TMSISetupWidget::setPostprocessing);
101 connect(ui.m_checkBox_WriteDriverDebugToFile, static_cast<void (QCheckBox::*)(
bool)>(&QCheckBox::clicked),
102 this, &TMSISetupWidget::setWriteToFile);
105 connect(ui.m_spinBox_BeepLength, static_cast<void (QSpinBox::*)(
int)>(&QSpinBox::valueChanged),
106 this, &TMSISetupWidget::setTriggerProperties);
107 connect(ui.m_checkBox_EnableBeep, static_cast<void (QCheckBox::*)(
bool)>(&QCheckBox::clicked),
108 this, &TMSISetupWidget::setTriggerProperties);
109 connect(ui.m_checkBox_EnableKeyboardTrigger, static_cast<void (QCheckBox::*)(
bool)>(&QCheckBox::clicked),
110 this, &TMSISetupWidget::setTriggerProperties);
113 connect(ui.m_qPushButton_About, &QPushButton::released,
this, &TMSISetupWidget::showAboutDialog);
116 QFile file(m_pTMSI->m_qStringResourcePath+
"readme.txt");
117 if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
120 QTextStream in(&file);
123 QString line = in.readLine();
124 ui.m_qTextBrowser_Information->insertHtml(line);
125 ui.m_qTextBrowser_Information->insertHtml(
"<br>");
143 ui.m_spinBox_SamplingFreq->setValue(m_pTMSI->m_iSamplingFreq);
144 ui.m_spinBox_NumberOfChannels->setValue(m_pTMSI->m_iNumberOfChannels);
145 ui.m_spinBox_SamplesPerBlock->setValue(m_pTMSI->m_iSamplesPerBlock);
146 ui.m_checkBox_UseCommonAverage->setChecked(m_pTMSI->m_bUseCommonAverage);
149 ui.m_checkBox_UseChExponent->setChecked(m_pTMSI->m_bUseChExponent);
150 ui.m_checkBox_UseUnitGain->setChecked(m_pTMSI->m_bUseUnitGain);
151 ui.m_checkBox_UseUnitOffset->setChecked(m_pTMSI->m_bUseUnitOffset);
154 ui.m_checkBox_UseFiltering->setChecked(m_pTMSI->m_bUseFiltering);
157 ui.m_checkBox_WriteDriverDebugToFile->setChecked(m_pTMSI->m_bWriteDriverDebugToFile);
160 ui.m_spinBox_BeepLength->setValue(m_pTMSI->m_iTriggerInterval);
161 ui.m_checkBox_EnableBeep->setChecked(m_pTMSI->m_bBeepTrigger);
163 ui.m_checkBox_EnableKeyboardTrigger->setChecked(m_pTMSI->m_bUseKeyboardTrigger);
169 void TMSISetupWidget::setDeviceSamplingProperties()
171 cout<<
"changing "<<endl;
172 m_pTMSI->m_iSamplingFreq = ui.m_spinBox_SamplingFreq->value();
173 m_pTMSI->m_iNumberOfChannels = ui.m_spinBox_NumberOfChannels->value();
174 m_pTMSI->m_iSamplesPerBlock = ui.m_spinBox_SamplesPerBlock->value();
176 m_pTMSI->m_bUseChExponent = ui.m_checkBox_UseChExponent->isChecked();
177 m_pTMSI->m_bUseUnitGain = ui.m_checkBox_UseUnitGain->isChecked();
178 m_pTMSI->m_bUseUnitOffset = ui.m_checkBox_UseUnitOffset->isChecked();
180 m_pTMSI->m_bUseCommonAverage = ui.m_checkBox_UseCommonAverage->isChecked();
186 void TMSISetupWidget::setPreprocessing()
188 m_pTMSI->m_bUseFiltering = ui.m_checkBox_UseFiltering->isChecked();
194 void TMSISetupWidget::setPostprocessing()
196 m_pTMSI->m_bUseFFT = ui.m_checkBox_UseFFT->isChecked();
202 void TMSISetupWidget::setWriteToFile()
204 m_pTMSI->m_bWriteDriverDebugToFile = ui.m_checkBox_WriteDriverDebugToFile->isChecked();
209 void TMSISetupWidget::setTriggerProperties()
211 m_pTMSI->m_iTriggerInterval = ui.m_spinBox_BeepLength->value();
212 m_pTMSI->m_bBeepTrigger = ui.m_checkBox_EnableBeep->isChecked();
213 m_pTMSI->m_bUseKeyboardTrigger = ui.m_checkBox_EnableKeyboardTrigger->isChecked();
219 void TMSISetupWidget::showAboutDialog()
The TMSI class provides a EEG connector. In order for this plugin to work properly the driver dll "RT...