// This file is generated by tdeconfig_compiler from kmahjongg.kcfg.
// All changes you do to this file will be lost.
#ifndef PREFS_H
#define PREFS_H

#include <tdeconfigskeleton.h>
#include <kdebug.h>

class Prefs : public TDEConfigSkeleton
{
  public:

    static Prefs *self();
    ~Prefs();

    /**
      Set The tile-set to use.
    */
    static
    void setTileSet( const TQString & v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "TileSet" ) ))
        self()->mTileSet = v;
    }

    /**
      Get The tile-set to use.
    */
    static
    TQString tileSet()
    {
      return self()->mTileSet;
    }

    /**
      Set The background to use.
    */
    static
    void setBackground( const TQString & v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "Background" ) ))
        self()->mBackground = v;
    }

    /**
      Get The background to use.
    */
    static
    TQString background()
    {
      return self()->mBackground;
    }

    /**
      Set The layout of the tiles.
    */
    static
    void setLayout( const TQString & v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "Layout" ) ))
        self()->mLayout = v;
    }

    /**
      Get The layout of the tiles.
    */
    static
    TQString layout()
    {
      return self()->mLayout;
    }

    /**
      Set Whether to show removed tiles.
    */
    static
    void setShowRemoved( bool v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "ShowRemoved" ) ))
        self()->mShowRemoved = v;
    }

    /**
      Get Whether to show removed tiles.
    */
    static
    bool showRemoved()
    {
      return self()->mShowRemoved;
    }

    /**
      Set Whether to use miniature tiles.
    */
    static
    void setMiniTiles( bool v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "MiniTiles" ) ))
        self()->mMiniTiles = v;
    }

    /**
      Get Whether to use miniature tiles.
    */
    static
    bool miniTiles()
    {
      return self()->mMiniTiles;
    }

    /**
      Set Whether the tiles have shadows.
    */
    static
    void setShowShadows( bool v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "ShowShadows" ) ))
        self()->mShowShadows = v;
    }

    /**
      Get Whether the tiles have shadows.
    */
    static
    bool showShadows()
    {
      return self()->mShowShadows;
    }

    /**
      Set Whether all games should be solvable.
    */
    static
    void setSolvableGames( bool v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "SolvableGames" ) ))
        self()->mSolvableGames = v;
    }

    /**
      Get Whether all games should be solvable.
    */
    static
    bool solvableGames()
    {
      return self()->mSolvableGames;
    }

    /**
      Set Whether the background should be tiled instead of scaled.
    */
    static
    void setTiledBackground( bool v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "TiledBackground" ) ))
        self()->mTiledBackground = v;
    }

    /**
      Get Whether the background should be tiled instead of scaled.
    */
    static
    bool tiledBackground()
    {
      return self()->mTiledBackground;
    }

    /**
      Set Whether an animation should be played on victory.
    */
    static
    void setPlayAnimation( bool v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "PlayAnimation" ) ))
        self()->mPlayAnimation = v;
    }

    /**
      Get Whether an animation should be played on victory.
    */
    static
    bool playAnimation()
    {
      return self()->mPlayAnimation;
    }

    /**
      Set Whether matching tiles are shown.
    */
    static
    void setShowMatchingTiles( bool v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "ShowMatchingTiles" ) ))
        self()->mShowMatchingTiles = v;
    }

    /**
      Get Whether matching tiles are shown.
    */
    static
    bool showMatchingTiles()
    {
      return self()->mShowMatchingTiles;
    }

    static
    void writeConfig()
    {
      static_cast<TDEConfigSkeleton*>(self())->writeConfig();
    }
  protected:
    Prefs();
    static Prefs *mSelf;


    // General
    TQString mTileSet;
    TQString mBackground;
    TQString mLayout;
    bool mShowRemoved;
    bool mMiniTiles;
    bool mShowShadows;
    bool mSolvableGames;
    bool mTiledBackground;
    bool mPlayAnimation;
    bool mShowMatchingTiles;

  private:
};

#endif

