1 |
#ifndef QSAMPLER_INSTRUMENT_LIST_FORM_H |
2 |
#define QSAMPLER_INSTRUMENT_LIST_FORM_H |
3 |
|
4 |
#include "ui_qsamplerInstrumentListForm.h" |
5 |
|
6 |
#include "qsamplerInstrumentList.h" |
7 |
|
8 |
#include <QComboBox> |
9 |
|
10 |
namespace QSampler { |
11 |
|
12 |
class InstrumentListForm : public QMainWindow { |
13 |
Q_OBJECT |
14 |
public: |
15 |
MidiInstrumentsModel model; |
16 |
|
17 |
InstrumentListForm(QWidget* parent = 0, Qt::WindowFlags flags = 0); |
18 |
~InstrumentListForm(); |
19 |
|
20 |
public slots: |
21 |
void refreshInstruments(); |
22 |
void activateMap(int); |
23 |
|
24 |
protected: |
25 |
QComboBox* m_pMapComboBox; |
26 |
QToolBar* InstrumentToolbar; |
27 |
|
28 |
void showEvent(QShowEvent* pShowEvent); |
29 |
void hideEvent(QHideEvent* pHideEvent); |
30 |
|
31 |
private: |
32 |
Ui::qsamplerInstrumentListForm ui; |
33 |
}; |
34 |
|
35 |
} // namespace QSampler |
36 |
|
37 |
#endif // QSAMPLER_INSTRUMENT_LIST_FORM_H |