--- qsampler/trunk/src/qsamplerInstrumentList.h 2010/03/12 16:02:32 2064 +++ qsampler/trunk/src/qsamplerInstrumentList.h 2015/07/22 21:28:27 2828 @@ -1,7 +1,7 @@ // qsamplerInstrumentList.h // /**************************************************************************** - Copyright (C) 2003-2010, rncbc aka Rui Nuno Capela. All rights reserved. + Copyright (C) 2003-2015, rncbc aka Rui Nuno Capela. All rights reserved. Copyright (C) 2007, Christian Schoenebeck This program is free software; you can redistribute it and/or @@ -59,8 +59,9 @@ // Own methods const Instrument *addInstrument(int iMap, int iBank, int iProg); - void removeInstrument(const Instrument *pInstrument); - void updateInstrument(const Instrument *pInstrument); + void removeInstrument(Instrument *pInstrument); + void updateInstrument(Instrument *pInstrument); + void resortInstrument(Instrument *pInstrument); // General reloader. void refresh(); @@ -95,12 +96,10 @@ class InstrumentListView : public QTreeView { - Q_OBJECT - public: // Constructor. - InstrumentListView(QWidget *pParent = 0); + InstrumentListView(QWidget *pParent = NULL); // Destructor. ~InstrumentListView(); @@ -111,8 +110,9 @@ // Own methods const Instrument *addInstrument(int iMap, int iBank, int iProg); - void removeInstrument(const Instrument *pInstrument); - void updateInstrument(const Instrument *pInstrument); + void removeInstrument(Instrument *pInstrument); + void updateInstrument(Instrument *pInstrument); + void resortInstrument(Instrument *pInstrument); // General reloader. void refresh();