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

#include "prefs.h"

#include <kstaticdeleter.h>

Prefs *Prefs::mSelf = 0;
static KStaticDeleter<Prefs> staticPrefsDeleter;

Prefs *Prefs::self()
{
  if ( !mSelf ) {
    staticPrefsDeleter.setObject( mSelf, new Prefs() );
    mSelf->readConfig();
  }

  return mSelf;
}

Prefs::Prefs(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "kalziumrc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "Periodic Table" ) );

  TDEConfigSkeleton::ItemInt  *itemSchemaPSE;
  itemSchemaPSE = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "schemaPSE" ), mSchemaPSE, 0 );
  addItem( itemSchemaPSE, TQString::fromLatin1( "schemaPSE" ) );
  TDEConfigSkeleton::ItemInt  *itemColorschemebox;
  itemColorschemebox = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "colorschemebox" ), mColorschemebox, 1 );
  addItem( itemColorschemebox, TQString::fromLatin1( "colorschemebox" ) );
  TDEConfigSkeleton::ItemInt  *itemGradient;
  itemGradient = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "gradient" ), mGradient, 1 );
  addItem( itemGradient, TQString::fromLatin1( "gradient" ) );
  TDEConfigSkeleton::ItemInt  *itemNumeration;
  itemNumeration = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "numeration" ), mNumeration, 1 );
  addItem( itemNumeration, TQString::fromLatin1( "numeration" ) );
  TDEConfigSkeleton::ItemBool  *itemShowlegend;
  itemShowlegend = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "showlegend" ), mShowlegend, true );
  addItem( itemShowlegend, TQString::fromLatin1( "showlegend" ) );
  TDEConfigSkeleton::ItemBool  *itemTooltip;
  itemTooltip = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "tooltip" ), mTooltip, true );
  addItem( itemTooltip, TQString::fromLatin1( "tooltip" ) );
  TDEConfigSkeleton::ItemInt  *itemPselook;
  itemPselook = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "pselook" ), mPselook, 0 );
  addItem( itemPselook, TQString::fromLatin1( "pselook" ) );

  setCurrentGroup( TQString::fromLatin1( "Colors" ) );

  TDEConfigSkeleton::ItemColor  *itemNoscheme;
  itemNoscheme = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "noscheme" ), mNoscheme, TQColor( "#b4adff" ) );
  addItem( itemNoscheme, TQString::fromLatin1( "noscheme" ) );
  TDEConfigSkeleton::ItemColor  *itemColor_liquid;
  itemColor_liquid = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "color_liquid" ), mColor_liquid, TQColor( "#b4adff" ) );
  addItem( itemColor_liquid, TQString::fromLatin1( "color_liquid" ) );
  TDEConfigSkeleton::ItemColor  *itemColor_solid;
  itemColor_solid = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "color_solid" ), mColor_solid, TQColor( "#FF5255" ) );
  addItem( itemColor_solid, TQString::fromLatin1( "color_solid" ) );
  TDEConfigSkeleton::ItemColor  *itemColor_vapor;
  itemColor_vapor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "color_vapor" ), mColor_vapor, TQColor( "#5CFF46" ) );
  addItem( itemColor_vapor, TQString::fromLatin1( "color_vapor" ) );
  TDEConfigSkeleton::ItemColor  *itemColor_radioactive;
  itemColor_radioactive = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "color_radioactive" ), mColor_radioactive, TQColor( "#FFFFFF" ) );
  addItem( itemColor_radioactive, TQString::fromLatin1( "color_radioactive" ) );
  TDEConfigSkeleton::ItemColor  *itemColor_artificial;
  itemColor_artificial = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "color_artificial" ), mColor_artificial, TQColor( "#FFA94E" ) );
  addItem( itemColor_artificial, TQString::fromLatin1( "color_artificial" ) );
  TDEConfigSkeleton::ItemColor  *itemBlock_s;
  itemBlock_s = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "block_s" ), mBlock_s, TQColor( "#be72ee" ) );
  addItem( itemBlock_s, TQString::fromLatin1( "block_s" ) );
  TDEConfigSkeleton::ItemColor  *itemBlock_p;
  itemBlock_p = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "block_p" ), mBlock_p, TQColor( "#62ee25" ) );
  addItem( itemBlock_p, TQString::fromLatin1( "block_p" ) );
  TDEConfigSkeleton::ItemColor  *itemBlock_d;
  itemBlock_d = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "block_d" ), mBlock_d, TQColor( "#f4fd40" ) );
  addItem( itemBlock_d, TQString::fromLatin1( "block_d" ) );
  TDEConfigSkeleton::ItemColor  *itemBlock_f;
  itemBlock_f = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "block_f" ), mBlock_f, TQColor( "#ee5ab8" ) );
  addItem( itemBlock_f, TQString::fromLatin1( "block_f" ) );
  TDEConfigSkeleton::ItemColor  *itemGroup_1;
  itemGroup_1 = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "group_1" ), mGroup_1, TQColor( "#dd00ee" ) );
  addItem( itemGroup_1, TQString::fromLatin1( "group_1" ) );
  TDEConfigSkeleton::ItemColor  *itemGroup_2;
  itemGroup_2 = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "group_2" ), mGroup_2, TQColor( "#2284ee" ) );
  addItem( itemGroup_2, TQString::fromLatin1( "group_2" ) );
  TDEConfigSkeleton::ItemColor  *itemGroup_3;
  itemGroup_3 = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "group_3" ), mGroup_3, TQColor( "#91ee7f" ) );
  addItem( itemGroup_3, TQString::fromLatin1( "group_3" ) );
  TDEConfigSkeleton::ItemColor  *itemGroup_4;
  itemGroup_4 = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "group_4" ), mGroup_4, TQColor( "#c80000" ) );
  addItem( itemGroup_4, TQString::fromLatin1( "group_4" ) );
  TDEConfigSkeleton::ItemColor  *itemGroup_5;
  itemGroup_5 = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "group_5" ), mGroup_5, TQColor( "#eec809" ) );
  addItem( itemGroup_5, TQString::fromLatin1( "group_5" ) );
  TDEConfigSkeleton::ItemColor  *itemGroup_6;
  itemGroup_6 = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "group_6" ), mGroup_6, TQColor( "#486f8b" ) );
  addItem( itemGroup_6, TQString::fromLatin1( "group_6" ) );
  TDEConfigSkeleton::ItemColor  *itemGroup_7;
  itemGroup_7 = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "group_7" ), mGroup_7, TQColor( "#ee0842" ) );
  addItem( itemGroup_7, TQString::fromLatin1( "group_7" ) );
  TDEConfigSkeleton::ItemColor  *itemGroup_8;
  itemGroup_8 = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "group_8" ), mGroup_8, TQColor( "#b4adff" ) );
  addItem( itemGroup_8, TQString::fromLatin1( "group_8" ) );
  TDEConfigSkeleton::ItemColor  *itemBeh_acidic;
  itemBeh_acidic = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "beh_acidic" ), mBeh_acidic, TQColor( "#b4adff" ) );
  addItem( itemBeh_acidic, TQString::fromLatin1( "beh_acidic" ) );
  TDEConfigSkeleton::ItemColor  *itemBeh_basic;
  itemBeh_basic = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "beh_basic" ), mBeh_basic, TQColor( "#d3ee22" ) );
  addItem( itemBeh_basic, TQString::fromLatin1( "beh_basic" ) );
  TDEConfigSkeleton::ItemColor  *itemBeh_amphoteric;
  itemBeh_amphoteric = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "beh_amphoteric" ), mBeh_amphoteric, TQColor( "#EE4346" ) );
  addItem( itemBeh_amphoteric, TQString::fromLatin1( "beh_amphoteric" ) );
  TDEConfigSkeleton::ItemColor  *itemBeh_neutral;
  itemBeh_neutral = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "beh_neutral" ), mBeh_neutral, TQColor( "#44EE2E" ) );
  addItem( itemBeh_neutral, TQString::fromLatin1( "beh_neutral" ) );
  TDEConfigSkeleton::ItemColor  *itemAlkalie;
  itemAlkalie = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "alkalie" ), mAlkalie, TQColor( "#FFFF2D" ) );
  addItem( itemAlkalie, TQString::fromLatin1( "alkalie" ) );
  TDEConfigSkeleton::ItemColor  *itemRare;
  itemRare = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "rare" ), mRare, TQColor( "#5B2EFF" ) );
  addItem( itemRare, TQString::fromLatin1( "rare" ) );
  TDEConfigSkeleton::ItemColor  *itemNonmetal;
  itemNonmetal = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "nonmetal" ), mNonmetal, TQColor( "#CCBE2C" ) );
  addItem( itemNonmetal, TQString::fromLatin1( "nonmetal" ) );
  TDEConfigSkeleton::ItemColor  *itemAlkaline;
  itemAlkaline = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "alkaline" ), mAlkaline, TQColor( "#3DD9DE" ) );
  addItem( itemAlkaline, TQString::fromLatin1( "alkaline" ) );
  TDEConfigSkeleton::ItemColor  *itemOther_metal;
  itemOther_metal = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "other_metal" ), mOther_metal, TQColor( "#546F56" ) );
  addItem( itemOther_metal, TQString::fromLatin1( "other_metal" ) );
  TDEConfigSkeleton::ItemColor  *itemHalogene;
  itemHalogene = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "halogene" ), mHalogene, TQColor( "#5BF4A0" ) );
  addItem( itemHalogene, TQString::fromLatin1( "halogene" ) );
  TDEConfigSkeleton::ItemColor  *itemTransition;
  itemTransition = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "transition" ), mTransition, TQColor( "#97F805" ) );
  addItem( itemTransition, TQString::fromLatin1( "transition" ) );
  TDEConfigSkeleton::ItemColor  *itemNoble_gas;
  itemNoble_gas = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "noble_gas" ), mNoble_gas, TQColor( "#C56188" ) );
  addItem( itemNoble_gas, TQString::fromLatin1( "noble_gas" ) );
  TDEConfigSkeleton::ItemColor  *itemMetalloid;
  itemMetalloid = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "metalloid" ), mMetalloid, TQColor( "#E8D888" ) );
  addItem( itemMetalloid, TQString::fromLatin1( "metalloid" ) );

  setCurrentGroup( TQString::fromLatin1( "Units" ) );

  TDEConfigSkeleton::ItemInt  *itemEnergies;
  itemEnergies = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "energies" ), mEnergies, 0 );
  addItem( itemEnergies, TQString::fromLatin1( "energies" ) );
  TDEConfigSkeleton::ItemInt  *itemTemperature;
  itemTemperature = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "temperature" ), mTemperature, 0 );
  addItem( itemTemperature, TQString::fromLatin1( "temperature" ) );

  setCurrentGroup( TQString::fromLatin1( "Sidebar" ) );

  TDEConfigSkeleton::ItemBool  *itemShowsidebar;
  itemShowsidebar = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "showsidebar" ), mShowsidebar, true );
  addItem( itemShowsidebar, TQString::fromLatin1( "showsidebar" ) );
}

Prefs::~Prefs()
{
  if ( mSelf == this )
    staticPrefsDeleter.setObject( mSelf, 0, false );
}

