/[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 341 by capela, Tue Jan 18 11:29:01 2005 UTC
# Line 2  Line 2 
2  //  //
3  // ui.h extension file, included from the uic-generated form implementation.  // ui.h extension file, included from the uic-generated form implementation.
4  /****************************************************************************  /****************************************************************************
5     Copyright (C) 2004, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2004-2005, rncbc aka Rui Nuno Capela. All rights reserved.
6    
7     This program is free software; you can redistribute it and/or     This program is free software; you can redistribute it and/or
8     modify it under the terms of the GNU General Public License     modify it under the terms of the GNU General Public License
# 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 105  void qsamplerOptionsForm::setup ( qsampl Line 109  void qsamplerOptionsForm::setup ( qsampl
109      ConfirmRemoveCheckBox->setChecked(m_pOptions->bConfirmRemove);      ConfirmRemoveCheckBox->setChecked(m_pOptions->bConfirmRemove);
110      StdoutCaptureCheckBox->setChecked(m_pOptions->bStdoutCapture);      StdoutCaptureCheckBox->setChecked(m_pOptions->bStdoutCapture);
111      CompletePathCheckBox->setChecked(m_pOptions->bCompletePath);      CompletePathCheckBox->setChecked(m_pOptions->bCompletePath);
112        InstrumentNamesCheckBox->setChecked(m_pOptions->bInstrumentNames);
113      MaxRecentFilesSpinBox->setValue(m_pOptions->iMaxRecentFiles);      MaxRecentFilesSpinBox->setValue(m_pOptions->iMaxRecentFiles);
114    
115    #ifndef CONFIG_LIBGIG
116        InstrumentNamesCheckBox->setEnabled(false);
117    #endif
118    
119      // Done.      // Done.
120      m_iDirtySetup--;      m_iDirtySetup--;
121      stabilizeForm();      stabilizeForm();
# Line 127  void qsamplerOptionsForm::accept (void) Line 136  void qsamplerOptionsForm::accept (void)
136          m_pOptions->iStartDelay          = StartDelaySpinBox->value();          m_pOptions->iStartDelay          = StartDelaySpinBox->value();
137          // Channels options...          // Channels options...
138          m_pOptions->sDisplayFont         = DisplayFontTextLabel->font().toString();          m_pOptions->sDisplayFont         = DisplayFontTextLabel->font().toString();
139            m_pOptions->bDisplayEffect       = DisplayEffectCheckBox->isChecked();
140          m_pOptions->bAutoRefresh         = AutoRefreshCheckBox->isChecked();          m_pOptions->bAutoRefresh         = AutoRefreshCheckBox->isChecked();
141          m_pOptions->iAutoRefreshTime     = AutoRefreshTimeSpinBox->value();          m_pOptions->iAutoRefreshTime     = AutoRefreshTimeSpinBox->value();
142          m_pOptions->iMaxVolume           = MaxVolumeSpinBox->value();          m_pOptions->iMaxVolume           = MaxVolumeSpinBox->value();
# Line 138  void qsamplerOptionsForm::accept (void) Line 148  void qsamplerOptionsForm::accept (void)
148          m_pOptions->bConfirmRemove       = ConfirmRemoveCheckBox->isChecked();          m_pOptions->bConfirmRemove       = ConfirmRemoveCheckBox->isChecked();
149          m_pOptions->bStdoutCapture       = StdoutCaptureCheckBox->isChecked();          m_pOptions->bStdoutCapture       = StdoutCaptureCheckBox->isChecked();
150          m_pOptions->bCompletePath        = CompletePathCheckBox->isChecked();          m_pOptions->bCompletePath        = CompletePathCheckBox->isChecked();
151            m_pOptions->bInstrumentNames     = InstrumentNamesCheckBox->isChecked();
152          m_pOptions->iMaxRecentFiles      = MaxRecentFilesSpinBox->value();          m_pOptions->iMaxRecentFiles      = MaxRecentFilesSpinBox->value();
153          // Reset dirty flag.          // Reset dirty flag.
154          m_iDirtyCount = 0;          m_iDirtyCount = 0;
# Line 232  void qsamplerOptionsForm::chooseMessages Line 243  void qsamplerOptionsForm::chooseMessages
243  }  }
244    
245    
246    // The channel display effect demo changer.
247    void qsamplerOptionsForm::toggleDisplayEffect ( bool bOn )
248    {
249        QPixmap pm;
250        if (bOn)
251            pm = QPixmap::fromMimeSource("displaybg1.png");
252        DisplayFontTextLabel->setPaletteBackgroundPixmap(pm);
253    
254        optionsChanged();
255    }
256    
257    
258  // end of qsamplerOptionsForm.ui.h  // end of qsamplerOptionsForm.ui.h
259    

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

  ViewVC Help
Powered by ViewVC