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

#include "cubeslideconfig.h"

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

using namespace KWin;

namespace KWin {

class CubeSlideConfigHelper
{
  public:
    CubeSlideConfigHelper() : q(0) {}
    ~CubeSlideConfigHelper() { delete q; }
    CubeSlideConfig *q;
};
}

Q_GLOBAL_STATIC(CubeSlideConfigHelper, s_globalCubeSlideConfig)
CubeSlideConfig *CubeSlideConfig::self()
{
  if (!s_globalCubeSlideConfig()->q) {
    new CubeSlideConfig;
    s_globalCubeSlideConfig()->q->read();
  }

  return s_globalCubeSlideConfig()->q;
}

CubeSlideConfig::CubeSlideConfig(  )
  : KConfigSkeleton( QStringLiteral( "kwinrc" ) )
{
  Q_ASSERT(!s_globalCubeSlideConfig()->q);
  s_globalCubeSlideConfig()->q = this;
  setCurrentGroup( QStringLiteral( "Effect-CubeSlide" ) );

  KConfigSkeleton::ItemInt  *itemRotationDuration;
  itemRotationDuration = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "RotationDuration" ), mRotationDuration, 0 );
  addItem( itemRotationDuration, QStringLiteral( "RotationDuration" ) );
  KConfigSkeleton::ItemBool  *itemDontSlidePanels;
  itemDontSlidePanels = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "DontSlidePanels" ), mDontSlidePanels, true );
  addItem( itemDontSlidePanels, QStringLiteral( "DontSlidePanels" ) );
  KConfigSkeleton::ItemBool  *itemDontSlideStickyWindows;
  itemDontSlideStickyWindows = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "DontSlideStickyWindows" ), mDontSlideStickyWindows, false );
  addItem( itemDontSlideStickyWindows, QStringLiteral( "DontSlideStickyWindows" ) );
  KConfigSkeleton::ItemBool  *itemUsePagerLayout;
  itemUsePagerLayout = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "UsePagerLayout" ), mUsePagerLayout, true );
  addItem( itemUsePagerLayout, QStringLiteral( "UsePagerLayout" ) );
  KConfigSkeleton::ItemBool  *itemUseWindowMoving;
  itemUseWindowMoving = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "UseWindowMoving" ), mUseWindowMoving, false );
  addItem( itemUseWindowMoving, QStringLiteral( "UseWindowMoving" ) );
}

CubeSlideConfig::~CubeSlideConfig()
{
  s_globalCubeSlideConfig()->q = 0;
}

