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

#include "windowgeometryconfig.h"

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

using namespace KWin;

namespace KWin {

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

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

  return s_globalWindowGeometryConfiguration()->q;
}

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

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

WindowGeometryConfiguration::~WindowGeometryConfiguration()
{
  s_globalWindowGeometryConfiguration()->q = 0;
}

