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

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

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

revision 1464 by capela, Thu Nov 1 17:14:21 2007 UTC revision 2387 by capela, Sat Dec 29 00:21:11 2012 UTC
# Line 1  Line 1 
1  // qsamplerChannelForm.h  // qsamplerChannelForm.h
2  //  //
3  /****************************************************************************  /****************************************************************************
4     Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2004-2012, rncbc aka Rui Nuno Capela. All rights reserved.
5     Copyright (C) 2007, Christian Schoenebeck     Copyright (C) 2007, Christian Schoenebeck
6    
7     This program is free software; you can redistribute it and/or     This program is free software; you can redistribute it and/or
# Line 29  Line 29 
29  #include "qsamplerChannel.h"  #include "qsamplerChannel.h"
30  #include "qsamplerDeviceForm.h"  #include "qsamplerDeviceForm.h"
31    
 #include <Q3PtrList>  
32    
33  namespace QSampler {  namespace QSampler {
34    
35  class ChannelForm : public QDialog {  //-------------------------------------------------------------------------
36  Q_OBJECT  // QSampler::Channelform -- Channel form interface.
37    //
38    
39    class ChannelForm : public QDialog
40    {
41            Q_OBJECT
42    
43  public:  public:
     ChannelForm(QWidget* parent = 0);  
    ~ChannelForm();  
44    
45      void setup(qsamplerChannel* pChannel);          ChannelForm(QWidget* pParent = NULL);
46      void setupDevice(qsamplerDevice* pDevice, qsamplerDevice::qsamplerDeviceType deviceTypeMode, const QString& sDriverName);          ~ChannelForm();
47      void selectMidiDriverItem(const QString& sMidiDriver);  
48      void selectMidiDeviceItem(int iMidiItem);          void setup(Channel* pChannel);
49      void selectAudioDriverItem(const QString& sAudioDriver);  
50      void selectAudioDeviceItem(int iAudioItem);          void setupDevice(Device* pDevice,
51                    Device::DeviceType deviceTypeMode,
52  protected:                  const QString& sDriverName);
53      qsamplerChannel* m_pChannel;  
54      int m_iDirtySetup;          void selectMidiDriverItem(const QString& sMidiDriver);
55      int m_iDirtyCount;          void selectMidiDeviceItem(int iMidiItem);
56      Q3PtrList<qsamplerDevice> m_audioDevices;          void selectAudioDriverItem(const QString& sAudioDriver);
57      Q3PtrList<qsamplerDevice> m_midiDevices;          void selectAudioDeviceItem(int iAudioItem);
     DeviceForm* m_pDeviceForm;  
     qsamplerChannelRoutingMap m_audioRouting;  
     ChannelRoutingModel routingModel;  
     ChannelRoutingDelegate routingDelegate;  
58    
59  protected slots:  protected slots:
60      void accept();  
61      void reject();          void accept();
62      void openInstrumentFile();          void reject();
63      void updateInstrumentName();          void openInstrumentFile();
64      void selectMidiDriver(const QString& sMidiDriver);          void updateInstrumentName();
65      void selectMidiDevice(int iMidiItem);          void selectMidiDriver(const QString& sMidiDriver);
66      void setupMidiDevice();          void selectMidiDevice(int iMidiItem);
67      void selectAudioDriver(const QString& sAudioDriver);          void setupMidiDevice();
68      void selectAudioDevice(int iAudioItem);          void selectAudioDriver(const QString& sAudioDriver);
69      void setupAudioDevice();          void selectAudioDevice(int iAudioItem);
70      void changeAudioRouting(int iRow, int iCol);          void setupAudioDevice();
71      void updateDevices();          void updateDevices();
72      void optionsChanged();          void optionsChanged();
73      void stabilizeForm();          void stabilizeForm();
74    
75            void updateTableCellRenderers();
76            void updateTableCellRenderers(
77                    const QModelIndex& topLeft, const QModelIndex& bottomRight);
78    
79  private:  private:
80      Ui::qsamplerChannelForm ui;  
81            Ui::qsamplerChannelForm m_ui;
82    
83            Channel* m_pChannel;
84            int m_iDirtySetup;
85            int m_iDirtyCount;
86            QList<Device *> m_audioDevices;
87            QList<Device *> m_midiDevices;
88            DeviceForm* m_pDeviceForm;
89            ChannelRoutingModel m_routingModel;
90            ChannelRoutingDelegate m_routingDelegate;
91  };  };
92    
93  } // namespace QSampler  } // namespace QSampler

Legend:
Removed from v.1464  
changed lines
  Added in v.2387

  ViewVC Help
Powered by ViewVC