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

#include "zoomconfig.h"

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

using namespace KWin;

namespace KWin {

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

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

  return s_globalZoomConfig()->q;
}

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

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

ZoomConfig::~ZoomConfig()
{
  s_globalZoomConfig()->q = 0;
}

