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

  TDEConfigSkeleton::ItemString  *itemTileSet;
  itemTileSet = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "Tileset_file" ), mTileSet );
  addItem( itemTileSet, TQString::fromLatin1( "TileSet" ) );
  TDEConfigSkeleton::ItemString  *itemBackground;
  itemBackground = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "Background_file" ), mBackground );
  addItem( itemBackground, TQString::fromLatin1( "Background" ) );
  TDEConfigSkeleton::ItemString  *itemLayout;
  itemLayout = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "Layout_file" ), mLayout );
  addItem( itemLayout, TQString::fromLatin1( "Layout" ) );
  TDEConfigSkeleton::ItemBool  *itemShowRemoved;
  itemShowRemoved = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "showRemoved" ), mShowRemoved, false );
  addItem( itemShowRemoved, TQString::fromLatin1( "ShowRemoved" ) );
  TDEConfigSkeleton::ItemBool  *itemMiniTiles;
  itemMiniTiles = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "Use_mini_tiles" ), mMiniTiles, false );
  addItem( itemMiniTiles, TQString::fromLatin1( "MiniTiles" ) );
  TDEConfigSkeleton::ItemBool  *itemShowShadows;
  itemShowShadows = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "Shadows_on" ), mShowShadows, false );
  addItem( itemShowShadows, TQString::fromLatin1( "ShowShadows" ) );
  TDEConfigSkeleton::ItemBool  *itemSolvableGames;
  itemSolvableGames = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "Solvable_game" ), mSolvableGames, true );
  addItem( itemSolvableGames, TQString::fromLatin1( "SolvableGames" ) );
  TDEConfigSkeleton::ItemBool  *itemTiledBackground;
  itemTiledBackground = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "Background_tiled" ), mTiledBackground, true );
  addItem( itemTiledBackground, TQString::fromLatin1( "TiledBackground" ) );
  TDEConfigSkeleton::ItemBool  *itemPlayAnimation;
  itemPlayAnimation = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "Play_animation" ), mPlayAnimation, true );
  addItem( itemPlayAnimation, TQString::fromLatin1( "PlayAnimation" ) );
  TDEConfigSkeleton::ItemBool  *itemShowMatchingTiles;
  itemShowMatchingTiles = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowMatchingTiles" ), mShowMatchingTiles, false );
  addItem( itemShowMatchingTiles, TQString::fromLatin1( "ShowMatchingTiles" ) );
}

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

