// This file is generated by tdeconfig_compiler from kjumpingcube.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( "kjumpingcuberc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "Game" ) );

  TDEConfigSkeleton::ItemColor  *itemColor1;
  itemColor1 = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "Color1" ), mColor1, TQColor( "darkred" ) );
  addItem( itemColor1, TQString::fromLatin1( "Color1" ) );
  TDEConfigSkeleton::ItemColor  *itemColor2;
  itemColor2 = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "Color2" ), mColor2, TQColor( "darkblue" ) );
  addItem( itemColor2, TQString::fromLatin1( "Color2" ) );
  TDEConfigSkeleton::ItemInt  *itemCubeDim;
  itemCubeDim = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "CubeDim" ), mCubeDim, 6 );
  addItem( itemCubeDim, TQString::fromLatin1( "CubeDim" ) );
  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesSkill;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Beginner" );
    valuesSkill.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Average" );
    valuesSkill.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Expert" );
    valuesSkill.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemSkill;
  itemSkill = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "Skill" ), mSkill, valuesSkill, EnumSkill::Average );
  addItem( itemSkill, TQString::fromLatin1( "Skill" ) );
  TDEConfigSkeleton::ItemBool  *itemComputerPlayer1;
  itemComputerPlayer1 = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "Computer_Pl_1" ), mComputerPlayer1, false );
  addItem( itemComputerPlayer1, TQString::fromLatin1( "ComputerPlayer1" ) );
  TDEConfigSkeleton::ItemBool  *itemComputerPlayer2;
  itemComputerPlayer2 = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "Computer_Pl_2" ), mComputerPlayer2, true );
  addItem( itemComputerPlayer2, TQString::fromLatin1( "ComputerPlayer2" ) );
}

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

