25 |
#include "qsamplerMainForm.h" |
#include "qsamplerMainForm.h" |
26 |
#include "qsamplerOptions.h" |
#include "qsamplerOptions.h" |
27 |
|
|
|
#include <qapplication.h> |
|
28 |
#include <qcombobox.h> |
#include <qcombobox.h> |
29 |
#include <qtooltip.h> |
#include <qtooltip.h> |
30 |
|
|
92 |
if (pOptions == NULL) |
if (pOptions == NULL) |
93 |
return; |
return; |
94 |
|
|
|
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); |
|
|
|
|
95 |
// Get/save current map selection... |
// Get/save current map selection... |
96 |
int iMap = m_pMapComboBox->currentItem(); |
int iMap = m_pMapComboBox->currentItem(); |
97 |
if (iMap < 0 || m_pMapComboBox->count() < 2) |
if (iMap < 0 || m_pMapComboBox->count() < 2) |
108 |
m_pMapComboBox->setCurrentItem(iMap); |
m_pMapComboBox->setCurrentItem(iMap); |
109 |
m_pMapComboBox->setEnabled(m_pMapComboBox->count() > 1); |
m_pMapComboBox->setEnabled(m_pMapComboBox->count() > 1); |
110 |
|
|
|
QApplication::restoreOverrideCursor(); |
|
|
|
|
111 |
activateMap(iMap); |
activateMap(iMap); |
112 |
} |
} |
113 |
|
|
123 |
if (pOptions == NULL) |
if (pOptions == NULL) |
124 |
return; |
return; |
125 |
|
|
|
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); |
|
|
|
|
126 |
int iMidiMap = iMap - 1; |
int iMidiMap = iMap - 1; |
127 |
if (iMidiMap >= 0) |
if (iMidiMap >= 0) |
128 |
pOptions->iMidiMap = iMidiMap; |
pOptions->iMidiMap = iMidiMap; |
129 |
|
|
130 |
InstrumentList->setMidiMap(iMidiMap); |
InstrumentList->setMidiMap(iMidiMap); |
131 |
InstrumentList->refresh(); |
InstrumentList->refresh(); |
|
|
|
|
QApplication::restoreOverrideCursor(); |
|
132 |
} |
} |
133 |
|
|
134 |
|
|