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

#include "windowgeometryconfig.h"

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

using namespace KWin;

namespace KWin {

class WindowGeometryConfigurationHelper
{
  public:
    WindowGeometryConfigurationHelper() : q(0) {}
    ~WindowGeometryConfigurationHelper() { delete q; }
    WindowGeometryConfiguration *q;
};
}

K_GLOBAL_STATIC(WindowGeometryConfigurationHelper, s_globalWindowGeometryConfiguration)
WindowGeometryConfiguration *WindowGeometryConfiguration::self()
{
  if (!s_globalWindowGeometryConfiguration->q) {
    new WindowGeometryConfiguration;
    s_globalWindowGeometryConfiguration->q->readConfig();
  }

  return s_globalWindowGeometryConfiguration->q;
}

WindowGeometryConfiguration::WindowGeometryConfiguration(  )
  : KConfigSkeleton( QLatin1String( "kwinrc" ) )
{
  Q_ASSERT(!s_globalWindowGeometryConfiguration->q);
  s_globalWindowGeometryConfiguration->q = this;
  setCurrentGroup( QLatin1String( "Effect-WindowGeometry" ) );

  KConfigSkeleton::ItemBool  *itemMove;
  itemMove = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Move" ), mMove, true );
  addItem( itemMove, QLatin1String( "Move" ) );
  KConfigSkeleton::ItemBool  *itemResize;
  itemResize = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Resize" ), mResize, true );
  addItem( itemResize, QLatin1String( "Resize" ) );
}

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

