// This file is generated by kconfig_compiler_kf5 from kalzium.kcfg.
// All changes you do to this file will be lost.

#include "prefs.h"

#include <qglobal.h>
#include <QFile>

class PrefsHelper
{
  public:
    PrefsHelper() : q(nullptr) {}
    ~PrefsHelper() { delete q; q = nullptr; }
    PrefsHelper(const PrefsHelper&) = delete;
    PrefsHelper& operator=(const PrefsHelper&) = delete;
    Prefs *q;
};
Q_GLOBAL_STATIC(PrefsHelper, s_globalPrefs)
Prefs *Prefs::self()
{
  if (!s_globalPrefs()->q) {
    new Prefs;
    s_globalPrefs()->q->read();
  }

  return s_globalPrefs()->q;
}

Prefs::Prefs( )
  : KConfigSkeleton( QStringLiteral( "kalziumrc" ) )
  , mSettingsChanged(0)
{
  Q_ASSERT(!s_globalPrefs()->q);
  s_globalPrefs()->q = this;
  KConfigCompilerSignallingItem::NotifyFunction notifyFunction = static_cast<KConfigCompilerSignallingItem::NotifyFunction>(&Prefs::itemChanged);

  setCurrentGroup( QStringLiteral( "Periodic Table" ) );

  KConfigSkeleton::ItemInt  *itemSchemaPSE;
  itemSchemaPSE = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "schemaPSE" ), mSchemaPSE, 0 );
  addItem( itemSchemaPSE, QStringLiteral( "schemaPSE" ) );
  KConfigSkeleton::ItemInt  *itemColorschemebox;
  itemColorschemebox = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "colorschemebox" ), mColorschemebox, 1 );
  addItem( itemColorschemebox, QStringLiteral( "colorschemebox" ) );
  KConfigSkeleton::ItemInt  *itemGradient;
  itemGradient = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "gradient" ), mGradient, 1 );
  addItem( itemGradient, QStringLiteral( "gradient" ) );
  KConfigSkeleton::ItemInt  *itemNumeration;
  itemNumeration = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "numeration" ), mNumeration, 1 );
  addItem( itemNumeration, QStringLiteral( "numeration" ) );
  KConfigSkeleton::ItemBool  *itemShowlegend;
  itemShowlegend = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "showlegend" ), mShowlegend, true );
  addItem( itemShowlegend, QStringLiteral( "showlegend" ) );
  KConfigSkeleton::ItemInt  *itemPselook;
  itemPselook = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "pselook" ), mPselook, 0 );
  addItem( itemPselook, QStringLiteral( "pselook" ) );
  KConfigSkeleton::ItemInt  *itemTable;
  itemTable = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "table" ), mTable, 0 );
  addItem( itemTable, QStringLiteral( "table" ) );

  setCurrentGroup( QStringLiteral( "Logarithmic Gradients" ) );

  KConfigSkeleton::ItemBool  *itemLogarithmicCovalentRadiusGradient;
  itemLogarithmicCovalentRadiusGradient = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "LogarithmicCovalentRadiusGradient" ), mLogarithmicCovalentRadiusGradient, false );
  addItem( itemLogarithmicCovalentRadiusGradient, QStringLiteral( "LogarithmicCovalentRadiusGradient" ) );
  KConfigSkeleton::ItemBool  *itemLogarithmicVanDerWaalsRadiusGradient;
  itemLogarithmicVanDerWaalsRadiusGradient = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "LogarithmicVanDerWaalsRadiusGradient" ), mLogarithmicVanDerWaalsRadiusGradient, false );
  addItem( itemLogarithmicVanDerWaalsRadiusGradient, QStringLiteral( "LogarithmicVanDerWaalsRadiusGradient" ) );
  KConfigSkeleton::ItemBool  *itemLogarithmicMassGradient;
  itemLogarithmicMassGradient = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "LogarithmicMassGradient" ), mLogarithmicMassGradient, true );
  addItem( itemLogarithmicMassGradient, QStringLiteral( "LogarithmicMassGradient" ) );
  KConfigSkeleton::ItemBool  *itemLogarithmicBoilingPointGradient;
  itemLogarithmicBoilingPointGradient = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "LogarithmicBoilingPointGradient" ), mLogarithmicBoilingPointGradient, true );
  addItem( itemLogarithmicBoilingPointGradient, QStringLiteral( "LogarithmicBoilingPointGradient" ) );
  KConfigSkeleton::ItemBool  *itemLogarithmicMeltingPointGradient;
  itemLogarithmicMeltingPointGradient = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "LogarithmicMeltingPointGradient" ), mLogarithmicMeltingPointGradient, true );
  addItem( itemLogarithmicMeltingPointGradient, QStringLiteral( "LogarithmicMeltingPointGradient" ) );
  KConfigSkeleton::ItemBool  *itemLogarithmicElectronegativityGradient;
  itemLogarithmicElectronegativityGradient = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "LogarithmicElectronegativityGradient" ), mLogarithmicElectronegativityGradient, false );
  addItem( itemLogarithmicElectronegativityGradient, QStringLiteral( "LogarithmicElectronegativityGradient" ) );
  KConfigSkeleton::ItemBool  *itemLogarithmicDiscoverydateGradient;
  itemLogarithmicDiscoverydateGradient = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "LogarithmicDiscoverydateGradient" ), mLogarithmicDiscoverydateGradient, false );
  addItem( itemLogarithmicDiscoverydateGradient, QStringLiteral( "LogarithmicDiscoverydateGradient" ) );
  KConfigSkeleton::ItemBool  *itemLogarithmicElectronaffinityGradient;
  itemLogarithmicElectronaffinityGradient = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "LogarithmicElectronaffinityGradient" ), mLogarithmicElectronaffinityGradient, true );
  addItem( itemLogarithmicElectronaffinityGradient, QStringLiteral( "LogarithmicElectronaffinityGradient" ) );
  KConfigSkeleton::ItemBool  *itemLogarithmicIonizationGradient;
  itemLogarithmicIonizationGradient = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "LogarithmicIonizationGradient" ), mLogarithmicIonizationGradient, true );
  addItem( itemLogarithmicIonizationGradient, QStringLiteral( "LogarithmicIonizationGradient" ) );

  setCurrentGroup( QStringLiteral( "Colors" ) );

  KConfigSkeleton::ItemInt  *itemColorgradientbox;
  itemColorgradientbox = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "colorgradientbox" ), mColorgradientbox, 0 );
  addItem( itemColorgradientbox, QStringLiteral( "colorgradientbox" ) );
  KConfigSkeleton::ItemColor  *itemNoscheme;
  itemNoscheme = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "noscheme" ), mNoscheme, QColor( "#2C72C7" ) );
  addItem( itemNoscheme, QStringLiteral( "noscheme" ) );
  KConfigSkeleton::ItemColor  *itemColor_liquid;
  itemColor_liquid = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "color_liquid" ), mColor_liquid, QColor( "#2C72C8" ) );
  addItem( itemColor_liquid, QStringLiteral( "color_liquid" ) );
  KConfigSkeleton::ItemColor  *itemColor_solid;
  itemColor_solid = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "color_solid" ), mColor_solid, QColor( "#E85753" ) );
  addItem( itemColor_solid, QStringLiteral( "color_solid" ) );
  KConfigSkeleton::ItemColor  *itemColor_vapor;
  itemColor_vapor = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "color_vapor" ), mColor_vapor, QColor( "#77B754" ) );
  addItem( itemColor_vapor, QStringLiteral( "color_vapor" ) );
  KConfigSkeleton::ItemColor  *itemColor_radioactive;
  itemColor_radioactive = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "color_radioactive" ), mColor_radioactive, QColor( "#FFFFFF" ) );
  addItem( itemColor_radioactive, QStringLiteral( "color_radioactive" ) );
  KConfigSkeleton::ItemColor  *itemColor_artificial;
  itemColor_artificial = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "color_artificial" ), mColor_artificial, QColor( "#FFA94E" ) );
  addItem( itemColor_artificial, QStringLiteral( "color_artificial" ) );
  KConfigSkeleton::ItemColor  *itemBlock_s;
  itemBlock_s = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "block_s" ), mBlock_s, QColor( "#B14F9A" ) );
  addItem( itemBlock_s, QStringLiteral( "block_s" ) );
  KConfigSkeleton::ItemColor  *itemBlock_p;
  itemBlock_p = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "block_p" ), mBlock_p, QColor( "#77B753" ) );
  addItem( itemBlock_p, QStringLiteral( "block_p" ) );
  KConfigSkeleton::ItemColor  *itemBlock_d;
  itemBlock_d = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "block_d" ), mBlock_d, QColor( "#FFEB55" ) );
  addItem( itemBlock_d, QStringLiteral( "block_d" ) );
  KConfigSkeleton::ItemColor  *itemBlock_f;
  itemBlock_f = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "block_f" ), mBlock_f, QColor( "#E85752" ) );
  addItem( itemBlock_f, QStringLiteral( "block_f" ) );
  KConfigSkeleton::ItemColor  *itemGroup_1;
  itemGroup_1 = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "group_1" ), mGroup_1, QColor( "#B14F9A" ) );
  addItem( itemGroup_1, QStringLiteral( "group_1" ) );
  KConfigSkeleton::ItemColor  *itemGroup_2;
  itemGroup_2 = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "group_2" ), mGroup_2, QColor( "#2C72C7" ) );
  addItem( itemGroup_2, QStringLiteral( "group_2" ) );
  KConfigSkeleton::ItemColor  *itemGroup_3;
  itemGroup_3 = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "group_3" ), mGroup_3, QColor( "#00B377" ) );
  addItem( itemGroup_3, QStringLiteral( "group_3" ) );
  KConfigSkeleton::ItemColor  *itemGroup_4;
  itemGroup_4 = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "group_4" ), mGroup_4, QColor( "#E85752" ) );
  addItem( itemGroup_4, QStringLiteral( "group_4" ) );
  KConfigSkeleton::ItemColor  *itemGroup_5;
  itemGroup_5 = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "group_5" ), mGroup_5, QColor( "#FFEB55" ) );
  addItem( itemGroup_5, QStringLiteral( "group_5" ) );
  KConfigSkeleton::ItemColor  *itemGroup_6;
  itemGroup_6 = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "group_6" ), mGroup_6, QColor( "#644A9B" ) );
  addItem( itemGroup_6, QStringLiteral( "group_6" ) );
  KConfigSkeleton::ItemColor  *itemGroup_7;
  itemGroup_7 = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "group_7" ), mGroup_7, QColor( "#E85290" ) );
  addItem( itemGroup_7, QStringLiteral( "group_7" ) );
  KConfigSkeleton::ItemColor  *itemGroup_8;
  itemGroup_8 = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "group_8" ), mGroup_8, QColor( "#00A7B3" ) );
  addItem( itemGroup_8, QStringLiteral( "group_8" ) );
  KConfigSkeleton::ItemColor  *itemAlkalie;
  itemAlkalie = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "alkalie" ), mAlkalie, QColor( "#FFEB55" ) );
  addItem( itemAlkalie, QStringLiteral( "alkalie" ) );
  KConfigSkeleton::ItemColor  *itemRare;
  itemRare = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "rare" ), mRare, QColor( "#644A9B" ) );
  addItem( itemRare, QStringLiteral( "rare" ) );
  KConfigSkeleton::ItemColor  *itemNonmetal;
  itemNonmetal = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "nonmetal" ), mNonmetal, QColor( "#F29B68" ) );
  addItem( itemNonmetal, QStringLiteral( "nonmetal" ) );
  KConfigSkeleton::ItemColor  *itemAlkaline;
  itemAlkaline = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "alkaline" ), mAlkaline, QColor( "#00A7B3" ) );
  addItem( itemAlkaline, QStringLiteral( "alkaline" ) );
  KConfigSkeleton::ItemColor  *itemOther_metal;
  itemOther_metal = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "other_metal" ), mOther_metal, QColor( "#8F6B32" ) );
  addItem( itemOther_metal, QStringLiteral( "other_metal" ) );
  KConfigSkeleton::ItemColor  *itemHalogene;
  itemHalogene = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "halogene" ), mHalogene, QColor( "#77B753" ) );
  addItem( itemHalogene, QStringLiteral( "halogene" ) );
  KConfigSkeleton::ItemColor  *itemTransition;
  itemTransition = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "transition" ), mTransition, QColor( "#00B377" ) );
  addItem( itemTransition, QStringLiteral( "transition" ) );
  KConfigSkeleton::ItemColor  *itemNoble_gas;
  itemNoble_gas = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "noble_gas" ), mNoble_gas, QColor( "#E85290" ) );
  addItem( itemNoble_gas, QStringLiteral( "noble_gas" ) );
  KConfigSkeleton::ItemColor  *itemMetalloid;
  itemMetalloid = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "metalloid" ), mMetalloid, QColor( "#E8D888" ) );
  addItem( itemMetalloid, QStringLiteral( "metalloid" ) );
  KConfigSkeleton::ItemColor  *itemMaxColor;
  itemMaxColor = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "MaxColor" ), mMaxColor, QColor( "#FF0000" ) );
  addItem( itemMaxColor, QStringLiteral( "MaxColor" ) );
  KConfigSkeleton::ItemColor  *itemMinColor;
  itemMinColor = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "MinColor" ), mMinColor, QColor( "#FFFFFF" ) );
  addItem( itemMinColor, QStringLiteral( "MinColor" ) );

  setCurrentGroup( QStringLiteral( "Units" ) );

  KConfigSkeleton::ItemInt  *itemEnergiesUnit;
  itemEnergiesUnit = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "energiesUnit" ), mEnergiesUnit, 7022 );
  addItem( itemEnergiesUnit, QStringLiteral( "energiesUnit" ) );
  KConfigSkeleton::ItemInt  *itemTemperatureUnit;
  itemTemperatureUnit = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "temperatureUnit" ), mTemperatureUnit, 6000 );
  addItem( itemTemperatureUnit, QStringLiteral( "temperatureUnit" ) );
  KConfigSkeleton::ItemInt  *itemLengthUnit;
  itemLengthUnit = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "lengthUnit" ), mLengthUnit, 2016 );
  addItem( itemLengthUnit, QStringLiteral( "lengthUnit" ) );
  KConfigSkeleton::ItemInt  *itemCombobox_energies;
  itemCombobox_energies = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "combobox_energies" ), mCombobox_energies, 0 );
  addItem( itemCombobox_energies, QStringLiteral( "combobox_energies" ) );
  KConfigSkeleton::ItemInt  *itemCombobox_temperature;
  itemCombobox_temperature = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "combobox_temperature" ), mCombobox_temperature, 0 );
  addItem( itemCombobox_temperature, QStringLiteral( "combobox_temperature" ) );
  KConfigSkeleton::ItemInt  *itemCombobox_length;
  itemCombobox_length = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "combobox_length" ), mCombobox_length, 0 );
  addItem( itemCombobox_length, QStringLiteral( "combobox_length" ) );
  KConfigSkeleton::ItemBool  *itemSchemaSelected;
  itemSchemaSelected = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "schemaSelected" ), mSchemaSelected, true );
  addItem( itemSchemaSelected, QStringLiteral( "schemaSelected" ) );

  setCurrentGroup( QStringLiteral( "Spectrum" ) );

  KConfigSkeleton::ItemInt  *itemSpectrumWavelengthUnit;
  itemSpectrumWavelengthUnit = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "spectrumWavelengthUnit" ), mSpectrumWavelengthUnit, 2015 );
  addItem( itemSpectrumWavelengthUnit, QStringLiteral( "spectrumWavelengthUnit" ) );
  KConfigSkeleton::ItemInt  *itemSpectrumType;
  itemSpectrumType = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "spectrumType" ), mSpectrumType, 0 );
  addItem( itemSpectrumType, QStringLiteral( "spectrumType" ) );

  setCurrentGroup( QStringLiteral( "Calculator" ) );

  KConfigSkeleton::ItemBool  *itemMass;
  itemMass = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "mass" ), mMass );
  addItem( itemMass, QStringLiteral( "mass" ) );
  KConfigSkeleton::ItemBool  *itemIdeal;
  itemIdeal = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "ideal" ), mIdeal, 1 );
  addItem( itemIdeal, QStringLiteral( "ideal" ) );
  KConfigSkeleton::ItemBool  *itemSoluteMass;
  itemSoluteMass = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "soluteMass" ), mSoluteMass );
  addItem( itemSoluteMass, QStringLiteral( "soluteMass" ) );
  KConfigSkeleton::ItemBool  *itemSolventVolume;
  itemSolventVolume = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "solventVolume" ), mSolventVolume );
  addItem( itemSolventVolume, QStringLiteral( "solventVolume" ) );
  KConfigSkeleton::ItemBool  *itemAlias;
  itemAlias = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "alias" ), mAlias );
  addItem( itemAlias, QStringLiteral( "alias" ) );
  KConfigSkeleton::ItemBool  *itemAddAlias;
  itemAddAlias = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "addAlias" ), mAddAlias );
  addItem( itemAddAlias, QStringLiteral( "addAlias" ) );

  setCurrentGroup( QStringLiteral( "Sidebar" ) );

  KConfigSkeleton::ItemBool  *itemShowsidebar;
  itemShowsidebar = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "showsidebar" ), mShowsidebar, true );
  addItem( itemShowsidebar, QStringLiteral( "showsidebar" ) );

  setCurrentGroup( QStringLiteral( "Isotope Table" ) );

  QList<KConfigSkeleton::ItemEnum::Choice> valuesisotopeTableMode;
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("isotopeTableMode_0");
    valuesisotopeTableMode.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("isotopeTableMode_1");
    valuesisotopeTableMode.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("isotopeTableMode_2");
    valuesisotopeTableMode.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("isotopeTableMode_3");
    valuesisotopeTableMode.append( choice );
  }
  KConfigCompilerSignallingItem  *itemIsotopeTableMode;
  KConfigSkeleton::ItemEnum  *innerItemIsotopeTableMode;
  innerItemIsotopeTableMode = new KConfigSkeleton::ItemEnum( currentGroup(), QStringLiteral( "isotopeTableMode" ), mIsotopeTableMode, valuesisotopeTableMode, EnumIsotopeTableMode::isotopeTableMode_0 );
  itemIsotopeTableMode = new KConfigCompilerSignallingItem(innerItemIsotopeTableMode, this, notifyFunction, signalIsotopeTableModeChanged);
  addItem( itemIsotopeTableMode, QStringLiteral( "isotopeTableMode" ) );
}

