1 |
// qsamplerFxSendList.h |
// qsamplerFxSendList.h |
2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
|
Copyright (C) 2010-2012, rncbc aka Rui Nuno Capela. All rights reserved. |
5 |
Copyright (C) 2008, Christian Schoenebeck |
Copyright (C) 2008, Christian Schoenebeck |
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
45 |
int role = Qt::DisplayRole) const; |
int role = Qt::DisplayRole) const; |
46 |
Qt::ItemFlags flags(const QModelIndex& index) const; |
Qt::ItemFlags flags(const QModelIndex& index) const; |
47 |
|
|
|
// Make the following method public |
|
|
QAbstractListModel::reset; |
|
|
|
|
48 |
// Own methods |
// Own methods |
49 |
FxSend* addFxSend(); |
FxSend* addFxSend(); |
50 |
FxSend* fxSend(const QModelIndex& index); |
FxSend* fxSend(const QModelIndex& index); |
56 |
public slots: |
public slots: |
57 |
void cleanRefresh(); |
void cleanRefresh(); |
58 |
void applyToSampler(); |
void applyToSampler(); |
59 |
|
// not pretty, but more efficient than wiring connections for each element |
60 |
|
void onExternalModifiication(const QModelIndex& index); |
61 |
|
|
62 |
private: |
private: |
63 |
typedef QList<FxSend> FxSendsList; |
typedef QList<FxSend> FxSendsList; |