35 |
|
|
36 |
class InstrumentListModel : public QAbstractItemModel |
class InstrumentListModel : public QAbstractItemModel |
37 |
{ |
{ |
|
Q_OBJECT |
|
|
|
|
38 |
public: |
public: |
39 |
|
|
40 |
// Constructor. |
// Constructor. |
57 |
|
|
58 |
// Own methods |
// Own methods |
59 |
const Instrument *addInstrument(int iMap, int iBank, int iProg); |
const Instrument *addInstrument(int iMap, int iBank, int iProg); |
60 |
void removeInstrument(const Instrument *pInstrument); |
void removeInstrument(Instrument *pInstrument); |
61 |
void updateInstrument(const Instrument *pInstrument); |
void updateInstrument(Instrument *pInstrument); |
62 |
|
void resortInstrument(Instrument *pInstrument); |
63 |
|
|
64 |
// General reloader. |
// General reloader. |
65 |
void refresh(); |
void refresh(); |
94 |
|
|
95 |
class InstrumentListView : public QTreeView |
class InstrumentListView : public QTreeView |
96 |
{ |
{ |
|
Q_OBJECT |
|
|
|
|
97 |
public: |
public: |
98 |
|
|
99 |
// Constructor. |
// Constructor. |
100 |
InstrumentListView(QWidget *pParent = 0); |
InstrumentListView(QWidget *pParent = NULL); |
101 |
|
|
102 |
// Destructor. |
// Destructor. |
103 |
~InstrumentListView(); |
~InstrumentListView(); |
108 |
|
|
109 |
// Own methods |
// Own methods |
110 |
const Instrument *addInstrument(int iMap, int iBank, int iProg); |
const Instrument *addInstrument(int iMap, int iBank, int iProg); |
111 |
void removeInstrument(const Instrument *pInstrument); |
void removeInstrument(Instrument *pInstrument); |
112 |
void updateInstrument(const Instrument *pInstrument); |
void updateInstrument(Instrument *pInstrument); |
113 |
|
void resortInstrument(Instrument *pInstrument); |
114 |
|
|
115 |
// General reloader. |
// General reloader. |
116 |
void refresh(); |
void refresh(); |