int Prefs::defaultSchemaPSEValue_helper()
{

  return 0;
}

int Prefs::defaultColorschemeboxValue_helper()
{

  return 1;
}

int Prefs::defaultGradientValue_helper()
{

  return 1;
}

int Prefs::defaultNumerationValue_helper()
{

  return 1;
}

bool Prefs::defaultShowlegendValue_helper()
{

  return true;
}

int Prefs::defaultPselookValue_helper()
{

  return 0;
}

int Prefs::defaultTableValue_helper()
{

  return 0;
}

bool Prefs::defaultLogarithmicCovalentRadiusGradientValue_helper()
{

  return false;
}

bool Prefs::defaultLogarithmicVanDerWaalsRadiusGradientValue_helper()
{

  return false;
}

bool Prefs::defaultLogarithmicMassGradientValue_helper()
{

  return true;
}

bool Prefs::defaultLogarithmicBoilingPointGradientValue_helper()
{

  return true;
}

bool Prefs::defaultLogarithmicMeltingPointGradientValue_helper()
{

  return true;
}

bool Prefs::defaultLogarithmicElectronegativityGradientValue_helper()
{

  return false;
}

bool Prefs::defaultLogarithmicDiscoverydateGradientValue_helper()
{

  return false;
}

bool Prefs::defaultLogarithmicElectronaffinityGradientValue_helper()
{

  return true;
}

