1 |
// qsamplerInstrumentList.h |
// qsamplerInstrumentList.h |
2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
Copyright (C) 2003-2010, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2003-2019, 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 |
40 |
public: |
public: |
41 |
|
|
42 |
// Constructor. |
// Constructor. |
43 |
InstrumentListModel(QObject *pParent = NULL); |
InstrumentListModel(QObject *pParent = nullptr); |
44 |
|
|
45 |
// Destructor. |
// Destructor. |
46 |
~InstrumentListModel(); |
~InstrumentListModel(); |
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(); |
101 |
public: |
public: |
102 |
|
|
103 |
// Constructor. |
// Constructor. |
104 |
InstrumentListView(QWidget *pParent = 0); |
InstrumentListView(QWidget *pParent = nullptr); |
105 |
|
|
106 |
// Destructor. |
// Destructor. |
107 |
~InstrumentListView(); |
~InstrumentListView(); |
112 |
|
|
113 |
// Own methods |
// Own methods |
114 |
const Instrument *addInstrument(int iMap, int iBank, int iProg); |
const Instrument *addInstrument(int iMap, int iBank, int iProg); |
115 |
void removeInstrument(const Instrument *pInstrument); |
void removeInstrument(Instrument *pInstrument); |
116 |
void updateInstrument(const Instrument *pInstrument); |
void updateInstrument(Instrument *pInstrument); |
117 |
|
void resortInstrument(Instrument *pInstrument); |
118 |
|
|
119 |
// General reloader. |
// General reloader. |
120 |
void refresh(); |
void refresh(); |