/[svn]/qsampler/trunk/src/qsamplerOptionsForm.ui.h
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerOptionsForm.ui.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 119 by capela, Wed Jun 9 20:24:48 2004 UTC revision 267 by capela, Wed Oct 6 15:42:59 2004 UTC
# Line 86  void qsamplerOptionsForm::setup ( qsampl Line 86  void qsamplerOptionsForm::setup ( qsampl
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);
# Line 127  void qsamplerOptionsForm::accept (void) Line 131  void qsamplerOptionsForm::accept (void)
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();
# Line 232  void qsamplerOptionsForm::chooseMessages Line 237  void qsamplerOptionsForm::chooseMessages
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    

Legend:
Removed from v.119  
changed lines
  Added in v.267

  ViewVC Help
Powered by ViewVC