/[svn]/qsampler/trunk/src/qsamplerChannelStrip.cpp
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerChannelStrip.cpp

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

revision 2038 by capela, Thu Jan 7 18:42:26 2010 UTC revision 2074 by capela, Mon Mar 29 17:00:30 2010 UTC
# Line 75  ChannelStrip::ChannelStrip ( QWidget* pP Line 75  ChannelStrip::ChannelStrip ( QWidget* pP
75          m_iErrorCount  = 0;          m_iErrorCount  = 0;
76    
77          if (++g_iMidiActivityRefCount == 1) {          if (++g_iMidiActivityRefCount == 1) {
78                  g_pMidiActivityLedOn  = new QPixmap(":/icons/ledon1.png");                  g_pMidiActivityLedOn  = new QPixmap(":/images/ledon1.png");
79                  g_pMidiActivityLedOff = new QPixmap(":/icons/ledoff1.png");                  g_pMidiActivityLedOff = new QPixmap(":/images/ledoff1.png");
80          }          }
81    
82          m_ui.MidiActivityLabel->setPixmap(*g_pMidiActivityLedOff);          m_ui.MidiActivityLabel->setPixmap(*g_pMidiActivityLedOff);
# Line 248  void ChannelStrip::setDisplayEffect ( bo Line 248  void ChannelStrip::setDisplayEffect ( bo
248          m_ui.MidiPortChannelTextLabel->setPalette(pal);          m_ui.MidiPortChannelTextLabel->setPalette(pal);
249          pal.setColor(QPalette::Foreground, Qt::green);          pal.setColor(QPalette::Foreground, Qt::green);
250          if (bDisplayEffect) {          if (bDisplayEffect) {
251                  QPixmap pm(":/icons/displaybg1.png");                  QPixmap pm(":/images/displaybg1.png");
252                  pal.setBrush(QPalette::Background, QBrush(pm));                  pal.setBrush(QPalette::Background, QBrush(pm));
253          } else {          } else {
254                  pal.setColor(QPalette::Background, Qt::black);                  pal.setColor(QPalette::Background, Qt::black);
# Line 489  bool ChannelStrip::updateChannelInfo (vo Line 489  bool ChannelStrip::updateChannelInfo (vo
489          // Mute/Solo button state coloring...          // Mute/Solo button state coloring...
490          bool bMute = m_pChannel->channelMute();          bool bMute = m_pChannel->channelMute();
491          const QColor& rgbButton = pal.color(QPalette::Button);          const QColor& rgbButton = pal.color(QPalette::Button);
492            const QColor& rgbButtonText = pal.color(QPalette::ButtonText);
493          pal.setColor(QPalette::Foreground, rgbFore);          pal.setColor(QPalette::Foreground, rgbFore);
494          pal.setColor(QPalette::Button, bMute ? Qt::yellow : rgbButton);          pal.setColor(QPalette::Button, bMute ? Qt::yellow : rgbButton);
495            pal.setColor(QPalette::ButtonText, bMute ? Qt::darkYellow : rgbButtonText);
496          m_ui.ChannelMutePushButton->setPalette(pal);          m_ui.ChannelMutePushButton->setPalette(pal);
497          m_ui.ChannelMutePushButton->setDown(bMute);          m_ui.ChannelMutePushButton->setDown(bMute);
498          bool bSolo = m_pChannel->channelSolo();          bool bSolo = m_pChannel->channelSolo();
499          pal.setColor(QPalette::Button, bSolo ? Qt::cyan : rgbButton);            pal.setColor(QPalette::Button, bSolo ? Qt::cyan : rgbButton);  
500            pal.setColor(QPalette::ButtonText, bSolo ? Qt::darkCyan : rgbButtonText);
501          m_ui.ChannelSoloPushButton->setPalette(pal);          m_ui.ChannelSoloPushButton->setPalette(pal);
502          m_ui.ChannelSoloPushButton->setDown(bSolo);          m_ui.ChannelSoloPushButton->setDown(bSolo);
503  #else  #else

Legend:
Removed from v.2038  
changed lines
  Added in v.2074

  ViewVC Help
Powered by ViewVC