bool Prefs::defaultLogarithmicIonizationGradientValue_helper()
{

  return true;
}

int Prefs::defaultColorgradientboxValue_helper()
{

  return 0;
}

QColor Prefs::defaultNoschemeValue_helper()
{

  return QColor( "#2C72C7" );
}

QColor Prefs::defaultColor_liquidValue_helper()
{

  return QColor( "#2C72C8" );
}

QColor Prefs::defaultColor_solidValue_helper()
{

  return QColor( "#E85753" );
}

QColor Prefs::defaultColor_vaporValue_helper()
{

  return QColor( "#77B754" );
}

QColor Prefs::defaultColor_radioactiveValue_helper()
{

  return QColor( "#FFFFFF" );
}

QColor Prefs::defaultColor_artificialValue_helper()
{

  return QColor( "#FFA94E" );
}

QColor Prefs::defaultBlock_sValue_helper()
{

  return QColor( "#B14F9A" );
}

QColor Prefs::defaultBlock_pValue_helper()
{

  return QColor( "#77B753" );
}

QColor Prefs::defaultBlock_dValue_helper()
{

  return QColor( "#FFEB55" );
}

QColor Prefs::defaultBlock_fValue_helper()
{

  return QColor( "#E85752" );
}

QColor Prefs::defaultGroup_1Value_helper()
{

  return QColor( "#B14F9A" );
}

