/[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 341 by capela, Tue Jan 18 11:29:01 2005 UTC revision 757 by capela, Fri Aug 26 23:04:32 2005 UTC
# Line 20  Line 20 
20    
21  *****************************************************************************/  *****************************************************************************/
22    
23    #include "qsamplerAbout.h"
24    #include "qsamplerOptions.h"
25    
26  #include <qvalidator.h>  #include <qvalidator.h>
27  #include <qmessagebox.h>  #include <qmessagebox.h>
28  #include <qfontdialog.h>  #include <qfontdialog.h>
29    
 #include "qsamplerOptions.h"  
   
 #include "config.h"  
   
30    
31  // Kind of constructor.  // Kind of constructor.
32  void qsamplerOptionsForm::init (void)  void qsamplerOptionsForm::init (void)
# Line 107  void qsamplerOptionsForm::setup ( qsampl Line 106  void qsamplerOptionsForm::setup ( qsampl
106    
107      // Other options finally.      // Other options finally.
108      ConfirmRemoveCheckBox->setChecked(m_pOptions->bConfirmRemove);      ConfirmRemoveCheckBox->setChecked(m_pOptions->bConfirmRemove);
109        KeepOnTopCheckBox->setChecked(m_pOptions->bKeepOnTop);
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);      InstrumentNamesCheckBox->setChecked(m_pOptions->bInstrumentNames);
# Line 128  void qsamplerOptionsForm::accept (void) Line 128  void qsamplerOptionsForm::accept (void)
128      // Save options...      // Save options...
129      if (m_iDirtyCount > 0) {      if (m_iDirtyCount > 0) {
130          // Server settings....          // Server settings....
131          m_pOptions->sServerHost          = ServerHostComboBox->currentText().stripWhiteSpace();          m_pOptions->sServerHost         = ServerHostComboBox->currentText().stripWhiteSpace();
132          m_pOptions->iServerPort          = ServerPortComboBox->currentText().toInt();          m_pOptions->iServerPort         = ServerPortComboBox->currentText().toInt();
133          m_pOptions->iServerTimeout       = ServerTimeoutSpinBox->value();          m_pOptions->iServerTimeout      = ServerTimeoutSpinBox->value();
134          m_pOptions->bServerStart         = ServerStartCheckBox->isChecked();          m_pOptions->bServerStart        = ServerStartCheckBox->isChecked();
135          m_pOptions->sServerCmdLine       = ServerCmdLineComboBox->currentText().simplifyWhiteSpace();          m_pOptions->sServerCmdLine      = ServerCmdLineComboBox->currentText().simplifyWhiteSpace();
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();          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();
143          // Messages options...          // Messages options...
144          m_pOptions->sMessagesFont        = MessagesFontTextLabel->font().toString();          m_pOptions->sMessagesFont       = MessagesFontTextLabel->font().toString();
145          m_pOptions->bMessagesLimit       = MessagesLimitCheckBox->isChecked();          m_pOptions->bMessagesLimit      = MessagesLimitCheckBox->isChecked();
146          m_pOptions->iMessagesLimitLines  = MessagesLimitLinesSpinBox->value();          m_pOptions->iMessagesLimitLines = MessagesLimitLinesSpinBox->value();
147          // Other options...          // Other options...
148          m_pOptions->bConfirmRemove       = ConfirmRemoveCheckBox->isChecked();          m_pOptions->bConfirmRemove      = ConfirmRemoveCheckBox->isChecked();
149          m_pOptions->bStdoutCapture       = StdoutCaptureCheckBox->isChecked();          m_pOptions->bKeepOnTop          = KeepOnTopCheckBox->isChecked();
150          m_pOptions->bCompletePath        = CompletePathCheckBox->isChecked();          m_pOptions->bStdoutCapture      = StdoutCaptureCheckBox->isChecked();
151          m_pOptions->bInstrumentNames     = InstrumentNamesCheckBox->isChecked();          m_pOptions->bCompletePath       = CompletePathCheckBox->isChecked();
152          m_pOptions->iMaxRecentFiles      = MaxRecentFilesSpinBox->value();          m_pOptions->bInstrumentNames    = InstrumentNamesCheckBox->isChecked();
153            m_pOptions->iMaxRecentFiles     = MaxRecentFilesSpinBox->value();
154          // Reset dirty flag.          // Reset dirty flag.
155          m_iDirtyCount = 0;          m_iDirtyCount = 0;
156      }      }
# Line 171  void qsamplerOptionsForm::reject (void) Line 172  void qsamplerOptionsForm::reject (void)
172    
173      // Check if there's any pending changes...      // Check if there's any pending changes...
174      if (m_iDirtyCount > 0) {      if (m_iDirtyCount > 0) {
175          switch (QMessageBox::warning(this, tr("Warning"),          switch (QMessageBox::warning(this,
176                            QSAMPLER_TITLE ": " + tr("Warning"),
177              tr("Some settings have been changed.\n\n"              tr("Some settings have been changed.\n\n"
178                 "Do you want to apply the changes?"),                 "Do you want to apply the changes?"),
179              tr("Apply"), tr("Discard"), tr("Cancel"))) {              tr("Apply"), tr("Discard"), tr("Cancel"))) {

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

  ViewVC Help
Powered by ViewVC