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

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

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

revision 264 by capela, Wed Sep 29 13:12:45 2004 UTC revision 280 by capela, Mon Oct 11 12:27:39 2004 UTC
# Line 25  Line 25 
25  #include <qfileinfo.h>  #include <qfileinfo.h>
26  #include <qtooltip.h>  #include <qtooltip.h>
27  #include <qpopupmenu.h>  #include <qpopupmenu.h>
28    #include <qobjectlist.h>
29    
30  #include <math.h>  #include <math.h>
31    
# Line 74  void qsamplerChannelStrip::setup ( qsamp Line 75  void qsamplerChannelStrip::setup ( qsamp
75          m_pChannel->setChannelID(iChannelID);          m_pChannel->setChannelID(iChannelID);
76          m_iDirtyChange = 0;          m_iDirtyChange = 0;
77      }      }
78        
79        // Stabilize this around.
80        updateChannelInfo();
81  }  }
82    
83  // Channel secriptor accessor.  // Channel secriptor accessor.
# Line 98  void qsamplerChannelStrip::setDisplayFon Line 102  void qsamplerChannelStrip::setDisplayFon
102  }  }
103    
104    
105    // Channel display background effect.
106    void qsamplerChannelStrip::setDisplayEffect ( bool bDisplayEffect )
107    {
108        QPixmap pm;
109        if (bDisplayEffect)
110            pm = QPixmap::fromMimeSource("displaybg1.png");
111        setDisplayBackground(pm);
112    }
113    
114    
115    // Update main display background pixmap.
116    void qsamplerChannelStrip::setDisplayBackground ( const QPixmap& pm )
117    {
118        // Set the main origin...
119        ChannelInfoFrame->setPaletteBackgroundPixmap(pm);
120    
121        // Iterate for every child text label...
122        QObjectList *pList = ChannelInfoFrame->queryList("QLabel");
123        if (pList) {
124            for (QLabel *pLabel = (QLabel *) pList->first(); pLabel; pLabel = (QLabel *) pList->next())
125                pLabel->setPaletteBackgroundPixmap(pm);
126            delete pList;
127        }
128        
129        // And this standalone too.
130        StreamVoiceCountTextLabel->setPaletteBackgroundPixmap(pm);
131    }
132    
133    
134  // Channel setup dialog slot.  // Channel setup dialog slot.
135  void qsamplerChannelStrip::channelSetup (void)  void qsamplerChannelStrip::channelSetup (void)
136  {  {
# Line 165  void qsamplerChannelStrip::updateChannel Line 198  void qsamplerChannelStrip::updateChannel
198      }      }
199    
200      // MIDI Port/Channel...      // MIDI Port/Channel...
201      if (m_pChannel->midiChannel() > 0)      if (m_pChannel->midiChannel() == LSCP_MIDI_CHANNEL_ALL)
         MidiPortChannelTextLabel->setText(QString("%1 / %2").arg(m_pChannel->midiPort()).arg(m_pChannel->midiChannel()));  
     else  
202          MidiPortChannelTextLabel->setText(QString("%1 / *").arg(m_pChannel->midiPort()));          MidiPortChannelTextLabel->setText(QString("%1 / *").arg(m_pChannel->midiPort()));
203        else
204            MidiPortChannelTextLabel->setText(QString("%1 / %2").arg(m_pChannel->midiPort()).arg(m_pChannel->midiChannel() + 1));
205    
206      // And update the both GUI volume elements.      // And update the both GUI volume elements.
207      updateChannelVolume();      updateChannelVolume();

Legend:
Removed from v.264  
changed lines
  Added in v.280

  ViewVC Help
Powered by ViewVC