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

  TDEConfigSkeleton::ItemInt  *itemLevel;
  itemLevel = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "Level" ), mLevel, 0 );
  itemLevel->setMinValue(-2);
  itemLevel->setMaxValue(2);
  addItem( itemLevel, TQString::fromLatin1( "Level" ) );
  TDEConfigSkeleton::ItemBool  *itemShowNext;
  itemShowNext = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowNext" ), mShowNext, true );
  addItem( itemShowNext, TQString::fromLatin1( "ShowNext" ) );
  TDEConfigSkeleton::ItemBool  *itemNumberedBalls;
  itemNumberedBalls = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "NumberedBalls" ), mNumberedBalls, false );
  addItem( itemNumberedBalls, TQString::fromLatin1( "NumberedBalls" ) );
}

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

