// This file is generated by kconfig_compiler from resize.kcfg.
// All changes you do to this file will be lost.

#include "resizeconfig.h"

#include <kglobal.h>
#include <QtCore/QFile>

using namespace KWin;

namespace KWin {

class ResizeConfigHelper
{
  public:
    ResizeConfigHelper() : q(0) {}
    ~ResizeConfigHelper() { delete q; }
    ResizeConfig *q;
};
}

K_GLOBAL_STATIC(ResizeConfigHelper, s_globalResizeConfig)
ResizeConfig *ResizeConfig::self()
{
  if (!s_globalResizeConfig->q) {
    new ResizeConfig;
    s_globalResizeConfig->q->readConfig();
  }

  return s_globalResizeConfig->q;
}

ResizeConfig::ResizeConfig(  )
  : KConfigSkeleton( QLatin1String( "kwinrc" ) )
{
  Q_ASSERT(!s_globalResizeConfig->q);
  s_globalResizeConfig->q = this;
  setCurrentGroup( QLatin1String( "Effect-Resize" ) );

  KConfigSkeleton::ItemBool  *itemTextureScale;
  itemTextureScale = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "TextureScale" ), mTextureScale, true );
  addItem( itemTextureScale, QLatin1String( "TextureScale" ) );
  KConfigSkeleton::ItemBool  *itemOutline;
  itemOutline = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Outline" ), mOutline, false );
  addItem( itemOutline, QLatin1String( "Outline" ) );
}

ResizeConfig::~ResizeConfig()
{
  if (!s_globalResizeConfig.isDestroyed()) {
    s_globalResizeConfig->q = 0;
  }
}

