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

  TDEConfigSkeleton::ItemBool  *itemSolvable;
  itemSolvable = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "Solvable" ), mSolvable, true );
  addItem( itemSolvable, TQString::fromLatin1( "Solvable" ) );
  TDEConfigSkeleton::ItemBool  *itemGravity;
  itemGravity = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "Gravity" ), mGravity, true );
  addItem( itemGravity, TQString::fromLatin1( "Gravity" ) );
  TDEConfigSkeleton::ItemBool  *itemUnscaled;
  itemUnscaled = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "Unscaled" ), mUnscaled, true );
  addItem( itemUnscaled, TQString::fromLatin1( "Unscaled" ) );
  TDEConfigSkeleton::ItemInt  *itemSpeed;
  itemSpeed = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "Speed" ), mSpeed, 2 );
  itemSpeed->setMinValue(0);
  itemSpeed->setMaxValue(4);
  addItem( itemSpeed, TQString::fromLatin1( "Speed" ) );
  TDEConfigSkeleton::ItemInt  *itemSize;
  itemSize = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "Size" ), mSize, 2 );
  itemSize->setMinValue(0);
  itemSize->setMaxValue(4);
  addItem( itemSize, TQString::fromLatin1( "Size" ) );
  TDEConfigSkeleton::ItemInt  *itemLevel;
  itemLevel = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "Level" ), mLevel, 1 );
  itemLevel->setMinValue(0);
  itemLevel->setMaxValue(2);
  addItem( itemLevel, TQString::fromLatin1( "Level" ) );
}

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

