20 |
|
|
21 |
*****************************************************************************/ |
*****************************************************************************/ |
22 |
|
|
23 |
|
#include "qsamplerAbout.h" |
24 |
#include "qsamplerInstrumentListForm.h" |
#include "qsamplerInstrumentListForm.h" |
25 |
|
|
26 |
#include "qsamplerInstrumentForm.h" |
#include "qsamplerInstrumentForm.h" |
27 |
#include "qsamplerMainForm.h" |
|
28 |
#include "qsamplerOptions.h" |
#include "qsamplerOptions.h" |
29 |
#include "qsamplerInstrument.h" |
#include "qsamplerInstrument.h" |
30 |
|
#include "qsamplerMainForm.h" |
31 |
|
|
32 |
|
#include <QHeaderView> |
33 |
|
|
34 |
|
|
35 |
namespace QSampler { |
namespace QSampler { |
54 |
m_ui.InstrumentToolbar->addSeparator(); |
m_ui.InstrumentToolbar->addSeparator(); |
55 |
m_ui.InstrumentToolbar->addAction(m_ui.refreshInstrumentsAction); |
m_ui.InstrumentToolbar->addAction(m_ui.refreshInstrumentsAction); |
56 |
|
|
57 |
|
int iRowHeight = m_ui.InstrumentTable->fontMetrics().height() + 4; |
58 |
|
m_ui.InstrumentTable->verticalHeader()->setDefaultSectionSize(iRowHeight); |
59 |
|
m_ui.InstrumentTable->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft); |
60 |
|
|
61 |
m_ui.InstrumentTable->setModel(&m_model); |
m_ui.InstrumentTable->setModel(&m_model); |
62 |
m_ui.InstrumentTable->setItemDelegate(&m_delegate); |
m_ui.InstrumentTable->setItemDelegate(&m_delegate); |
63 |
|
m_ui.InstrumentTable->verticalHeader()->hide(); |
64 |
|
|
65 |
QObject::connect(m_pMapComboBox, |
QObject::connect(m_pMapComboBox, |
66 |
SIGNAL(activated(int)), |
SIGNAL(activated(int)), |
215 |
if (oldInstrument.map() == pInstrument->map() && |
if (oldInstrument.map() == pInstrument->map() && |
216 |
oldInstrument.bank() == pInstrument->bank() && |
oldInstrument.bank() == pInstrument->bank() && |
217 |
oldInstrument.prog() == pInstrument->prog()) { |
oldInstrument.prog() == pInstrument->prog()) { |
218 |
// just update tree item... |
// Just update tree item... |
219 |
//pItem->update(); |
//pItem->update(); |
220 |
} else { |
} else { |
221 |
// Unmap old instance... |
// Unmap old instance... |