37 |
Q_OBJECT |
Q_OBJECT |
38 |
|
|
39 |
public: |
public: |
|
MidiInstrumentsModel model; |
|
|
MidiInstrumentsDelegate delegate; |
|
40 |
|
|
41 |
InstrumentListForm(QWidget* pParent = NULL, Qt::WindowFlags wflags = 0); |
InstrumentListForm(QWidget* pParent = NULL, Qt::WindowFlags wflags = 0); |
42 |
~InstrumentListForm(); |
~InstrumentListForm(); |
43 |
|
|
44 |
public slots: |
public slots: |
45 |
void refreshInstruments(); |
|
46 |
void activateMap(int); |
void editInstrument(); |
47 |
|
void editInstrument(const QModelIndex& index); |
48 |
|
void newInstrument(); |
49 |
|
void deleteInstrument(); |
50 |
|
void refreshInstruments(); |
51 |
|
void activateMap(int); |
52 |
|
|
53 |
protected: |
protected: |
54 |
void showEvent(QShowEvent *); |
|
55 |
void hideEvent(QHideEvent *); |
void showEvent(QShowEvent *); |
56 |
void closeEvent(QCloseEvent *); |
void hideEvent(QHideEvent *); |
57 |
|
void closeEvent(QCloseEvent *); |
|
protected slots: |
|
|
void editInstrument(); |
|
|
void editInstrument(const QModelIndex& index); |
|
|
void newInstrument(); |
|
|
void deleteInstrument(); |
|
58 |
|
|
59 |
private: |
private: |
|
Ui::qsamplerInstrumentListForm ui; |
|
60 |
|
|
61 |
QComboBox* m_pMapComboBox; |
Ui::qsamplerInstrumentListForm m_ui; |
62 |
|
|
63 |
|
MidiInstrumentsModel m_model; |
64 |
|
MidiInstrumentsDelegate m_delegate; |
65 |
|
|
66 |
|
QComboBox* m_pMapComboBox; |
67 |
}; |
}; |
68 |
|
|
69 |
} // namespace QSampler |
} // namespace QSampler |