44 |
} |
} |
45 |
#endif |
#endif |
46 |
|
|
47 |
InstrumentForm::InstrumentForm(QWidget* parent) : QDialog(parent) { |
InstrumentForm::InstrumentForm ( QWidget* pParent ) |
48 |
|
: QDialog(pParent) |
49 |
|
{ |
50 |
ui.setupUi(this); |
ui.setupUi(this); |
51 |
|
|
52 |
// Initialize locals. |
// Initialize locals. |
98 |
SLOT(reject())); |
SLOT(reject())); |
99 |
} |
} |
100 |
|
|
101 |
InstrumentForm::~InstrumentForm() { |
|
102 |
|
InstrumentForm::~InstrumentForm (void) |
103 |
|
{ |
104 |
} |
} |
105 |
|
|
106 |
|
|
107 |
// Channel dialog setup formal initializer. |
// Channel dialog setup formal initializer. |
108 |
void InstrumentForm::setup ( qsamplerInstrument *pInstrument ) |
void InstrumentForm::setup ( qsamplerInstrument *pInstrument ) |
109 |
{ |
{ |
194 |
Qt::MatchExactly | Qt::MatchCaseSensitive) < 0) { |
Qt::MatchExactly | Qt::MatchCaseSensitive) < 0) { |
195 |
ui.EngineNameComboBox->addItem(sEngineName); |
ui.EngineNameComboBox->addItem(sEngineName); |
196 |
} |
} |
197 |
ui.EngineNameComboBox->setItemText( |
ui.EngineNameComboBox->setCurrentIndex( |
198 |
ui.EngineNameComboBox->currentIndex(), |
ui.EngineNameComboBox->findText(sEngineName, |
199 |
sEngineName); |
Qt::MatchExactly | Qt::MatchCaseSensitive)); |
200 |
|
|
201 |
// Instrument filename and index... |
// Instrument filename and index... |
202 |
QString sInstrumentFile = m_pInstrument->instrumentFile(); |
QString sInstrumentFile = m_pInstrument->instrumentFile(); |
203 |
if (sInstrumentFile.isEmpty()) |
if (sInstrumentFile.isEmpty()) |