210 |
// Common parameter table renderer. |
// Common parameter table renderer. |
211 |
void refresh(qsamplerDevice *pDevice, |
void refresh(qsamplerDevice *pDevice, |
212 |
const qsamplerChannelRoutingMap& routing); |
const qsamplerChannelRoutingMap& routing); |
213 |
|
|
214 |
|
// Commit any pending editing. |
215 |
|
void flush(); |
216 |
|
}; |
217 |
|
|
218 |
|
|
219 |
|
//------------------------------------------------------------------------- |
220 |
|
// qsamplerChannelRoutingComboBox - Custom combo box for routing table. |
221 |
|
// |
222 |
|
|
223 |
|
class qsamplerChannelRoutingComboBox : public QTableItem |
224 |
|
{ |
225 |
|
public: |
226 |
|
|
227 |
|
// Constructor. |
228 |
|
qsamplerChannelRoutingComboBox(QTable *pTable, |
229 |
|
const QStringList& list, const QPixmap& pixmap); |
230 |
|
|
231 |
|
// Public accessors. |
232 |
|
void setCurrentItem(int iCurrentItem); |
233 |
|
int currentItem() const; |
234 |
|
|
235 |
|
protected: |
236 |
|
|
237 |
|
// Virtual implemetations. |
238 |
|
QWidget *createEditor() const; |
239 |
|
void setContentFromEditor(QWidget *pWidget); |
240 |
|
|
241 |
|
private: |
242 |
|
|
243 |
|
// Initial value holders |
244 |
|
QStringList m_list; |
245 |
|
int m_iCurrentItem; |
246 |
}; |
}; |
247 |
|
|
248 |
|
|