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

#include "diminactiveconfig.h"

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

using namespace KWin;

namespace KWin {

class DimInactiveConfigHelper
{
  public:
    DimInactiveConfigHelper() : q(0) {}
    ~DimInactiveConfigHelper() { delete q; }
    DimInactiveConfig *q;
};
}

Q_GLOBAL_STATIC(DimInactiveConfigHelper, s_globalDimInactiveConfig)
DimInactiveConfig *DimInactiveConfig::self()
{
  if (!s_globalDimInactiveConfig()->q) {
    new DimInactiveConfig;
    s_globalDimInactiveConfig()->q->read();
  }

  return s_globalDimInactiveConfig()->q;
}

DimInactiveConfig::DimInactiveConfig(  )
  : KConfigSkeleton( QStringLiteral( "kwinrc" ) )
{
  Q_ASSERT(!s_globalDimInactiveConfig()->q);
  s_globalDimInactiveConfig()->q = this;
  setCurrentGroup( QStringLiteral( "Effect-DimInactive" ) );

  KConfigSkeleton::ItemInt  *itemStrength;
  itemStrength = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "Strength" ), mStrength, 25 );
  addItem( itemStrength, QStringLiteral( "Strength" ) );
  KConfigSkeleton::ItemBool  *itemDimPanels;
  itemDimPanels = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "DimPanels" ), mDimPanels, false );
  addItem( itemDimPanels, QStringLiteral( "DimPanels" ) );
  KConfigSkeleton::ItemBool  *itemDimDesktop;
  itemDimDesktop = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "DimDesktop" ), mDimDesktop, false );
  addItem( itemDimDesktop, QStringLiteral( "DimDesktop" ) );
  KConfigSkeleton::ItemBool  *itemDimKeepAbove;
  itemDimKeepAbove = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "DimKeepAbove" ), mDimKeepAbove, false );
  addItem( itemDimKeepAbove, QStringLiteral( "DimKeepAbove" ) );
  KConfigSkeleton::ItemBool  *itemDimByGroup;
  itemDimByGroup = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "DimByGroup" ), mDimByGroup, true );
  addItem( itemDimByGroup, QStringLiteral( "DimByGroup" ) );
}

DimInactiveConfig::~DimInactiveConfig()
{
  s_globalDimInactiveConfig()->q = 0;
}

