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

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

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

revision 453 by capela, Wed Mar 9 16:44:04 2005 UTC revision 454 by capela, Mon Mar 14 10:59:57 2005 UTC
# Line 211  void qsamplerMainForm::setup ( qsamplerO Line 211  void qsamplerMainForm::setup ( qsamplerO
211      // We got options?      // We got options?
212      m_pOptions = pOptions;      m_pOptions = pOptions;
213    
214        // What style do we create these forms?
215        WFlags wflags = Qt::WType_TopLevel;
216        if (m_pOptions->bKeepOnTop)
217            wflags |= Qt::WStyle_Tool;
218      // Some child forms are to be created right now.      // Some child forms are to be created right now.
219      m_pMessages = new qsamplerMessages(this);      m_pMessages = new qsamplerMessages(this);
220      m_pDeviceForm = new qsamplerDeviceForm(this);      m_pDeviceForm = new qsamplerDeviceForm(this, 0, wflags);
221      // Set message defaults...      // Set message defaults...
222      updateMessagesFont();      updateMessagesFont();
223      updateMessagesLimit();      updateMessagesLimit();
# Line 1042  void qsamplerMainForm::viewOptions (void Line 1046  void qsamplerMainForm::viewOptions (void
1046          bool    bOldDisplayEffect   = m_pOptions->bDisplayEffect;          bool    bOldDisplayEffect   = m_pOptions->bDisplayEffect;
1047          int     iOldMaxVolume       = m_pOptions->iMaxVolume;          int     iOldMaxVolume       = m_pOptions->iMaxVolume;
1048          QString sOldMessagesFont    = m_pOptions->sMessagesFont;          QString sOldMessagesFont    = m_pOptions->sMessagesFont;
1049            bool    bOldKeepOnTop       = m_pOptions->bKeepOnTop;
1050          bool    bOldStdoutCapture   = m_pOptions->bStdoutCapture;          bool    bOldStdoutCapture   = m_pOptions->bStdoutCapture;
1051          int     bOldMessagesLimit   = m_pOptions->bMessagesLimit;          int     bOldMessagesLimit   = m_pOptions->bMessagesLimit;
1052          int     iOldMessagesLimitLines = m_pOptions->iMessagesLimitLines;          int     iOldMessagesLimitLines = m_pOptions->iMessagesLimitLines;
# Line 1054  void qsamplerMainForm::viewOptions (void Line 1059  void qsamplerMainForm::viewOptions (void
1059          if (pOptionsForm->exec()) {          if (pOptionsForm->exec()) {
1060              // Warn if something will be only effective on next run.              // Warn if something will be only effective on next run.
1061              if (( bOldStdoutCapture && !m_pOptions->bStdoutCapture) ||              if (( bOldStdoutCapture && !m_pOptions->bStdoutCapture) ||
1062                  (!bOldStdoutCapture &&  m_pOptions->bStdoutCapture)) {                  (!bOldStdoutCapture &&  m_pOptions->bStdoutCapture) ||
1063                    ( bOldKeepOnTop     && !m_pOptions->bKeepOnTop)     ||
1064                    (!bOldKeepOnTop     &&  m_pOptions->bKeepOnTop)) {
1065                  QMessageBox::information(this, tr("Information"),                  QMessageBox::information(this, tr("Information"),
1066                      tr("Some settings may be only effective\n"                      tr("Some settings may be only effective\n"
1067                         "next time you start this program."), tr("OK"));                         "next time you start this program."), tr("OK"));

Legend:
Removed from v.453  
changed lines
  Added in v.454

  ViewVC Help
Powered by ViewVC