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

#include "cubeconfig.h"

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

using namespace KWin;

namespace KWin {

class CubeConfigHelper
{
  public:
    CubeConfigHelper() : q(0) {}
    ~CubeConfigHelper() { delete q; }
    CubeConfig *q;
};
}

K_GLOBAL_STATIC(CubeConfigHelper, s_globalCubeConfig)
CubeConfig *CubeConfig::self()
{
  if (!s_globalCubeConfig->q) {
    new CubeConfig;
    s_globalCubeConfig->q->readConfig();
  }

  return s_globalCubeConfig->q;
}

CubeConfig::CubeConfig(  )
  : KConfigSkeleton( QLatin1String( "kwinrc" ) )
{
  Q_ASSERT(!s_globalCubeConfig->q);
  s_globalCubeConfig->q = this;
  setCurrentGroup( QLatin1String( "Effect-Cube" ) );

  QList<int> defaultBorderActivate;

  KConfigSkeleton::ItemIntList  *itemBorderActivate;
  itemBorderActivate = new KConfigSkeleton::ItemIntList( currentGroup(), QLatin1String( "BorderActivate" ), mBorderActivate, defaultBorderActivate );
  addItem( itemBorderActivate, QLatin1String( "BorderActivate" ) );
  QList<int> defaultBorderActivateCylinder;

  KConfigSkeleton::ItemIntList  *itemBorderActivateCylinder;
  itemBorderActivateCylinder = new KConfigSkeleton::ItemIntList( currentGroup(), QLatin1String( "BorderActivateCylinder" ), mBorderActivateCylinder, defaultBorderActivateCylinder );
  addItem( itemBorderActivateCylinder, QLatin1String( "BorderActivateCylinder" ) );
  QList<int> defaultBorderActivateSphere;

  KConfigSkeleton::ItemIntList  *itemBorderActivateSphere;
  itemBorderActivateSphere = new KConfigSkeleton::ItemIntList( currentGroup(), QLatin1String( "BorderActivateSphere" ), mBorderActivateSphere, defaultBorderActivateSphere );
  addItem( itemBorderActivateSphere, QLatin1String( "BorderActivateSphere" ) );
  KConfigSkeleton::ItemInt  *itemRotationDuration;
  itemRotationDuration = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "RotationDuration" ), mRotationDuration, 0 );
  addItem( itemRotationDuration, QLatin1String( "RotationDuration" ) );
  KConfigSkeleton::ItemInt  *itemOpacity;
  itemOpacity = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "Opacity" ), mOpacity, 80 );
  addItem( itemOpacity, QLatin1String( "Opacity" ) );
  KConfigSkeleton::ItemBool  *itemOpacityDesktopOnly;
  itemOpacityDesktopOnly = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "OpacityDesktopOnly" ), mOpacityDesktopOnly, false );
  addItem( itemOpacityDesktopOnly, QLatin1String( "OpacityDesktopOnly" ) );
  KConfigSkeleton::ItemBool  *itemDisplayDesktopName;
  itemDisplayDesktopName = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "DisplayDesktopName" ), mDisplayDesktopName, true );
  addItem( itemDisplayDesktopName, QLatin1String( "DisplayDesktopName" ) );
  KConfigSkeleton::ItemBool  *itemReflection;
  itemReflection = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Reflection" ), mReflection, true );
  addItem( itemReflection, QLatin1String( "Reflection" ) );
  KConfigSkeleton::ItemColor  *itemBackgroundColor;
  itemBackgroundColor = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "BackgroundColor" ), mBackgroundColor, QColor(Qt::black) );
  addItem( itemBackgroundColor, QLatin1String( "BackgroundColor" ) );
  KConfigSkeleton::ItemColor  *itemCapColor;
  itemCapColor = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "CapColor" ), mCapColor, QColor(KColorScheme(QPalette::Active, KColorScheme::Window).background().color()) );
  addItem( itemCapColor, QLatin1String( "CapColor" ) );
  KConfigSkeleton::ItemString  *itemCapPath;
  itemCapPath = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "CapPath" ), mCapPath, KGlobal::dirs()->findResource("appdata", "cubecap.png") );
  addItem( itemCapPath, QLatin1String( "CapPath" ) );
  KConfigSkeleton::ItemBool  *itemTexturedCaps;
  itemTexturedCaps = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "TexturedCaps" ), mTexturedCaps, true );
  addItem( itemTexturedCaps, QLatin1String( "TexturedCaps" ) );
  KConfigSkeleton::ItemBool  *itemCaps;
  itemCaps = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Caps" ), mCaps, true );
  addItem( itemCaps, QLatin1String( "Caps" ) );
  KConfigSkeleton::ItemBool  *itemCloseOnMouseRelease;
  itemCloseOnMouseRelease = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "CloseOnMouseRelease" ), mCloseOnMouseRelease, false );
  addItem( itemCloseOnMouseRelease, QLatin1String( "CloseOnMouseRelease" ) );
  KConfigSkeleton::ItemBool  *itemTabBox;
  itemTabBox = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "TabBox" ), mTabBox, false );
  addItem( itemTabBox, QLatin1String( "TabBox" ) );
  KConfigSkeleton::ItemInt  *itemZPosition;
  itemZPosition = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "ZPosition" ), mZPosition, 100 );
  addItem( itemZPosition, QLatin1String( "ZPosition" ) );
  KConfigSkeleton::ItemUrl  *itemWallpaper;
  itemWallpaper = new KConfigSkeleton::ItemUrl( currentGroup(), QLatin1String( "Wallpaper" ), mWallpaper );
  addItem( itemWallpaper, QLatin1String( "Wallpaper" ) );
  KConfigSkeleton::ItemInt  *itemCapDeformation;
  itemCapDeformation = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "CapDeformation" ), mCapDeformation, 0 );
  addItem( itemCapDeformation, QLatin1String( "CapDeformation" ) );
  KConfigSkeleton::ItemBool  *itemInvertKeys;
  itemInvertKeys = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "InvertKeys" ), mInvertKeys, false );
  addItem( itemInvertKeys, QLatin1String( "InvertKeys" ) );
  KConfigSkeleton::ItemBool  *itemInvertMouse;
  itemInvertMouse = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "InvertMouse" ), mInvertMouse, false );
  addItem( itemInvertMouse, QLatin1String( "InvertMouse" ) );
  KConfigSkeleton::ItemBool  *itemZOrdering;
  itemZOrdering = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ZOrdering" ), mZOrdering, false );
  addItem( itemZOrdering, QLatin1String( "ZOrdering" ) );
}

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

