52 |
|
|
53 |
// Try to restore normal window positioning. |
// Try to restore normal window positioning. |
54 |
adjustSize(); |
adjustSize(); |
55 |
|
|
56 |
|
|
57 |
|
QObject::connect(ui.MapComboBox, |
58 |
|
SIGNAL(activated(int)), |
59 |
|
SLOT(changed())); |
60 |
|
QObject::connect(ui.BankSpinBox, |
61 |
|
SIGNAL(valueChanged(int)), |
62 |
|
SLOT(changed())); |
63 |
|
QObject::connect(ui.ProgSpinBox, |
64 |
|
SIGNAL(valueChanged(int)), |
65 |
|
SLOT(changed())); |
66 |
|
QObject::connect(ui.NameLineEdit, |
67 |
|
SIGNAL(textChanged(const QString&)), |
68 |
|
SLOT(nameChanged(const QString&))); |
69 |
|
QObject::connect(ui.EngineNameComboBox, |
70 |
|
SIGNAL(activated(int)), |
71 |
|
SLOT(changed())); |
72 |
|
QObject::connect(ui.InstrumentFileComboBox, |
73 |
|
SIGNAL(activated(const QString&)), |
74 |
|
SLOT(updateInstrumentName())); |
75 |
|
QObject::connect(ui.InstrumentFileToolButton, |
76 |
|
SIGNAL(clicked()), |
77 |
|
SLOT(openInstrumentFile())); |
78 |
|
QObject::connect(ui.InstrumentNrComboBox, |
79 |
|
SIGNAL(activated(int)), |
80 |
|
SLOT(instrumentNrChanged())); |
81 |
|
QObject::connect(ui.VolumeSpinBox, |
82 |
|
SIGNAL(valueChanged(int)), |
83 |
|
SLOT(changed())); |
84 |
|
QObject::connect(ui.LoadModeComboBox, |
85 |
|
SIGNAL(activated(int)), |
86 |
|
SLOT(changed())); |
87 |
|
QObject::connect(ui.OkPushButton, |
88 |
|
SIGNAL(clicked()), |
89 |
|
SLOT(accept())); |
90 |
|
QObject::connect(ui.CancelPushButton, |
91 |
|
SIGNAL(clicked()), |
92 |
|
SLOT(reject())); |
93 |
} |
} |
94 |
|
|
95 |
InstrumentForm::~InstrumentForm() { |
InstrumentForm::~InstrumentForm() { |