1 |
schoenebeck |
1461 |
#ifndef QSAMPLER_INSTRUMENT_FORM_H |
2 |
|
|
#define QSAMPLER_INSTRUMENT_FORM_H |
3 |
|
|
|
4 |
|
|
#include "ui_qsamplerInstrumentForm.h" |
5 |
|
|
|
6 |
|
|
#include "qsamplerInstrument.h" |
7 |
|
|
|
8 |
|
|
namespace QSampler { |
9 |
|
|
|
10 |
|
|
class InstrumentForm : public QDialog { |
11 |
|
|
Q_OBJECT |
12 |
|
|
public: |
13 |
|
|
InstrumentForm(QWidget* parent = 0); |
14 |
|
|
~InstrumentForm(); |
15 |
|
|
void setup(qsamplerInstrument* pInstrument); |
16 |
|
|
|
17 |
|
|
public slots: |
18 |
|
|
void nameChanged(const QString& sName); |
19 |
|
|
void openInstrumentFile(); |
20 |
|
|
void updateInstrumentName(); |
21 |
|
|
void instrumentNrChanged(); |
22 |
|
|
void accept(); |
23 |
|
|
void reject(); |
24 |
|
|
void changed(); |
25 |
|
|
void stabilizeForm(); |
26 |
|
|
|
27 |
|
|
protected: |
28 |
|
|
qsamplerInstrument* m_pInstrument; |
29 |
|
|
int m_iDirtySetup; |
30 |
|
|
int m_iDirtyCount; |
31 |
|
|
int m_iDirtyName; |
32 |
|
|
|
33 |
|
|
private: |
34 |
|
|
Ui::qsamplerInstrumentForm ui; |
35 |
|
|
}; |
36 |
|
|
|
37 |
|
|
} // namespace QSampler |
38 |
|
|
|
39 |
|
|
#endif // QSAMPLER_INSTRUMENT_FORM_H |