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

#include "diminactiveconfig.h"

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

using namespace KWin;

namespace KWin {

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

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

  return s_globalDimInactiveConfig->q;
}

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

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

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

