1 |
// qsamplerInstrumentList.h |
// qsamplerInstrumentList.h |
2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
Copyright (C) 2003-2010, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2003-2015, rncbc aka Rui Nuno Capela. All rights reserved. |
5 |
Copyright (C) 2007, Christian Schoenebeck |
Copyright (C) 2007, 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 |
59 |
|
|
60 |
// Own methods |
// Own methods |
61 |
const Instrument *addInstrument(int iMap, int iBank, int iProg); |
const Instrument *addInstrument(int iMap, int iBank, int iProg); |
62 |
void removeInstrument(const Instrument *pInstrument); |
void removeInstrument(Instrument *pInstrument); |
63 |
void updateInstrument(const Instrument *pInstrument); |
void updateInstrument(Instrument *pInstrument); |
64 |
|
void resortInstrument(Instrument *pInstrument); |
65 |
|
|
66 |
// General reloader. |
// General reloader. |
67 |
void refresh(); |
void refresh(); |
96 |
|
|
97 |
class InstrumentListView : public QTreeView |
class InstrumentListView : public QTreeView |
98 |
{ |
{ |
|
Q_OBJECT |
|
|
|
|
99 |
public: |
public: |
100 |
|
|
101 |
// Constructor. |
// Constructor. |
102 |
InstrumentListView(QWidget *pParent = 0); |
InstrumentListView(QWidget *pParent = NULL); |
103 |
|
|
104 |
// Destructor. |
// Destructor. |
105 |
~InstrumentListView(); |
~InstrumentListView(); |
110 |
|
|
111 |
// Own methods |
// Own methods |
112 |
const Instrument *addInstrument(int iMap, int iBank, int iProg); |
const Instrument *addInstrument(int iMap, int iBank, int iProg); |
113 |
void removeInstrument(const Instrument *pInstrument); |
void removeInstrument(Instrument *pInstrument); |
114 |
void updateInstrument(const Instrument *pInstrument); |
void updateInstrument(Instrument *pInstrument); |
115 |
|
void resortInstrument(Instrument *pInstrument); |
116 |
|
|
117 |
// General reloader. |
// General reloader. |
118 |
void refresh(); |
void refresh(); |