/[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 102 by capela, Fri Jun 4 10:30:56 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      // Auto-refresh option.      // Display effect.
90        DisplayEffectCheckBox->setChecked(m_pOptions->bDisplayEffect);
91        toggleDisplayEffect(m_pOptions->bDisplayEffect);
92    
93        // 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);
96            MaxVolumeSpinBox->setValue(m_pOptions->iMaxVolume);
97    
98      // Messages font.      // Messages font.
99      if (m_pOptions->sMessagesFont.isEmpty() || !font.fromString(m_pOptions->sMessagesFont))      if (m_pOptions->sMessagesFont.isEmpty() || !font.fromString(m_pOptions->sMessagesFont))
100          font = QFont("Fixed", 8);          font = QFont("Fixed", 8);
# Line 124  void qsamplerOptionsForm::accept (void) Line 129  void qsamplerOptionsForm::accept (void)
129          m_pOptions->bServerStart         = ServerStartCheckBox->isChecked();          m_pOptions->bServerStart         = ServerStartCheckBox->isChecked();
130          m_pOptions->sServerCmdLine       = ServerCmdLineComboBox->currentText().simplifyWhiteSpace();          m_pOptions->sServerCmdLine       = ServerCmdLineComboBox->currentText().simplifyWhiteSpace();
131          m_pOptions->iStartDelay          = StartDelaySpinBox->value();          m_pOptions->iStartDelay          = StartDelaySpinBox->value();
132          // Channel display 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          // Message window options...          m_pOptions->iMaxVolume           = MaxVolumeSpinBox->value();
138            // Messages options...
139          m_pOptions->sMessagesFont        = MessagesFontTextLabel->font().toString();          m_pOptions->sMessagesFont        = MessagesFontTextLabel->font().toString();
140          m_pOptions->bMessagesLimit       = MessagesLimitCheckBox->isChecked();          m_pOptions->bMessagesLimit       = MessagesLimitCheckBox->isChecked();
141          m_pOptions->iMessagesLimitLines  = MessagesLimitLinesSpinBox->value();          m_pOptions->iMessagesLimitLines  = MessagesLimitLinesSpinBox->value();
# Line 230  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.102  
changed lines
  Added in v.267

  ViewVC Help
Powered by ViewVC