/[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 662 by capela, Sat Jun 18 10:46:57 2005 UTC revision 753 by capela, Wed Aug 24 17:44:59 2005 UTC
# Line 45  Line 45 
45  #include "qsamplerDeviceForm.h"  #include "qsamplerDeviceForm.h"
46  #include "qsamplerOptionsForm.h"  #include "qsamplerOptionsForm.h"
47    
 #include "config.h"  
   
48  #ifdef HAVE_SIGNAL_H  #ifdef HAVE_SIGNAL_H
49  #include <signal.h>  #include <signal.h>
50  #endif  #endif
# Line 387  void qsamplerMainForm::customEvent ( QCu Line 385  void qsamplerMainForm::customEvent ( QCu
385      // For the time being, just pump it to messages.      // For the time being, just pump it to messages.
386      if (pCustomEvent->type() == QSAMPLER_CUSTOM_EVENT) {      if (pCustomEvent->type() == QSAMPLER_CUSTOM_EVENT) {
387          qsamplerCustomEvent *pEvent = (qsamplerCustomEvent *) pCustomEvent;          qsamplerCustomEvent *pEvent = (qsamplerCustomEvent *) pCustomEvent;
         appendMessagesColor(tr("Notify event: %1 data: %2")  
             .arg(::lscp_event_to_text(pEvent->event()))  
             .arg(pEvent->data()), "#996699");  
388                  if (pEvent->event() == LSCP_EVENT_CHANNEL_INFO) {                  if (pEvent->event() == LSCP_EVENT_CHANNEL_INFO) {
389                          int iChannelID = pEvent->data().toInt();                          int iChannelID = pEvent->data().toInt();
390                          qsamplerChannelStrip *pChannelStrip = channelStrip(iChannelID);                          qsamplerChannelStrip *pChannelStrip = channelStrip(iChannelID);
391                          if (pChannelStrip)                          if (pChannelStrip)
392                                  channelStripChanged(pChannelStrip);                                  channelStripChanged(pChannelStrip);
393                    } else {
394                            appendMessagesColor(tr("Notify event: %1 data: %2")
395                                    .arg(::lscp_event_to_text(pEvent->event()))
396                                    .arg(pEvent->data()), "#996699");
397                  }                  }
398      }      }
399  }  }
# Line 787  bool qsamplerMainForm::saveSessionFile ( Line 786  bool qsamplerMainForm::saveSessionFile (
786                  ts << "LOAD ENGINE " << pChannel->engineName() << " " << iChannel << endl;                  ts << "LOAD ENGINE " << pChannel->engineName() << " " << iChannel << endl;
787                  ts << "LOAD INSTRUMENT NON_MODAL '" << pChannel->instrumentFile() << "' " << pChannel->instrumentNr() << " " << iChannel << endl;                  ts << "LOAD INSTRUMENT NON_MODAL '" << pChannel->instrumentFile() << "' " << pChannel->instrumentNr() << " " << iChannel << endl;
788                  ts << "SET CHANNEL VOLUME " << iChannel << " " << pChannel->volume() << endl;                  ts << "SET CHANNEL VOLUME " << iChannel << " " << pChannel->volume() << endl;
789                    if (pChannel->channelMute())
790                            ts << "SET CHANNEL MUTE " << iChannel << " 1" << endl;
791                    if (pChannel->channelSolo())
792                            ts << "SET CHANNEL SOLO " << iChannel << " 1" << endl;
793                  ts << endl;                  ts << endl;
794              }              }
795          }          }
# Line 1300  void qsamplerMainForm::helpAbout (void) Line 1303  void qsamplerMainForm::helpAbout (void)
1303      sText += tr("LSCP (liblscp) instrument_name support disabled.");      sText += tr("LSCP (liblscp) instrument_name support disabled.");
1304      sText += "</font></small><br />";      sText += "</font></small><br />";
1305  #endif  #endif
1306    #ifndef CONFIG_MUTE_SOLO
1307        sText += "<small><font color=\"red\">";
1308        sText += tr("Sampler channel Mute/Solo support disabled.");
1309        sText += "</font></small><br />";
1310    #endif
1311      sText += "<br />\n";      sText += "<br />\n";
1312      sText += tr("Using") + ": ";      sText += tr("Using") + ": ";
1313      sText += ::lscp_client_package();      sText += ::lscp_client_package();
# Line 1307  void qsamplerMainForm::helpAbout (void) Line 1315  void qsamplerMainForm::helpAbout (void)
1315      sText += ::lscp_client_version();      sText += ::lscp_client_version();
1316  #ifdef CONFIG_LIBGIG  #ifdef CONFIG_LIBGIG
1317      sText += ", ";      sText += ", ";
1318      sText += gig::libraryName();      sText += gig::libraryName().c_str();
1319      sText += " ";      sText += " ";
1320      sText += gig::libraryVersion();      sText += gig::libraryVersion().c_str();
1321  #endif  #endif
1322      sText += "<br />\n";      sText += "<br />\n";
1323      sText += "<br />\n";      sText += "<br />\n";
# Line 1823  void qsamplerMainForm::timerSlot (void) Line 1831  void qsamplerMainForm::timerSlot (void)
1831          }          }
1832      }      }
1833    
1834          // Refresh each channel usage, on each period...          if (m_pClient) {
1835          if (m_pClient && (m_changedStrips.count() > 0 || m_pOptions->bAutoRefresh)) {                  // Update the channel information for each pending strip...
1836                  m_iTimerSlot += QSAMPLER_TIMER_MSECS;                  if (m_changedStrips.count() > 0) {
                 if (m_iTimerSlot >= m_pOptions->iAutoRefreshTime && m_pWorkspace->isUpdatesEnabled())  {  
                         m_iTimerSlot = 0;  
                         // Update the channel information for each pending strip...  
1837                          for (qsamplerChannelStrip *pChannelStrip = m_changedStrips.first();                          for (qsamplerChannelStrip *pChannelStrip = m_changedStrips.first();
1838                                          pChannelStrip;                                          pChannelStrip; pChannelStrip = m_changedStrips.next()) {
                                                 pChannelStrip = m_changedStrips.next()) {  
1839                                  // If successfull, remove from pending list...                                  // If successfull, remove from pending list...
1840                                  if (pChannelStrip->updateChannelInfo())                                  if (pChannelStrip->updateChannelInfo())
1841                                          m_changedStrips.remove(pChannelStrip);                                          m_changedStrips.remove(pChannelStrip);
1842                          }                          }
1843                          // Update the channel stream usage for each strip...                  }
1844                          QWidgetList wlist = m_pWorkspace->windowList();                  // Refresh each channel usage, on each period...
1845                          for (int iChannel = 0; iChannel < (int) wlist.count(); iChannel++) {                  if (m_pOptions->bAutoRefresh) {
1846                                  qsamplerChannelStrip *pChannelStrip = (qsamplerChannelStrip *) wlist.at(iChannel);                          m_iTimerSlot += QSAMPLER_TIMER_MSECS;
1847                                  if (pChannelStrip && pChannelStrip->isVisible())                          if (m_iTimerSlot >= m_pOptions->iAutoRefreshTime)  {
1848                                          pChannelStrip->updateChannelUsage();                                  m_iTimerSlot = 0;
1849                                    // Update the channel stream usage for each strip...
1850                                    QWidgetList wlist = m_pWorkspace->windowList();
1851                                    for (int iChannel = 0;
1852                                                    iChannel < (int) wlist.count(); iChannel++) {
1853                                            qsamplerChannelStrip *pChannelStrip
1854                                                    = (qsamplerChannelStrip *) wlist.at(iChannel);
1855                                            if (pChannelStrip && pChannelStrip->isVisible())
1856                                                    pChannelStrip->updateChannelUsage();
1857                                    }
1858                          }                          }
1859                  }                  }
1860          }          }

Legend:
Removed from v.662  
changed lines
  Added in v.753

  ViewVC Help
Powered by ViewVC