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

#include "zoomconfig.h"

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

using namespace KWin;

namespace KWin {

class ZoomConfigHelper
{
  public:
    ZoomConfigHelper() : q(0) {}
    ~ZoomConfigHelper() { delete q; }
    ZoomConfig *q;
};
}

K_GLOBAL_STATIC(ZoomConfigHelper, s_globalZoomConfig)
ZoomConfig *ZoomConfig::self()
{
  if (!s_globalZoomConfig->q) {
    new ZoomConfig;
    s_globalZoomConfig->q->readConfig();
  }

  return s_globalZoomConfig->q;
}

ZoomConfig::ZoomConfig(  )
  : KConfigSkeleton( QLatin1String( "kwinrc" ) )
{
  Q_ASSERT(!s_globalZoomConfig->q);
  s_globalZoomConfig->q = this;
  setCurrentGroup( QLatin1String( "Effect-Zoom" ) );

  KConfigSkeleton::ItemDouble  *itemZoomFactor;
  itemZoomFactor = new KConfigSkeleton::ItemDouble( currentGroup(), QLatin1String( "ZoomFactor" ), mZoomFactor, 1.2 );
  addItem( itemZoomFactor, QLatin1String( "ZoomFactor" ) );
  KConfigSkeleton::ItemUInt  *itemMousePointer;
  itemMousePointer = new KConfigSkeleton::ItemUInt( currentGroup(), QLatin1String( "MousePointer" ), mMousePointer, 0 );
  addItem( itemMousePointer, QLatin1String( "MousePointer" ) );
  KConfigSkeleton::ItemUInt  *itemMouseTracking;
  itemMouseTracking = new KConfigSkeleton::ItemUInt( currentGroup(), QLatin1String( "MouseTracking" ), mMouseTracking, 0 );
  addItem( itemMouseTracking, QLatin1String( "MouseTracking" ) );
  KConfigSkeleton::ItemBool  *itemEnableFocusTracking;
  itemEnableFocusTracking = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "EnableFocusTracking" ), mEnableFocusTracking, false );
  addItem( itemEnableFocusTracking, QLatin1String( "EnableFocusTracking" ) );
  KConfigSkeleton::ItemBool  *itemEnableFollowFocus;
  itemEnableFollowFocus = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "EnableFollowFocus" ), mEnableFollowFocus, true );
  addItem( itemEnableFollowFocus, QLatin1String( "EnableFollowFocus" ) );
  KConfigSkeleton::ItemUInt  *itemFocusDelay;
  itemFocusDelay = new KConfigSkeleton::ItemUInt( currentGroup(), QLatin1String( "FocusDelay" ), mFocusDelay, 350 );
  addItem( itemFocusDelay, QLatin1String( "FocusDelay" ) );
  KConfigSkeleton::ItemDouble  *itemMoveFactor;
  itemMoveFactor = new KConfigSkeleton::ItemDouble( currentGroup(), QLatin1String( "MoveFactor" ), mMoveFactor, 20.0 );
  addItem( itemMoveFactor, QLatin1String( "MoveFactor" ) );
  KConfigSkeleton::ItemDouble  *itemInitialZoom;
  itemInitialZoom = new KConfigSkeleton::ItemDouble( currentGroup(), QLatin1String( "InitialZoom" ), mInitialZoom, 1.0 );
  addItem( itemInitialZoom, QLatin1String( "InitialZoom" ) );
}

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

