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

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

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

revision 255 by capela, Tue Sep 28 16:17:43 2004 UTC revision 280 by capela, Mon Oct 11 12:27:39 2004 UTC
# Line 26  Line 26 
26  #include <qfileinfo.h>  #include <qfileinfo.h>
27  #include <qlistbox.h>  #include <qlistbox.h>
28    
 #include "qsamplerOptions.h"  
 #include "qsamplerChannelStrip.h"  
   
29  #include "config.h"  #include "config.h"
30    
31    
# Line 53  void qsamplerChannelForm::destroy (void) Line 50  void qsamplerChannelForm::destroy (void)
50    
51    
52  // Channel dialog setup formal initializer.  // Channel dialog setup formal initializer.
53  void qsamplerChannelForm::setup ( qsamplerChannelStrip *pChannel, bool bNew )  void qsamplerChannelForm::setup ( qsamplerChannel *pChannel, bool bNew )
54  {  {
55      m_pChannel = pChannel;      m_pChannel = pChannel;
56    
# Line 63  void qsamplerChannelForm::setup ( qsampl Line 60  void qsamplerChannelForm::setup ( qsampl
60      if (m_pChannel == NULL)      if (m_pChannel == NULL)
61          return;          return;
62    
63      setCaption(m_pChannel->caption());      setCaption(tr("Channel %1").arg(m_pChannel->channelID()));
64    
65      // Check if we're up and connected.      // Check if we're up and connected.
66      if (m_pChannel->client() == NULL)      if (m_pChannel->client() == NULL)
# Line 138  void qsamplerChannelForm::setup ( qsampl Line 135  void qsamplerChannelForm::setup ( qsampl
135      // MIDI input channel...      // MIDI input channel...
136      int iMidiChannel = pChannel->midiChannel();      int iMidiChannel = pChannel->midiChannel();
137      if (bNew)      if (bNew)
138          iMidiChannel = (pChannel->channelID() + 1) % 16;          iMidiChannel = (pChannel->channelID() % 16);
139      MidiChannelComboBox->setCurrentItem(iMidiChannel);      MidiChannelComboBox->setCurrentItem(iMidiChannel);
140      // Audio output driver...      // Audio output driver...
141      QString sAudioDriver = pChannel->audioDriver();      QString sAudioDriver = pChannel->audioDriver();

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

  ViewVC Help
Powered by ViewVC