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

#include "wobblywindowsconfig.h"

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

using namespace KWin;

namespace KWin {

class WobblyWindowsConfigHelper
{
  public:
    WobblyWindowsConfigHelper() : q(0) {}
    ~WobblyWindowsConfigHelper() { delete q; }
    WobblyWindowsConfig *q;
};
}

K_GLOBAL_STATIC(WobblyWindowsConfigHelper, s_globalWobblyWindowsConfig)
WobblyWindowsConfig *WobblyWindowsConfig::self()
{
  if (!s_globalWobblyWindowsConfig->q) {
    new WobblyWindowsConfig;
    s_globalWobblyWindowsConfig->q->readConfig();
  }

  return s_globalWobblyWindowsConfig->q;
}

WobblyWindowsConfig::WobblyWindowsConfig(  )
  : KConfigSkeleton( QLatin1String( "kwinrc" ) )
{
  Q_ASSERT(!s_globalWobblyWindowsConfig->q);
  s_globalWobblyWindowsConfig->q = this;
  setCurrentGroup( QLatin1String( "Effect-Wobbly" ) );

  KConfigSkeleton::ItemUInt  *itemWobblynessLevel;
  itemWobblynessLevel = new KConfigSkeleton::ItemUInt( currentGroup(), QLatin1String( "WobblynessLevel" ), mWobblynessLevel, 0 );
  addItem( itemWobblynessLevel, QLatin1String( "WobblynessLevel" ) );
  KConfigSkeleton::ItemString  *itemSettings;
  itemSettings = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "Settings" ), mSettings, QLatin1String( "Auto" ) );
  addItem( itemSettings, QLatin1String( "Settings" ) );
  KConfigSkeleton::ItemBool  *itemMoveWobble;
  itemMoveWobble = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "MoveWobble" ), mMoveWobble, true );
  addItem( itemMoveWobble, QLatin1String( "MoveWobble" ) );
  KConfigSkeleton::ItemBool  *itemResizeWobble;
  itemResizeWobble = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ResizeWobble" ), mResizeWobble, true );
  addItem( itemResizeWobble, QLatin1String( "ResizeWobble" ) );
  KConfigSkeleton::ItemBool  *itemAdvancedMode;
  itemAdvancedMode = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "AdvancedMode" ), mAdvancedMode, false );
  addItem( itemAdvancedMode, QLatin1String( "AdvancedMode" ) );
  KConfigSkeleton::ItemDouble  *itemStiffness;
  itemStiffness = new KConfigSkeleton::ItemDouble( currentGroup(), QLatin1String( "Stiffness" ), mStiffness, 15 );
  addItem( itemStiffness, QLatin1String( "Stiffness" ) );
  KConfigSkeleton::ItemDouble  *itemDrag;
  itemDrag = new KConfigSkeleton::ItemDouble( currentGroup(), QLatin1String( "Drag" ), mDrag, 80 );
  addItem( itemDrag, QLatin1String( "Drag" ) );
  KConfigSkeleton::ItemDouble  *itemMoveFactor;
  itemMoveFactor = new KConfigSkeleton::ItemDouble( currentGroup(), QLatin1String( "MoveFactor" ), mMoveFactor, 10 );
  addItem( itemMoveFactor, QLatin1String( "MoveFactor" ) );
  KConfigSkeleton::ItemDouble  *itemXTesselation;
  itemXTesselation = new KConfigSkeleton::ItemDouble( currentGroup(), QLatin1String( "XTesselation" ), mXTesselation, 20 );
  addItem( itemXTesselation, QLatin1String( "XTesselation" ) );
  KConfigSkeleton::ItemDouble  *itemYTesselation;
  itemYTesselation = new KConfigSkeleton::ItemDouble( currentGroup(), QLatin1String( "YTesselation" ), mYTesselation, 20 );
  addItem( itemYTesselation, QLatin1String( "YTesselation" ) );
  KConfigSkeleton::ItemDouble  *itemMinVelocity;
  itemMinVelocity = new KConfigSkeleton::ItemDouble( currentGroup(), QLatin1String( "MinVelocity" ), mMinVelocity, 0.0 );
  addItem( itemMinVelocity, QLatin1String( "MinVelocity" ) );
  KConfigSkeleton::ItemDouble  *itemMaxVelocity;
  itemMaxVelocity = new KConfigSkeleton::ItemDouble( currentGroup(), QLatin1String( "MaxVelocity" ), mMaxVelocity, 1000.0 );
  addItem( itemMaxVelocity, QLatin1String( "MaxVelocity" ) );
  KConfigSkeleton::ItemDouble  *itemStopVelocity;
  itemStopVelocity = new KConfigSkeleton::ItemDouble( currentGroup(), QLatin1String( "StopVelocity" ), mStopVelocity, 0.5 );
  addItem( itemStopVelocity, QLatin1String( "StopVelocity" ) );
  KConfigSkeleton::ItemDouble  *itemMinAcceleration;
  itemMinAcceleration = new KConfigSkeleton::ItemDouble( currentGroup(), QLatin1String( "MinAcceleration" ), mMinAcceleration, 0.0 );
  addItem( itemMinAcceleration, QLatin1String( "MinAcceleration" ) );
  KConfigSkeleton::ItemDouble  *itemMaxAcceleration;
  itemMaxAcceleration = new KConfigSkeleton::ItemDouble( currentGroup(), QLatin1String( "MaxAcceleration" ), mMaxAcceleration, 1000.0 );
  addItem( itemMaxAcceleration, QLatin1String( "MaxAcceleration" ) );
  KConfigSkeleton::ItemDouble  *itemStopAcceleration;
  itemStopAcceleration = new KConfigSkeleton::ItemDouble( currentGroup(), QLatin1String( "StopAcceleration" ), mStopAcceleration, 5.0 );
  addItem( itemStopAcceleration, QLatin1String( "StopAcceleration" ) );
  KConfigSkeleton::ItemBool  *itemMoveEffect;
  itemMoveEffect = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "MoveEffect" ), mMoveEffect, true );
  addItem( itemMoveEffect, QLatin1String( "MoveEffect" ) );
  KConfigSkeleton::ItemBool  *itemOpenEffect;
  itemOpenEffect = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "OpenEffect" ), mOpenEffect, false );
  addItem( itemOpenEffect, QLatin1String( "OpenEffect" ) );
  KConfigSkeleton::ItemBool  *itemCloseEffect;
  itemCloseEffect = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "CloseEffect" ), mCloseEffect, false );
  addItem( itemCloseEffect, QLatin1String( "CloseEffect" ) );
}

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

