47 |
|
|
48 |
namespace QSampler { |
namespace QSampler { |
49 |
|
|
50 |
|
//------------------------------------------------------------------------- |
51 |
|
// QSampler::ChannelStrip -- Channel strip form implementation. |
52 |
|
// |
53 |
|
|
54 |
// Channel strip activation/selection. |
// Channel strip activation/selection. |
55 |
ChannelStrip *ChannelStrip::g_pSelectedStrip = NULL; |
ChannelStrip *ChannelStrip::g_pSelectedStrip = NULL; |
56 |
|
|
|
|
|
57 |
ChannelStrip::ChannelStrip ( QWidget* pParent, Qt::WindowFlags wflags ) |
ChannelStrip::ChannelStrip ( QWidget* pParent, Qt::WindowFlags wflags ) |
58 |
: QWidget(pParent, wflags) |
: QWidget(pParent, wflags) |
59 |
{ |
{ |
116 |
while (iter.hasNext()) { |
while (iter.hasNext()) { |
117 |
const QString& sFilename = iter.next().toLocalFile(); |
const QString& sFilename = iter.next().toLocalFile(); |
118 |
if (!sFilename.isEmpty()) { |
if (!sFilename.isEmpty()) { |
119 |
bAccept = qsamplerChannel::isInstrumentFile(sFilename); |
bAccept = Channel::isInstrumentFile(sFilename); |
120 |
break; |
break; |
121 |
} |
} |
122 |
} |
} |
157 |
|
|
158 |
|
|
159 |
// Channel strip setup formal initializer. |
// Channel strip setup formal initializer. |
160 |
void ChannelStrip::setup ( qsamplerChannel *pChannel ) |
void ChannelStrip::setup ( Channel *pChannel ) |
161 |
{ |
{ |
162 |
// Destroy any previous channel descriptor; |
// Destroy any previous channel descriptor; |
163 |
// (remember that once setup we own it!) |
// (remember that once setup we own it!) |
177 |
|
|
178 |
|
|
179 |
// Channel secriptor accessor. |
// Channel secriptor accessor. |
180 |
qsamplerChannel *ChannelStrip::channel (void) const |
Channel *ChannelStrip::channel (void) const |
181 |
{ |
{ |
182 |
return m_pChannel; |
return m_pChannel; |
183 |
} |
} |
315 |
if (m_pChannel->instrumentName().isEmpty()) { |
if (m_pChannel->instrumentName().isEmpty()) { |
316 |
if (m_pChannel->instrumentStatus() >= 0) { |
if (m_pChannel->instrumentStatus() >= 0) { |
317 |
m_ui.InstrumentNameTextLabel->setText( |
m_ui.InstrumentNameTextLabel->setText( |
318 |
' ' + qsamplerChannel::loadingInstrument()); |
' ' + Channel::loadingInstrument()); |
319 |
} else { |
} else { |
320 |
m_ui.InstrumentNameTextLabel->setText( |
m_ui.InstrumentNameTextLabel->setText( |
321 |
' ' + qsamplerChannel::noInstrumentName()); |
' ' + Channel::noInstrumentName()); |
322 |
} |
} |
323 |
} else { |
} else { |
324 |
m_ui.InstrumentNameTextLabel->setText( |
m_ui.InstrumentNameTextLabel->setText( |
377 |
// Engine name... |
// Engine name... |
378 |
if (m_pChannel->engineName().isEmpty()) { |
if (m_pChannel->engineName().isEmpty()) { |
379 |
m_ui.EngineNameTextLabel->setText( |
m_ui.EngineNameTextLabel->setText( |
380 |
' ' + qsamplerChannel::noEngineName()); |
' ' + Channel::noEngineName()); |
381 |
} else { |
} else { |
382 |
m_ui.EngineNameTextLabel->setText( |
m_ui.EngineNameTextLabel->setText( |
383 |
' ' + m_pChannel->engineName()); |
' ' + m_pChannel->engineName()); |