/[svn]/qsampler/tags/qsampler_0_1_3/src/qsamplerDevice.h
ViewVC logotype

Diff of /qsampler/tags/qsampler_0_1_3/src/qsamplerDevice.h

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

revision 431 by capela, Tue Mar 8 20:12:08 2005 UTC revision 447 by capela, Thu Mar 10 20:45:42 2005 UTC
# Line 80  class qsamplerDevice Line 80  class qsamplerDevice
80  public:  public:
81    
82          // We use the same class for MIDI and audio device management          // We use the same class for MIDI and audio device management
83          enum qsamplerDeviceType { Midi, Audio };          enum qsamplerDeviceType { None, Midi, Audio };
84    
85          // Constructor.          // Constructor.
86          qsamplerDevice(lscp_client_t *pClient,          qsamplerDevice(lscp_client_t *pClient,
# Line 99  public: Line 99  public:
99          // Device property accessors.          // Device property accessors.
100          int                 deviceID()   const;          int                 deviceID()   const;
101          qsamplerDeviceType  deviceType() const;          qsamplerDeviceType  deviceType() const;
102            const QString&      deviceTypeName() const;
103          const QString&      driverName() const;          const QString&      driverName() const;
104          const QString&      deviceName() const;          const QString&      deviceName() const;
105    
# Line 121  private: Line 122  private:
122          // Instance variables.          // Instance variables.
123          int                m_iDeviceID;          int                m_iDeviceID;
124          qsamplerDeviceType m_deviceType;          qsamplerDeviceType m_deviceType;
125            QString            m_sDeviceType;
126          QString            m_sDriverName;          QString            m_sDriverName;
127          QString            m_sDeviceName;          QString            m_sDeviceName;
128    
# Line 178  public: Line 180  public:
180  };  };
181    
182    
183    //-------------------------------------------------------------------------
184    // qsamplerDeviceParamTableSpinBox - Custom spin box for parameter table.
185    //
186    
187    class qsamplerDeviceParamTableSpinBox : public QTableItem
188    {
189    public:
190    
191            // Constructor.
192            qsamplerDeviceParamTableSpinBox (QTable *pTable, EditType editType,
193                    const QString& sText);
194    
195            // Public accessors.
196            void setMinValue(int iMinValue);
197            void setMaxValue(int iMaxValue);
198            void setValue(int iValue);
199    
200    protected:
201    
202            // Virtual implemetations.
203            QWidget *createEditor() const;
204            void setContentFromEditor(QWidget *pWidget);
205    
206    private:
207    
208            // Initial value holders.
209            int m_iValue;
210            int m_iMinValue;
211            int m_iMaxValue;
212    };
213    
214    
215    //-------------------------------------------------------------------------
216    // qsamplerDeviceParamTableEditBox - Custom edit box for parameter table.
217    //
218    
219    class qsamplerDeviceParamTableEditBox : public QTableItem
220    {
221    public:
222    
223            // Constructor.
224            qsamplerDeviceParamTableEditBox (QTable *pTable, EditType editType,
225                    const QString& sText);
226    
227    protected:
228    
229            // Virtual implemetations.
230            QWidget *createEditor() const;
231            void setContentFromEditor(QWidget *pWidget);
232    };
233    
234    
235  #endif  // __qsamplerDevice_h  #endif  // __qsamplerDevice_h
236    
237    

Legend:
Removed from v.431  
changed lines
  Added in v.447

  ViewVC Help
Powered by ViewVC