本文整理汇总了C++中Preferences::getColoringMethod方法的典型用法代码示例。如果您正苦于以下问题:C++ Preferences::getColoringMethod方法的具体用法?C++ Preferences::getColoringMethod怎么用?C++ Preferences::getColoringMethod使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Preferences
的用法示例。
在下文中一共展示了Preferences::getColoringMethod方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: applicationFont
//.........这里部分代码省略.........
float falloffSpeed = pPref->getMixerFalloffSpeed();
if (falloffSpeed == FALLOFF_SLOW) {
mixerFalloffComboBox->setCurrentIndex(0);
}
else if (falloffSpeed == FALLOFF_NORMAL) {
mixerFalloffComboBox->setCurrentIndex(1);
}
else if (falloffSpeed == FALLOFF_FAST) {
mixerFalloffComboBox->setCurrentIndex(2);
}
else {
ERRORLOG( QString("PreferencesDialog: wrong mixerFalloff value = %1").arg(falloffSpeed) );
}
uiLayoutComboBox->setCurrentIndex( pPref->getDefaultUILayout() );
// Style
QStringList list = QStyleFactory::keys();
uint i = 0;
for ( QStringList::Iterator it = list.begin(); it != list.end(); it++) {
styleComboBox->addItem( *it );
//INFOLOG( "QT Stile: " + *it );
//string sStyle = (*it).latin1();
QString sStyle = (*it);
if (sStyle == pPref->getQTStyle() ) {
styleComboBox->setCurrentIndex( i );
}
i++;
}
//SongEditor coloring
int coloringMethod = pPref->getColoringMethod();
int coloringMethodAuxValue = pPref->getColoringMethodAuxValue();
coloringMethodCombo->clear();
coloringMethodCombo->addItem(trUtf8("Automatic"));
coloringMethodCombo->addItem(trUtf8("Steps"));
coloringMethodCombo->addItem(trUtf8("Fixed"));
coloringMethodAuxSpinBox->setMaximum(300);
coloringMethodCombo->setCurrentIndex( coloringMethod );
coloringMethodAuxSpinBox->setValue( coloringMethodAuxValue );
coloringMethodCombo_currentIndexChanged( coloringMethod );
connect(coloringMethodCombo, SIGNAL(currentIndexChanged(int)), this, SLOT( coloringMethodCombo_currentIndexChanged(int) ));
// midi tab
midiPortChannelComboBox->setEnabled( false );
midiPortComboBox->setEnabled( false );
// list midi output ports
midiPortComboBox->clear();
midiPortComboBox->addItem( "None" );
if ( Hydrogen::get_instance()->getMidiInput() ) {
std::vector<QString> midiOutList = Hydrogen::get_instance()->getMidiInput()->getOutputPortList();
if ( midiOutList.size() != 0 ) {
midiPortComboBox->setEnabled( true );
midiPortChannelComboBox->setEnabled( true );
}
for (uint i = 0; i < midiOutList.size(); i++) {
QString sPortName = midiOutList[i];