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

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

#include <factory.h>
#include <piece.h>
class BasePrefs : public TDEConfigSkeleton
{
  public:

    static BasePrefs *self();
    ~BasePrefs();

    /**
      Set Size of the blocks.
    */
    static
    void setBlockSize( int v )
    {
      if (v < 4)
      {
        kdDebug() << "setBlockSize: value " << v << " is less than the minimum value of 4" << endl;
        v = 4;
      }

      if (v > 100)
      {
        kdDebug() << "setBlockSize: value " << v << " is greater than the maximum value of 100" << endl;
        v = 100;
      }

      if (!self()->isImmutable( TQString::fromLatin1( "BlockSize" ) ))
        self()->mBlockSize = v;
    }

    /**
      Get Size of the blocks.
    */
    static
    int blockSize()
    {
      return self()->mBlockSize;
    }


    /**
      Get Fade intensity.
    */
    static
    double fadeIntensity()
    {
      return self()->mFadeIntensity;
    }


    /**
      Get Fade color.
    */
    static
    TQColor fadeColor()
    {
      return self()->mFadeColor;
    }


    /**
      Get Animations enabled.
    */
    static
    bool animationsEnabled()
    {
      return self()->mAnimationsEnabled;
    }

    /**
      Set Menubar visible.
    */
    static
    void setMenubarVisible( bool v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "MenubarVisible" ) ))
        self()->mMenubarVisible = v;
    }

    /**
      Get Menubar visible.
    */
    static
    bool menubarVisible()
    {
      return self()->mMenubarVisible;
    }


    /**
      Get Block colors.
    */
    static
    TQColor color( int i )
    {
      return self()->mColor[i];
    }

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


    // Options
    int mBlockSize;
    double mFadeIntensity;
    TQColor mFadeColor;
    bool mAnimationsEnabled;
    bool mMenubarVisible;
    TQColor mColor[11];

  private:
};

#endif

