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

#include "glideconfig.h"

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

using namespace KWin;

namespace KWin {

class GlideConfigHelper
{
  public:
    GlideConfigHelper() : q(0) {}
    ~GlideConfigHelper() { delete q; }
    GlideConfig *q;
};
}

Q_GLOBAL_STATIC(GlideConfigHelper, s_globalGlideConfig)
GlideConfig *GlideConfig::self()
{
  if (!s_globalGlideConfig()->q) {
    new GlideConfig;
    s_globalGlideConfig()->q->read();
  }

  return s_globalGlideConfig()->q;
}

GlideConfig::GlideConfig(  )
  : KConfigSkeleton( QStringLiteral( "kwinrc" ) )
{
  Q_ASSERT(!s_globalGlideConfig()->q);
  s_globalGlideConfig()->q = this;
  setCurrentGroup( QStringLiteral( "Effect-Glide" ) );

  KConfigSkeleton::ItemUInt  *itemDuration;
  itemDuration = new KConfigSkeleton::ItemUInt( currentGroup(), QStringLiteral( "Duration" ), mDuration, 0 );
  addItem( itemDuration, QStringLiteral( "Duration" ) );
  KConfigSkeleton::ItemInt  *itemGlideEffect;
  itemGlideEffect = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "GlideEffect" ), mGlideEffect, 0 );
  addItem( itemGlideEffect, QStringLiteral( "GlideEffect" ) );
  KConfigSkeleton::ItemInt  *itemGlideAngle;
  itemGlideAngle = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "GlideAngle" ), mGlideAngle, -90 );
  addItem( itemGlideAngle, QStringLiteral( "GlideAngle" ) );
}

GlideConfig::~GlideConfig()
{
  s_globalGlideConfig()->q = 0;
}

