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, |
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 |
|
|