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

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

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

revision 751 by capela, Fri Aug 19 17:10:16 2005 UTC revision 759 by capela, Sun Aug 28 11:44:10 2005 UTC
# Line 22  Line 22 
22  #ifndef __qsamplerChannel_h  #ifndef __qsamplerChannel_h
23  #define __qsamplerChannel_h  #define __qsamplerChannel_h
24    
25  #include <qobject.h>  #include <qtable.h>
26    
27  #include <lscp/client.h>  #include <lscp/client.h>
28  #include <lscp/device.h>  #include <lscp/device.h>
29    
30  #include "qsamplerOptions.h"  #include "qsamplerOptions.h"
31    
32    class qsamplerDevice;
33  class qsamplerMainForm;  class qsamplerMainForm;
34    
35    
36    // Typedef'd QMap.
37    typedef QMap<int, int> qsamplerChannelRoutingMap;
38    
39    
40  //-------------------------------------------------------------------------  //-------------------------------------------------------------------------
41  // qsamplerChannel - Sampler channel structure.  // qsamplerChannel - Sampler channel structure.
42  //  //
# Line 116  public: Line 121  public:
121          bool     channelSolo() const;          bool     channelSolo() const;
122          bool     setChannelSolo(bool bSolo);          bool     setChannelSolo(bool bSolo);
123    
124            // Audio routing accessors.
125            int      audioChannel(int iAudioOut) const;
126            bool     setAudioChannel(int iAudioOut, int iAudioIn);
127            // The audio routing map itself.
128            const qsamplerChannelRoutingMap& audioRouting() const;
129    
130          // Istrument name remapper.          // Istrument name remapper.
131          void     updateInstrumentName();          void     updateInstrumentName();
132    
# Line 175  private: Line 186  private:
186          float   m_fVolume;          float   m_fVolume;
187          bool    m_bMute;          bool    m_bMute;
188          bool    m_bSolo;          bool    m_bSolo;
189    
190            // The audio routing mapping.
191            qsamplerChannelRoutingMap m_audioRouting;
192    };
193    
194    
195    //-------------------------------------------------------------------------
196    // qsamplerChannelRoutingTable - Channel routing table widget.
197    //
198    
199    class qsamplerChannelRoutingTable : public QTable
200    {
201            Q_OBJECT
202    
203    public:
204    
205            // Constructor.
206            qsamplerChannelRoutingTable(QWidget *pParent = 0, const char *pszName = 0);
207            // Default destructor.
208            ~qsamplerChannelRoutingTable();
209    
210            // Common parameter table renderer.
211            void refresh(qsamplerDevice *pDevice,
212                    const qsamplerChannelRoutingMap& routing);
213    };
214    
215    
216    //-------------------------------------------------------------------------
217    // qsamplerChannelRoutingComboBox - Custom combo box for routing table.
218    //
219    
220    class qsamplerChannelRoutingComboBox : public QTableItem
221    {
222    public:
223    
224            // Constructor.
225            qsamplerChannelRoutingComboBox(QTable *pTable,
226                    const QStringList& list, const QPixmap& pixmap);
227    
228            // Public accessors.
229            void setCurrentItem(int iCurrentItem);
230            int currentItem() const;
231    
232    protected:
233    
234            // Virtual implemetations.
235            QWidget *createEditor() const;
236            void setContentFromEditor(QWidget *pWidget);
237    
238    private:
239    
240            // Initial value holders
241            QStringList m_list;
242            int m_iCurrentItem;
243  };  };
244    
245    
246  #endif  // __qsamplerChannel_h  #endif  // __qsamplerChannel_h
247    
248    

Legend:
Removed from v.751  
changed lines
  Added in v.759

  ViewVC Help
Powered by ViewVC