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

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

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

revision 433 by capela, Wed Mar 9 16:44:04 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 180  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.433  
changed lines
  Added in v.447

  ViewVC Help
Powered by ViewVC