diff options
author | Daniel Schürmann <daschuer@mixxx.org> | 2014-12-21 19:20:56 +0100 |
---|---|---|
committer | Daniel Schürmann <daschuer@mixxx.org> | 2014-12-21 19:20:56 +0100 |
commit | 416dca1c8858cb483714e5e86bdcaf6da87e06f0 (patch) | |
tree | f826728c3507fab81bbee3fe6e56e62f0bab16fe /src/dlgprefcontrols.cpp | |
parent | fb38986d76137f0bb1e5f0484c3e912a86ac513e (diff) |
Added more spaces after comma
Diffstat (limited to 'src/dlgprefcontrols.cpp')
-rw-r--r-- | src/dlgprefcontrols.cpp | 94 |
1 files changed, 47 insertions, 47 deletions
diff --git a/src/dlgprefcontrols.cpp b/src/dlgprefcontrols.cpp index 368c985f0f..5861262935 100644 --- a/src/dlgprefcontrols.cpp +++ b/src/dlgprefcontrols.cpp @@ -69,9 +69,9 @@ DlgPrefControls::DlgPrefControls(QWidget * parent, MixxxMainWindow * mixxx, ComboBoxPosition->addItem(tr("Position")); ComboBoxPosition->addItem(tr("Remaining")); - if (m_pConfig->getValueString(ConfigKey("[Controls]","PositionDisplay")).length() == 0) - m_pConfig->set(ConfigKey("[Controls]","PositionDisplay"),ConfigValue(0)); - if (m_pConfig->getValueString(ConfigKey("[Controls]","PositionDisplay")).toInt() == 1) { + if (m_pConfig->getValueString(ConfigKey("[Controls]", "PositionDisplay")).length() == 0) + m_pConfig->set(ConfigKey("[Controls]", "PositionDisplay"),ConfigValue(0)); + if (m_pConfig->getValueString(ConfigKey("[Controls]", "PositionDisplay")).toInt() == 1) { ComboBoxPosition->setCurrentIndex(1); m_pControlPositionDisplay->set(1.0); } else { @@ -82,7 +82,7 @@ DlgPrefControls::DlgPrefControls(QWidget * parent, MixxxMainWindow * mixxx, this, SLOT(slotSetPositionDisplay(int))); // Set default direction as stored in config file - int rowHeight = m_pConfig->getValueString(ConfigKey("[Library]","RowHeight"), + int rowHeight = m_pConfig->getValueString(ConfigKey("[Library]", "RowHeight"), QString::number(kDefaultRowHeight)).toInt(); spinBoxRowHeight->setValue(rowHeight); connect(spinBoxRowHeight, SIGNAL(valueChanged(int)), @@ -90,8 +90,8 @@ DlgPrefControls::DlgPrefControls(QWidget * parent, MixxxMainWindow * mixxx, // Set default direction as stored in config file - if (m_pConfig->getValueString(ConfigKey("[Controls]","RateDir")).length() == 0) - m_pConfig->set(ConfigKey("[Controls]","RateDir"),ConfigValue(0)); + if (m_pConfig->getValueString(ConfigKey("[Controls]", "RateDir")).length() == 0) + m_pConfig->set(ConfigKey("[Controls]", "RateDir"),ConfigValue(0)); ComboBoxRateDir->clear(); ComboBoxRateDir->addItem(tr("Up increases speed")); @@ -100,8 +100,8 @@ DlgPrefControls::DlgPrefControls(QWidget * parent, MixxxMainWindow * mixxx, this, SLOT(slotSetRateDir(int))); // Set default range as stored in config file - if (m_pConfig->getValueString(ConfigKey("[Controls]","RateRange")).length() == 0) - m_pConfig->set(ConfigKey("[Controls]","RateRange"),ConfigValue(2)); + if (m_pConfig->getValueString(ConfigKey("[Controls]", "RateRange")).length() == 0) + m_pConfig->set(ConfigKey("[Controls]", "RateRange"),ConfigValue(2)); ComboBoxRateRange->clear(); ComboBoxRateRange->addItem(tr("6%")); @@ -134,14 +134,14 @@ DlgPrefControls::DlgPrefControls(QWidget * parent, MixxxMainWindow * mixxx, // //NOTE: THESE DEFAULTS ARE A LIE! You'll need to hack the same values into the static variables // at the top of enginebuffer.cpp - if (m_pConfig->getValueString(ConfigKey("[Controls]","RateTempLeft")).length() == 0) - m_pConfig->set(ConfigKey("[Controls]","RateTempLeft"),ConfigValue(QString("4.0"))); - if (m_pConfig->getValueString(ConfigKey("[Controls]","RateTempRight")).length() == 0) - m_pConfig->set(ConfigKey("[Controls]","RateTempRight"),ConfigValue(QString("2.0"))); - if (m_pConfig->getValueString(ConfigKey("[Controls]","RatePermLeft")).length() == 0) - m_pConfig->set(ConfigKey("[Controls]","RatePermLeft"),ConfigValue(QString("0.50"))); - if (m_pConfig->getValueString(ConfigKey("[Controls]","RatePermRight")).length() == 0) - m_pConfig->set(ConfigKey("[Controls]","RatePermRight"),ConfigValue(QString("0.05"))); + if (m_pConfig->getValueString(ConfigKey("[Controls]", "RateTempLeft")).length() == 0) + m_pConfig->set(ConfigKey("[Controls]", "RateTempLeft"), ConfigValue(QString("4.0"))); + if (m_pConfig->getValueString(ConfigKey("[Controls]", "RateTempRight")).length() == 0) + m_pConfig->set(ConfigKey("[Controls]", "RateTempRight"), ConfigValue(QString("2.0"))); + if (m_pConfig->getValueString(ConfigKey("[Controls]", "RatePermLeft")).length() == 0) + m_pConfig->set(ConfigKey("[Controls]", "RatePermLeft"), ConfigValue(QString("0.50"))); + if (m_pConfig->getValueString(ConfigKey("[Controls]", "RatePermRight")).length() == 0) + m_pConfig->set(ConfigKey("[Controls]", "RatePermRight"), ConfigValue(QString("0.05"))); connect(spinBoxTempRateLeft, SIGNAL(valueChanged(double)), this, SLOT(slotSetRateTempLeft(double))); @@ -153,13 +153,13 @@ DlgPrefControls::DlgPrefControls(QWidget * parent, MixxxMainWindow * mixxx, this, SLOT(slotSetRatePermRight(double))); spinBoxTempRateLeft->setValue(m_pConfig->getValueString( - ConfigKey("[Controls]","RateTempLeft")).toDouble()); + ConfigKey("[Controls]", "RateTempLeft")).toDouble()); spinBoxTempRateRight->setValue(m_pConfig->getValueString( - ConfigKey("[Controls]","RateTempRight")).toDouble()); + ConfigKey("[Controls]", "RateTempRight")).toDouble()); spinBoxPermRateLeft->setValue(m_pConfig->getValueString( - ConfigKey("[Controls]","RatePermLeft")).toDouble()); + ConfigKey("[Controls]", "RatePermLeft")).toDouble()); spinBoxPermRateRight->setValue(m_pConfig->getValueString( - ConfigKey("[Controls]","RatePermRight")).toDouble()); + ConfigKey("[Controls]", "RatePermRight")).toDouble()); SliderRateRampSensitivity->setEnabled(true); SpinBoxRateRampSensitivity->setEnabled(true); @@ -301,7 +301,7 @@ DlgPrefControls::DlgPrefControls(QWidget * parent, MixxxMainWindow * mixxx, ComboBoxStartInFullscreen->addItem(tr("Off")); // 0 ComboBoxStartInFullscreen->addItem(tr("On")); // 1 ComboBoxStartInFullscreen->setCurrentIndex(m_pConfig->getValueString( - ConfigKey("[Config]","StartInFullscreen"),"0").toInt()); + ConfigKey("[Config]", "StartInFullscreen"), "0").toInt()); connect(ComboBoxStartInFullscreen, SIGNAL(activated(int)), this, SLOT(slotSetStartInFullscreen(int))); @@ -328,7 +328,7 @@ DlgPrefControls::DlgPrefControls(QWidget * parent, MixxxMainWindow * mixxx, connect(groupBoxRateRamp, SIGNAL(toggled(bool)), this, SLOT(slotSetRateRamp(bool))); groupBoxRateRamp->setChecked((bool) - m_pConfig->getValueString(ConfigKey("[Controls]","RateRamp")).toInt()); + m_pConfig->getValueString(ConfigKey("[Controls]", "RateRamp")).toInt()); // Update Ramp Rate Sensitivity connect(SliderRateRampSensitivity, SIGNAL(valueChanged(int)), @@ -367,7 +367,7 @@ void DlgPrefControls::slotUpdateSchemes() { ComboBoxSchemeconf->setCurrentIndex(0); } else { ComboBoxSchemeconf->setEnabled(true); - QString selectedScheme = m_pConfig->getValueString(ConfigKey("[Config]","Scheme")); + QString selectedScheme = m_pConfig->getValueString(ConfigKey("[Config]", "Scheme")); for (int i = 0; i < schlist.size(); i++) { ComboBoxSchemeconf->addItem(schlist[i]); @@ -395,7 +395,7 @@ void DlgPrefControls::slotUpdate() { else ComboBoxRateDir->setCurrentIndex(1); - int rowHeight = m_pConfig->getValueString(ConfigKey("[Library]","RowHeight"), + int rowHeight = m_pConfig->getValueString(ConfigKey("[Library]", "RowHeight"), QString::number(kDefaultRowHeight)).toInt(); spinBoxRowHeight->setValue(rowHeight); @@ -456,7 +456,7 @@ void DlgPrefControls::slotResetToDefaults() { void DlgPrefControls::slotSetLocale(int pos) { QString newLocale = ComboBoxLocale->itemData(pos).toString(); - m_pConfig->set(ConfigKey("[Config]","Locale"), ConfigValue(newLocale)); + m_pConfig->set(ConfigKey("[Config]", "Locale"), ConfigValue(newLocale)); notifyRebootNecessary(); } @@ -506,14 +506,14 @@ void DlgPrefControls::slotPitchAndKeylock(int index) { } void DlgPrefControls::slotSetAllowTrackLoadToPlayingDeck(int) { - m_pConfig->set(ConfigKey("[Controls]","AllowTrackLoadToPlayingDeck"), + m_pConfig->set(ConfigKey("[Controls]", "AllowTrackLoadToPlayingDeck"), ConfigValue(ComboBoxAllowTrackLoadToPlayingDeck->currentIndex())); } void DlgPrefControls::slotSetCueDefault(int) { int cueIndex = ComboBoxCueDefault->currentIndex(); - m_pConfig->set(ConfigKey("[Controls]","CueDefault"), ConfigValue(cueIndex)); + m_pConfig->set(ConfigKey("[Controls]", "CueDefault"), ConfigValue(cueIndex)); // Set cue behavior for every group foreach (ControlObjectThread* pControl, m_cueControls) { @@ -523,7 +523,7 @@ void DlgPrefControls::slotSetCueDefault(int) void DlgPrefControls::slotSetCueRecall(int) { - m_pConfig->set(ConfigKey("[Controls]","CueRecall"), ConfigValue(ComboBoxCueRecall->currentIndex())); + m_pConfig->set(ConfigKey("[Controls]", "CueRecall"), ConfigValue(ComboBoxCueRecall->currentIndex())); } void DlgPrefControls::slotSetStartInFullscreen(int index) { @@ -548,7 +548,7 @@ void DlgPrefControls::slotSetScheme(int) { } void DlgPrefControls::slotSetSkin(int) { - m_pConfig->set(ConfigKey("[Config]","Skin"), ComboBoxSkinconf->currentText()); + m_pConfig->set(ConfigKey("[Config]", "Skin"), ComboBoxSkinconf->currentText()); m_mixxx->rebootMixxxView(); checkSkinResolution(ComboBoxSkinconf->currentText()) ? warningLabel->hide() : warningLabel->show(); @@ -557,7 +557,7 @@ void DlgPrefControls::slotSetSkin(int) { void DlgPrefControls::slotSetPositionDisplay(int) { int positionDisplay = ComboBoxPosition->currentIndex(); - m_pConfig->set(ConfigKey("[Controls]","PositionDisplay"), ConfigValue(positionDisplay)); + m_pConfig->set(ConfigKey("[Controls]", "PositionDisplay"), ConfigValue(positionDisplay)); m_pControlPositionDisplay->set(positionDisplay); } @@ -565,44 +565,44 @@ void DlgPrefControls::slotSetPositionDisplay(double v) { if (v > 0) { // remaining ComboBoxPosition->setCurrentIndex(1); - m_pConfig->set(ConfigKey("[Controls]","PositionDisplay"), ConfigValue(1)); + m_pConfig->set(ConfigKey("[Controls]", "PositionDisplay"), ConfigValue(1)); } else { // position ComboBoxPosition->setCurrentIndex(0); - m_pConfig->set(ConfigKey("[Controls]","PositionDisplay"), ConfigValue(0)); + m_pConfig->set(ConfigKey("[Controls]", "PositionDisplay"), ConfigValue(0)); } } void DlgPrefControls::slotSetRateTempLeft(double v) { QString str; str = str.setNum(v, 'f'); - m_pConfig->set(ConfigKey("[Controls]","RateTempLeft"),ConfigValue(str)); + m_pConfig->set(ConfigKey("[Controls]", "RateTempLeft"),ConfigValue(str)); RateControl::setTemp(v); } void DlgPrefControls::slotSetRateTempRight(double v) { QString str; str = str.setNum(v, 'f'); - m_pConfig->set(ConfigKey("[Controls]","RateTempRight"),ConfigValue(str)); + m_pConfig->set(ConfigKey("[Controls]", "RateTempRight"),ConfigValue(str)); RateControl::setTempSmall(v); } void DlgPrefControls::slotSetRatePermLeft(double v) { QString str; str = str.setNum(v, 'f'); - m_pConfig->set(ConfigKey("[Controls]","RatePermLeft"),ConfigValue(str)); + m_pConfig->set(ConfigKey("[Controls]", "RatePermLeft"),ConfigValue(str)); RateControl::setPerm(v); } void DlgPrefControls::slotSetRatePermRight(double v) { QString str; str = str.setNum(v, 'f'); - m_pConfig->set(ConfigKey("[Controls]","RatePermRight"),ConfigValue(str)); + m_pConfig->set(ConfigKey("[Controls]", "RatePermRight"),ConfigValue(str)); RateControl::setPermSmall(v); } void DlgPrefControls::slotSetRateRampSensitivity(int sense) { - m_pConfig->set(ConfigKey("[Controls]","RateRampSensitivity"), + m_pConfig->set(ConfigKey("[Controls]", "RateRampSensitivity"), ConfigValue(SliderRateRampSensitivity->value())); RateControl::setRateRampSensitivity(sense); } @@ -624,23 +624,23 @@ void DlgPrefControls::slotApply() { else if (deck1RateRange <= 0.09) idx = 1.; - m_pConfig->set(ConfigKey("[Controls]","RateRange"), ConfigValue((int)idx)); + m_pConfig->set(ConfigKey("[Controls]", "RateRange"), ConfigValue((int)idx)); // Write rate direction to config file if (deck1RateDir == 1) { - m_pConfig->set(ConfigKey("[Controls]","RateDir"), ConfigValue(0)); + m_pConfig->set(ConfigKey("[Controls]", "RateDir"), ConfigValue(0)); } else { - m_pConfig->set(ConfigKey("[Controls]","RateDir"), ConfigValue(1)); + m_pConfig->set(ConfigKey("[Controls]", "RateDir"), ConfigValue(1)); } int rowHeight = spinBoxRowHeight->value(); - m_pConfig->set(ConfigKey("[Library]","RowHeight"), + m_pConfig->set(ConfigKey("[Library]", "RowHeight"), ConfigValue(rowHeight)); - m_pConfig->set(ConfigKey("[Controls]","SpeedAutoReset"), + m_pConfig->set(ConfigKey("[Controls]", "SpeedAutoReset"), ConfigValue(m_bSpeedAutoReset ? 1 : 0)); - m_pConfig->set(ConfigKey("[Controls]","PitchAndKeylockMode"), + m_pConfig->set(ConfigKey("[Controls]", "PitchAndKeylockMode"), ConfigValue(m_pitchAndKeylockMode)); // Set cue behavior for every group foreach (ControlObjectThread* pControl, m_pitchAndKeylockControls) { @@ -703,8 +703,8 @@ void DlgPrefControls::slotNumDecksChanged(double new_count) { } m_iNumConfiguredDecks = numdecks; - slotSetRateDir(m_pConfig->getValueString(ConfigKey("[Controls]","RateDir")).toInt()); - slotSetRateRange(m_pConfig->getValueString(ConfigKey("[Controls]","RateRange")).toInt()); + slotSetRateDir(m_pConfig->getValueString(ConfigKey("[Controls]", "RateDir")).toInt()); + slotSetRateRange(m_pConfig->getValueString(ConfigKey("[Controls]", "RateRange")).toInt()); } void DlgPrefControls::slotNumSamplersChanged(double new_count) { @@ -729,8 +729,8 @@ void DlgPrefControls::slotNumSamplersChanged(double new_count) { } m_iNumConfiguredSamplers = numsamplers; - slotSetRateDir(m_pConfig->getValueString(ConfigKey("[Controls]","RateDir")).toInt()); - slotSetRateRange(m_pConfig->getValueString(ConfigKey("[Controls]","RateRange")).toInt()); + slotSetRateDir(m_pConfig->getValueString(ConfigKey("[Controls]", "RateDir")).toInt()); + slotSetRateRange(m_pConfig->getValueString(ConfigKey("[Controls]", "RateRange")).toInt()); } void DlgPrefControls::slotRowHeightValueChanged(int height) { |