/[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 340 by capela, Fri Jan 14 10:40:47 2005 UTC revision 382 by capela, Mon Feb 14 15:42:38 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 556  bool qsamplerMainForm::loadSessionFile ( Line 556  bool qsamplerMainForm::loadSessionFile (
556      if (piChannelIDs == NULL) {      if (piChannelIDs == NULL) {
557          appendMessagesClient("lscp_list_channels");          appendMessagesClient("lscp_list_channels");
558          appendMessagesError(tr("Could not get current list of channels.\n\nSorry."));          appendMessagesError(tr("Could not get current list of channels.\n\nSorry."));
559      }      } else {
560                        // Try to (re)create each channel.
561      // Try to (re)create each channel.                  m_pWorkspace->setUpdatesEnabled(false);
562      m_pWorkspace->setUpdatesEnabled(false);                  for (int iChannel = 0; piChannelIDs[iChannel] >= 0; iChannel++) {
563      for (int iChannel = 0; piChannelIDs[iChannel] >= 0; iChannel++) {                          createChannelStrip(new qsamplerChannel(this, piChannelIDs[iChannel]));
564          createChannelStrip(new qsamplerChannel(this, piChannelIDs[iChannel]));                          QApplication::eventLoop()->processEvents(QEventLoop::ExcludeUserInput);
565          QApplication::eventLoop()->processEvents(QEventLoop::ExcludeUserInput);                  }
566      }                  m_pWorkspace->setUpdatesEnabled(true);
567      m_pWorkspace->setUpdatesEnabled(true);          }
568    
569      // Save as default session directory.      // Save as default session directory.
570      if (m_pOptions)      if (m_pOptions)
# 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 1087  void qsamplerMainForm::helpAbout (void) Line 1091  void qsamplerMainForm::helpAbout (void)
1091      sText += tr("GIG (libgig) file support disabled.");      sText += tr("GIG (libgig) file support disabled.");
1092      sText += "</font></small><br />";      sText += "</font></small><br />";
1093  #endif  #endif
1094    #ifndef CONFIG_INSTRUMENT_NAME
1095        sText += "<small><font color=\"red\">";
1096        sText += tr("LSCP (liblscp) instrument_name support disabled.");
1097        sText += "</font></small><br />";
1098    #endif
1099      sText += "<br />\n";      sText += "<br />\n";
1100      sText += tr("Using") + ": ";      sText += tr("Using") + ": ";
1101      sText += ::lscp_client_package();      sText += ::lscp_client_package();
# Line 1220  void qsamplerMainForm::updateRecentFiles Line 1229  void qsamplerMainForm::updateRecentFiles
1229  }  }
1230    
1231    
1232    // Force update of the channels instrument names mode.
1233    void qsamplerMainForm::updateInstrumentNames (void)
1234    {
1235        // Full channel list update...
1236        QWidgetList wlist = m_pWorkspace->windowList();
1237        if (wlist.isEmpty())
1238            return;
1239    
1240        m_pWorkspace->setUpdatesEnabled(false);
1241        for (int iChannel = 0; iChannel < (int) wlist.count(); iChannel++) {
1242            qsamplerChannelStrip *pChannelStrip = (qsamplerChannelStrip *) wlist.at(iChannel);
1243            if (pChannelStrip)
1244                pChannelStrip->updateInstrumentName(true);
1245        }
1246        m_pWorkspace->setUpdatesEnabled(true);
1247    }
1248    
1249    
1250  // Force update of the channels display font.  // Force update of the channels display font.
1251  void qsamplerMainForm::updateDisplayFont (void)  void qsamplerMainForm::updateDisplayFont (void)
1252  {  {

Legend:
Removed from v.340  
changed lines
  Added in v.382

  ViewVC Help
Powered by ViewVC