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

#include "cubeslideconfig.h"

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

using namespace KWin;

namespace KWin {

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

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

  return s_globalCubeSlideConfig->q;
}

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

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

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

