| 20 | #include "ui_operator_editor.h" |
| 21 | |
| 22 | OperatorEditor::OperatorEditor(QWidget *parent) |
| 23 | : QWidget(parent), m_ui(new Ui::OperatorEditor) |
| 24 | { |
| 25 | Ui::OperatorEditor &ui = *m_ui; |
| 26 | ui.setupUi(this); |
| 27 | |
| 28 | connect(ui.op_attack, SIGNAL(valueChanged(int)), this, SIGNAL(operatorChanged())); |
| 29 | connect(ui.op_decay, SIGNAL(valueChanged(int)), this, SIGNAL(operatorChanged())); |
| 30 | connect(ui.op_sustain, SIGNAL(valueChanged(int)), this, SIGNAL(operatorChanged())); |
| 31 | connect(ui.op_release, SIGNAL(valueChanged(int)), this, SIGNAL(operatorChanged())); |
| 32 | connect(ui.op_waveform, SIGNAL(currentIndexChanged(int)), this, SIGNAL(operatorChanged())); |
| 33 | connect(ui.op_freqmult, SIGNAL(valueChanged(int)), this, SIGNAL(operatorChanged())); |
| 34 | connect(ui.op_level, SIGNAL(valueChanged(int)), this, SIGNAL(operatorChanged())); |
| 35 | connect(ui.op_ksl, SIGNAL(valueChanged(int)), this, SIGNAL(operatorChanged())); |
| 36 | connect(ui.op_vib, SIGNAL(toggled(bool)), this, SIGNAL(operatorChanged())); |
| 37 | connect(ui.op_am, SIGNAL(toggled(bool)), this, SIGNAL(operatorChanged())); |
| 38 | connect(ui.op_eg, SIGNAL(toggled(bool)), this, SIGNAL(operatorChanged())); |
| 39 | connect(ui.op_ksr, SIGNAL(toggled(bool)), this, SIGNAL(operatorChanged())); |
| 40 | } |
| 41 | |
| 42 | OperatorEditor::~OperatorEditor() |
| 43 | { |