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

#include "kcalc_settings.h"

#include <kstaticdeleter.h>

KCalcSettings *KCalcSettings::mSelf = 0;
static KStaticDeleter<KCalcSettings> staticKCalcSettingsDeleter;

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

  return mSelf;
}

KCalcSettings::KCalcSettings(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "kcalcrc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "Colors" ) );

  TDEConfigSkeleton::ItemColor  *itemForeColor;
  itemForeColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "ForeColor" ), mForeColor, TQColor( "#000000" ) );
  addItem( itemForeColor, TQString::fromLatin1( "ForeColor" ) );
  TDEConfigSkeleton::ItemColor  *itemBackColor;
  itemBackColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "BackColor" ), mBackColor, TQColor( "#BDFFB4" ) );
  addItem( itemBackColor, TQString::fromLatin1( "BackColor" ) );
TQColor defaultButtonColor = kapp->palette().active().background();
  TDEConfigSkeleton::ItemColor  *itemNumberButtonsColor;
  itemNumberButtonsColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "NumberButtonsColor" ), mNumberButtonsColor, defaultButtonColor );
  addItem( itemNumberButtonsColor, TQString::fromLatin1( "NumberButtonsColor" ) );
  TDEConfigSkeleton::ItemColor  *itemFunctionButtonsColor;
  itemFunctionButtonsColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "FunctionButtonsColor" ), mFunctionButtonsColor, defaultButtonColor );
  addItem( itemFunctionButtonsColor, TQString::fromLatin1( "FunctionButtonsColor" ) );
  TDEConfigSkeleton::ItemColor  *itemStatButtonsColor;
  itemStatButtonsColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "StatButtonsColor" ), mStatButtonsColor, defaultButtonColor );
  addItem( itemStatButtonsColor, TQString::fromLatin1( "StatButtonsColor" ) );
  TDEConfigSkeleton::ItemColor  *itemHexButtonsColor;
  itemHexButtonsColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "HexButtonsColor" ), mHexButtonsColor, defaultButtonColor );
  addItem( itemHexButtonsColor, TQString::fromLatin1( "HexButtonsColor" ) );
  TDEConfigSkeleton::ItemColor  *itemMemoryButtonsColor;
  itemMemoryButtonsColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "MemoryButtonsColor" ), mMemoryButtonsColor, defaultButtonColor );
  addItem( itemMemoryButtonsColor, TQString::fromLatin1( "MemoryButtonsColor" ) );
  TDEConfigSkeleton::ItemColor  *itemOperationButtonsColor;
  itemOperationButtonsColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "OperationButtonsColor" ), mOperationButtonsColor, defaultButtonColor );
  addItem( itemOperationButtonsColor, TQString::fromLatin1( "OperationButtonsColor" ) );

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

  TDEConfigSkeleton::ItemFont  *itemFont;
  itemFont = new TDEConfigSkeleton::ItemFont( currentGroup(), TQString::fromLatin1( "Font" ), mFont, TQFont(TDEGlobalSettings::generalFont().family(), 14, TQFont::Bold) );
  addItem( itemFont, TQString::fromLatin1( "Font" ) );

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

  TDEConfigSkeleton::ItemUInt  *itemPrecision;
  itemPrecision = new TDEConfigSkeleton::ItemUInt( currentGroup(), TQString::fromLatin1( "precision" ), mPrecision, 12 );
  itemPrecision->setMinValue(8);
  itemPrecision->setMaxValue(200);
  addItem( itemPrecision, TQString::fromLatin1( "Precision" ) );
  TDEConfigSkeleton::ItemUInt  *itemFixedPrecision;
  itemFixedPrecision = new TDEConfigSkeleton::ItemUInt( currentGroup(), TQString::fromLatin1( "fixedprecision" ), mFixedPrecision, 2 );
  addItem( itemFixedPrecision, TQString::fromLatin1( "FixedPrecision" ) );
  TDEConfigSkeleton::ItemBool  *itemFixed;
  itemFixed = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "fixed" ), mFixed, false );
  addItem( itemFixed, TQString::fromLatin1( "Fixed" ) );

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

  TDEConfigSkeleton::ItemBool  *itemBeep;
  itemBeep = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "beep" ), mBeep, true );
  addItem( itemBeep, TQString::fromLatin1( "Beep" ) );
  TDEConfigSkeleton::ItemBool  *itemCaptionResult;
  itemCaptionResult = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "captionresult" ), mCaptionResult, false );
  addItem( itemCaptionResult, TQString::fromLatin1( "CaptionResult" ) );
  TDEConfigSkeleton::ItemBool  *itemGroupDigits;
  itemGroupDigits = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "groupdigits" ), mGroupDigits, true );
  addItem( itemGroupDigits, TQString::fromLatin1( "GroupDigits" ) );
  TDEConfigSkeleton::ItemBool  *itemShowStat;
  itemShowStat = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowStat" ), mShowStat, false );
  addItem( itemShowStat, TQString::fromLatin1( "ShowStat" ) );
  TDEConfigSkeleton::ItemBool  *itemShowScientific;
  itemShowScientific = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowScientific" ), mShowScientific, false );
  addItem( itemShowScientific, TQString::fromLatin1( "ShowScientific" ) );
  TDEConfigSkeleton::ItemBool  *itemShowLogic;
  itemShowLogic = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowLogic" ), mShowLogic, false );
  addItem( itemShowLogic, TQString::fromLatin1( "ShowLogic" ) );
  TDEConfigSkeleton::ItemBool  *itemShowConstants;
  itemShowConstants = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowConstants" ), mShowConstants, false );
  addItem( itemShowConstants, TQString::fromLatin1( "ShowConstants" ) );

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

  TDEConfigSkeleton::ItemString  *itemNameConstant[6];
  itemNameConstant[0] = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "nameConstant0" ), mNameConstant[0], TQString::fromLatin1( "C1" ) );
  addItem( itemNameConstant[0], TQString::fromLatin1( "nameConstant0" ) );
  itemNameConstant[1] = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "nameConstant1" ), mNameConstant[1], TQString::fromLatin1( "C2" ) );
  addItem( itemNameConstant[1], TQString::fromLatin1( "nameConstant1" ) );
  itemNameConstant[2] = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "nameConstant2" ), mNameConstant[2], TQString::fromLatin1( "C3" ) );
  addItem( itemNameConstant[2], TQString::fromLatin1( "nameConstant2" ) );
  itemNameConstant[3] = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "nameConstant3" ), mNameConstant[3], TQString::fromLatin1( "C4" ) );
  addItem( itemNameConstant[3], TQString::fromLatin1( "nameConstant3" ) );
  itemNameConstant[4] = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "nameConstant4" ), mNameConstant[4], TQString::fromLatin1( "C5" ) );
  addItem( itemNameConstant[4], TQString::fromLatin1( "nameConstant4" ) );
  itemNameConstant[5] = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "nameConstant5" ), mNameConstant[5], TQString::fromLatin1( "C6" ) );
  addItem( itemNameConstant[5], TQString::fromLatin1( "nameConstant5" ) );
  TDEConfigSkeleton::ItemString  *itemValueConstant[6];
  itemValueConstant[0] = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "valueConstant0" ), mValueConstant[0], TQString::fromLatin1( "0" ) );
  addItem( itemValueConstant[0], TQString::fromLatin1( "valueConstant0" ) );
  itemValueConstant[1] = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "valueConstant1" ), mValueConstant[1], TQString::fromLatin1( "0" ) );
  addItem( itemValueConstant[1], TQString::fromLatin1( "valueConstant1" ) );
  itemValueConstant[2] = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "valueConstant2" ), mValueConstant[2], TQString::fromLatin1( "0" ) );
  addItem( itemValueConstant[2], TQString::fromLatin1( "valueConstant2" ) );
  itemValueConstant[3] = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "valueConstant3" ), mValueConstant[3], TQString::fromLatin1( "0" ) );
  addItem( itemValueConstant[3], TQString::fromLatin1( "valueConstant3" ) );
  itemValueConstant[4] = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "valueConstant4" ), mValueConstant[4], TQString::fromLatin1( "0" ) );
  addItem( itemValueConstant[4], TQString::fromLatin1( "valueConstant4" ) );
  itemValueConstant[5] = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "valueConstant5" ), mValueConstant[5], TQString::fromLatin1( "0" ) );
  addItem( itemValueConstant[5], TQString::fromLatin1( "valueConstant5" ) );
}

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