QColor Prefs::defaultGroup_2Value_helper()
{

  return QColor( "#2C72C7" );
}

QColor Prefs::defaultGroup_3Value_helper()
{

  return QColor( "#00B377" );
}

QColor Prefs::defaultGroup_4Value_helper()
{

  return QColor( "#E85752" );
}

QColor Prefs::defaultGroup_5Value_helper()
{

  return QColor( "#FFEB55" );
}

QColor Prefs::defaultGroup_6Value_helper()
{

  return QColor( "#644A9B" );
}

QColor Prefs::defaultGroup_7Value_helper()
{

  return QColor( "#E85290" );
}

QColor Prefs::defaultGroup_8Value_helper()
{

  return QColor( "#00A7B3" );
}

QColor Prefs::defaultAlkalieValue_helper()
{

  return QColor( "#FFEB55" );
}

QColor Prefs::defaultRareValue_helper()
{

  return QColor( "#644A9B" );
}

QColor Prefs::defaultNonmetalValue_helper()
{

  return QColor( "#F29B68" );
}

QColor Prefs::defaultAlkalineValue_helper()
{

  return QColor( "#00A7B3" );
}

QColor Prefs::defaultOther_metalValue_helper()
{

  return QColor( "#8F6B32" );
}

QColor Prefs::defaultHalogeneValue_helper()
{

  return QColor( "#77B753" );
}

