/[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 369 by capela, Fri Feb 11 13:30:21 2005 UTC revision 371 by capela, Fri Feb 11 15:36:06 2005 UTC
# Line 959  void qsamplerMainForm::viewOptions (void Line 959  void qsamplerMainForm::viewOptions (void
959          int     bOldMessagesLimit   = m_pOptions->bMessagesLimit;          int     bOldMessagesLimit   = m_pOptions->bMessagesLimit;
960          int     iOldMessagesLimitLines = m_pOptions->iMessagesLimitLines;          int     iOldMessagesLimitLines = m_pOptions->iMessagesLimitLines;
961          bool    bOldCompletePath    = m_pOptions->bCompletePath;          bool    bOldCompletePath    = m_pOptions->bCompletePath;
962            bool    bOldInstrumentNames = m_pOptions->bInstrumentNames;
963          int     iOldMaxRecentFiles  = m_pOptions->iMaxRecentFiles;          int     iOldMaxRecentFiles  = m_pOptions->iMaxRecentFiles;
964          // Load the current setup settings.          // Load the current setup settings.
965          pOptionsForm->setup(m_pOptions);          pOptionsForm->setup(m_pOptions);
# Line 977  void qsamplerMainForm::viewOptions (void Line 978  void qsamplerMainForm::viewOptions (void
978                  (!bOldCompletePath &&  m_pOptions->bCompletePath) ||                  (!bOldCompletePath &&  m_pOptions->bCompletePath) ||
979                  (iOldMaxRecentFiles != m_pOptions->iMaxRecentFiles))                  (iOldMaxRecentFiles != m_pOptions->iMaxRecentFiles))
980                  updateRecentFilesMenu();                  updateRecentFilesMenu();
981                if (( bOldInstrumentNames && !m_pOptions->bInstrumentNames) ||
982                    (!bOldInstrumentNames &&  m_pOptions->bInstrumentNames))
983                    updateInstrumentNames();
984              if (( bOldDisplayEffect && !m_pOptions->bDisplayEffect) ||              if (( bOldDisplayEffect && !m_pOptions->bDisplayEffect) ||
985                  (!bOldDisplayEffect &&  m_pOptions->bDisplayEffect))                  (!bOldDisplayEffect &&  m_pOptions->bDisplayEffect))
986                  updateDisplayEffect();                  updateDisplayEffect();
# Line 1220  void qsamplerMainForm::updateRecentFiles Line 1224  void qsamplerMainForm::updateRecentFiles
1224  }  }
1225    
1226    
1227    // Force update of the channels instrument names mode.
1228    void qsamplerMainForm::updateInstrumentNames (void)
1229    {
1230        // Full channel list update...
1231        QWidgetList wlist = m_pWorkspace->windowList();
1232        if (wlist.isEmpty())
1233            return;
1234    
1235        m_pWorkspace->setUpdatesEnabled(false);
1236        for (int iChannel = 0; iChannel < (int) wlist.count(); iChannel++) {
1237            qsamplerChannelStrip *pChannelStrip = (qsamplerChannelStrip *) wlist.at(iChannel);
1238            if (pChannelStrip)
1239                pChannelStrip->updateInstrumentName(true);
1240        }
1241        m_pWorkspace->setUpdatesEnabled(true);
1242    }
1243    
1244    
1245  // Force update of the channels display font.  // Force update of the channels display font.
1246  void qsamplerMainForm::updateDisplayFont (void)  void qsamplerMainForm::updateDisplayFont (void)
1247  {  {

Legend:
Removed from v.369  
changed lines
  Added in v.371

  ViewVC Help
Powered by ViewVC