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

#include "desktopgridconfig.h"

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

using namespace KWin;

namespace KWin {

class DesktopGridConfigHelper
{
  public:
    DesktopGridConfigHelper() : q(0) {}
    ~DesktopGridConfigHelper() { delete q; }
    DesktopGridConfig *q;
};
}

Q_GLOBAL_STATIC(DesktopGridConfigHelper, s_globalDesktopGridConfig)
DesktopGridConfig *DesktopGridConfig::self()
{
  if (!s_globalDesktopGridConfig()->q) {
    new DesktopGridConfig;
    s_globalDesktopGridConfig()->q->read();
  }

  return s_globalDesktopGridConfig()->q;
}

DesktopGridConfig::DesktopGridConfig(  )
  : KConfigSkeleton( QStringLiteral( "kwinrc" ) )
{
  Q_ASSERT(!s_globalDesktopGridConfig()->q);
  s_globalDesktopGridConfig()->q = this;
  setCurrentGroup( QStringLiteral( "Effect-DesktopGrid" ) );

  QList<int> defaultBorderActivate;

  KConfigSkeleton::ItemIntList  *itemBorderActivate;
  itemBorderActivate = new KConfigSkeleton::ItemIntList( currentGroup(), QStringLiteral( "BorderActivate" ), mBorderActivate, defaultBorderActivate );
  addItem( itemBorderActivate, QStringLiteral( "BorderActivate" ) );
  KConfigSkeleton::ItemInt  *itemZoomDuration;
  itemZoomDuration = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "ZoomDuration" ), mZoomDuration, 0 );
  addItem( itemZoomDuration, QStringLiteral( "ZoomDuration" ) );
  KConfigSkeleton::ItemInt  *itemBorderWidth;
  itemBorderWidth = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "BorderWidth" ), mBorderWidth, 10 );
  addItem( itemBorderWidth, QStringLiteral( "BorderWidth" ) );
  KConfigSkeleton::ItemInt  *itemDesktopNameAlignment;
  itemDesktopNameAlignment = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "DesktopNameAlignment" ), mDesktopNameAlignment, 0 );
  addItem( itemDesktopNameAlignment, QStringLiteral( "DesktopNameAlignment" ) );
  KConfigSkeleton::ItemInt  *itemLayoutMode;
  itemLayoutMode = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "LayoutMode" ), mLayoutMode, 0 );
  addItem( itemLayoutMode, QStringLiteral( "LayoutMode" ) );
  KConfigSkeleton::ItemInt  *itemCustomLayoutRows;
  itemCustomLayoutRows = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "CustomLayoutRows" ), mCustomLayoutRows, 2 );
  addItem( itemCustomLayoutRows, QStringLiteral( "CustomLayoutRows" ) );
  KConfigSkeleton::ItemBool  *itemPresentWindows;
  itemPresentWindows = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "PresentWindows" ), mPresentWindows, true );
  addItem( itemPresentWindows, QStringLiteral( "PresentWindows" ) );
}

DesktopGridConfig::~DesktopGridConfig()
{
  s_globalDesktopGridConfig()->q = 0;
}

