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 |
|
|
194 |
|
// Public accessors. |
195 |
|
void setMinValue(int iMinValue); |
196 |
|
void setMaxValue(int iMaxValue); |
197 |
|
void setValue(int iValue); |
198 |
|
|
199 |
|
protected: |
200 |
|
|
201 |
|
// Virtual implemetations. |
202 |
|
QWidget *createEditor() const; |
203 |
|
void setContentFromEditor(QWidget *pWidget); |
204 |
|
|
205 |
|
private: |
206 |
|
|
207 |
|
// Initial value holders. |
208 |
|
int m_iMinValue; |
209 |
|
int m_iMaxValue; |
210 |
|
int m_iValue; |
211 |
|
}; |
212 |
|
|
213 |
|
|
214 |
|
//------------------------------------------------------------------------- |
215 |
|
// qsamplerDeviceParamTableEditBox - Custom edit box for parameter table. |
216 |
|
// |
217 |
|
|
218 |
|
class qsamplerDeviceParamTableEditBox : public QTableItem |
219 |
|
{ |
220 |
|
public: |
221 |
|
|
222 |
|
// Constructor. |
223 |
|
qsamplerDeviceParamTableEditBox (QTable *pTable, EditType editType, |
224 |
|
const QString& sText); |
225 |
|
|
226 |
|
protected: |
227 |
|
|
228 |
|
// Virtual implemetations. |
229 |
|
QWidget *createEditor() const; |
230 |
|
void setContentFromEditor(QWidget *pWidget); |
231 |
|
}; |
232 |
|
|
233 |
|
|
234 |
#endif // __qsamplerDevice_h |
#endif // __qsamplerDevice_h |
235 |
|
|
236 |
|
|