86 |
DisplayFontTextLabel->setFont(font); |
DisplayFontTextLabel->setFont(font); |
87 |
DisplayFontTextLabel->setText(font.family() + " " + QString::number(font.pointSize())); |
DisplayFontTextLabel->setText(font.family() + " " + QString::number(font.pointSize())); |
88 |
|
|
89 |
|
// Display effect. |
90 |
|
DisplayEffectCheckBox->setChecked(m_pOptions->bDisplayEffect); |
91 |
|
toggleDisplayEffect(m_pOptions->bDisplayEffect); |
92 |
|
|
93 |
// Auto-refresh and maximum volume options. |
// Auto-refresh and maximum volume options. |
94 |
AutoRefreshCheckBox->setChecked(m_pOptions->bAutoRefresh); |
AutoRefreshCheckBox->setChecked(m_pOptions->bAutoRefresh); |
95 |
AutoRefreshTimeSpinBox->setValue(m_pOptions->iAutoRefreshTime); |
AutoRefreshTimeSpinBox->setValue(m_pOptions->iAutoRefreshTime); |
131 |
m_pOptions->iStartDelay = StartDelaySpinBox->value(); |
m_pOptions->iStartDelay = StartDelaySpinBox->value(); |
132 |
// Channels options... |
// Channels options... |
133 |
m_pOptions->sDisplayFont = DisplayFontTextLabel->font().toString(); |
m_pOptions->sDisplayFont = DisplayFontTextLabel->font().toString(); |
134 |
|
m_pOptions->bDisplayEffect = DisplayEffectCheckBox->isChecked(); |
135 |
m_pOptions->bAutoRefresh = AutoRefreshCheckBox->isChecked(); |
m_pOptions->bAutoRefresh = AutoRefreshCheckBox->isChecked(); |
136 |
m_pOptions->iAutoRefreshTime = AutoRefreshTimeSpinBox->value(); |
m_pOptions->iAutoRefreshTime = AutoRefreshTimeSpinBox->value(); |
137 |
m_pOptions->iMaxVolume = MaxVolumeSpinBox->value(); |
m_pOptions->iMaxVolume = MaxVolumeSpinBox->value(); |
237 |
} |
} |
238 |
|
|
239 |
|
|
240 |
|
// The channel display effect demo changer. |
241 |
|
void qsamplerOptionsForm::toggleDisplayEffect ( bool bOn ) |
242 |
|
{ |
243 |
|
QPixmap pm; |
244 |
|
if (bOn) |
245 |
|
pm = QPixmap::fromMimeSource("displaybg1.png"); |
246 |
|
DisplayFontTextLabel->setPaletteBackgroundPixmap(pm); |
247 |
|
|
248 |
|
optionsChanged(); |
249 |
|
} |
250 |
|
|
251 |
|
|
252 |
// end of qsamplerOptionsForm.ui.h |
// end of qsamplerOptionsForm.ui.h |
253 |
|
|