246 |
struct DeviceParameterRow { |
struct DeviceParameterRow { |
247 |
QString name; |
QString name; |
248 |
qsamplerDeviceParam param; |
qsamplerDeviceParam param; |
249 |
|
bool alive; // whether these params refer to an existing device or for a device that is yet to be created |
250 |
}; |
}; |
251 |
|
|
252 |
// so we can use it i.e. through QVariant |
// so we can use it i.e. through QVariant |
263 |
// overridden methods from subclass(es) |
// overridden methods from subclass(es) |
264 |
int rowCount(const QModelIndex& parent = QModelIndex()) const; |
int rowCount(const QModelIndex& parent = QModelIndex()) const; |
265 |
int columnCount(const QModelIndex& parent = QModelIndex() ) const; |
int columnCount(const QModelIndex& parent = QModelIndex() ) const; |
|
QVariant data(const QModelIndex &index, int role) const; |
|
266 |
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; |
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; |
267 |
Qt::ItemFlags flags(const QModelIndex& index) const; |
Qt::ItemFlags flags(const QModelIndex& index) const; |
268 |
|
|
284 |
DeviceParamModel(QObject* parent = 0); |
DeviceParamModel(QObject* parent = 0); |
285 |
|
|
286 |
// overridden methods from subclass(es) |
// overridden methods from subclass(es) |
287 |
|
QVariant data(const QModelIndex &index, int role) const; |
288 |
bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole); |
bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole); |
289 |
void clear(); |
void clear(); |
290 |
|
|
304 |
PortParamModel(QObject* parent = 0); |
PortParamModel(QObject* parent = 0); |
305 |
|
|
306 |
// overridden methods from subclass(es) |
// overridden methods from subclass(es) |
307 |
|
QVariant data(const QModelIndex &index, int role) const; |
308 |
bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole); |
bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole); |
309 |
void clear(); |
void clear(); |
310 |
|
|