QColor Prefs::defaultTransitionValue_helper()
{

  return QColor( "#00B377" );
}

QColor Prefs::defaultNoble_gasValue_helper()
{

  return QColor( "#E85290" );
}

QColor Prefs::defaultMetalloidValue_helper()
{

  return QColor( "#E8D888" );
}

QColor Prefs::defaultMaxColorValue_helper()
{

  return QColor( "#FF0000" );
}

QColor Prefs::defaultMinColorValue_helper()
{

  return QColor( "#FFFFFF" );
}

int Prefs::defaultEnergiesUnitValue_helper()
{

  return 7022;
}

int Prefs::defaultTemperatureUnitValue_helper()
{

  return 6000;
}

int Prefs::defaultLengthUnitValue_helper()
{

  return 2016;
}

int Prefs::defaultCombobox_energiesValue_helper()
{

  return 0;
}

int Prefs::defaultCombobox_temperatureValue_helper()
{

  return 0;
}

int Prefs::defaultCombobox_lengthValue_helper()
{

  return 0;
}

bool Prefs::defaultSchemaSelectedValue_helper()
{

  return true;
}

int Prefs::defaultSpectrumWavelengthUnitValue_helper()
{

  return 2015;
}

int Prefs::defaultSpectrumTypeValue_helper()
{

  return 0;
}

bool Prefs::defaultIdealValue_helper()
{

  return 1;
}

bool Prefs::defaultShowsidebarValue_helper()
{

  return true;
}

int Prefs::defaultIsotopeTableModeValue_helper()
{

  return EnumIsotopeTableMode::isotopeTableMode_0;
}

Prefs::~Prefs()
{
  if (s_globalPrefs.exists() && !s_globalPrefs.isDestroyed()) {
    s_globalPrefs()->q = nullptr;
  }
}

bool Prefs::usrSave()
{
  const bool res = KConfigSkeleton::usrSave();
  if (!res) return false;

  if ( mSettingsChanged & signalIsotopeTableModeChanged )
    Q_EMIT isotopeTableModeChanged();
  mSettingsChanged = 0;
  return true;
}

void Prefs::itemChanged(quint64 flags) {
  mSettingsChanged |= flags;

}

#include "prefs.moc"

