/[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 176 by capela, Tue Jul 6 10:54:45 2004 UTC revision 264 by capela, Wed Sep 29 13:12:45 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 139  void qsamplerChannelForm::setup ( qsampl Line 136  void qsamplerChannelForm::setup ( qsampl
136      int iMidiChannel = pChannel->midiChannel();      int iMidiChannel = pChannel->midiChannel();
137      if (bNew)      if (bNew)
138          iMidiChannel = (pChannel->channelID() + 1) % 16;          iMidiChannel = (pChannel->channelID() + 1) % 16;
139      MidiChannelSpinBox->setValue(iMidiChannel);      MidiChannelComboBox->setCurrentItem(iMidiChannel);
140      // Audio output driver...      // Audio output driver...
141      QString sAudioDriver = pChannel->audioDriver();      QString sAudioDriver = pChannel->audioDriver();
142      if (sAudioDriver.isEmpty() && bNew)      if (sAudioDriver.isEmpty() && bNew)
# Line 178  void qsamplerChannelForm::accept (void) Line 175  void qsamplerChannelForm::accept (void)
175          if (!m_pChannel->setMidiPort(MidiPortSpinBox->value()))          if (!m_pChannel->setMidiPort(MidiPortSpinBox->value()))
176              iErrors++;              iErrors++;
177          // MIDI input channel...          // MIDI input channel...
178          if (!m_pChannel->setMidiChannel(MidiChannelSpinBox->value()))          if (!m_pChannel->setMidiChannel(MidiChannelComboBox->currentItem()))
179              iErrors++;              iErrors++;
180          // Engine name...          // Engine name...
181          if (!m_pChannel->loadEngine(EngineNameComboBox->currentText()))          if (!m_pChannel->loadEngine(EngineNameComboBox->currentText()))

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

  ViewVC Help
Powered by ViewVC