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

#include "thumbnailasideconfig.h"

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

using namespace KWin;

namespace KWin {

class ThumbnailAsideConfigHelper
{
  public:
    ThumbnailAsideConfigHelper() : q(0) {}
    ~ThumbnailAsideConfigHelper() { delete q; }
    ThumbnailAsideConfig *q;
};
}

K_GLOBAL_STATIC(ThumbnailAsideConfigHelper, s_globalThumbnailAsideConfig)
ThumbnailAsideConfig *ThumbnailAsideConfig::self()
{
  if (!s_globalThumbnailAsideConfig->q) {
    new ThumbnailAsideConfig;
    s_globalThumbnailAsideConfig->q->readConfig();
  }

  return s_globalThumbnailAsideConfig->q;
}

ThumbnailAsideConfig::ThumbnailAsideConfig(  )
  : KConfigSkeleton( QLatin1String( "kwinrc" ) )
{
  Q_ASSERT(!s_globalThumbnailAsideConfig->q);
  s_globalThumbnailAsideConfig->q = this;
  setCurrentGroup( QLatin1String( "Effect-ThumbnailAside" ) );

  KConfigSkeleton::ItemInt  *itemMaxWidth;
  itemMaxWidth = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "MaxWidth" ), mMaxWidth, 200 );
  addItem( itemMaxWidth, QLatin1String( "MaxWidth" ) );
  KConfigSkeleton::ItemInt  *itemSpacing;
  itemSpacing = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "Spacing" ), mSpacing, 10 );
  addItem( itemSpacing, QLatin1String( "Spacing" ) );
  KConfigSkeleton::ItemDouble  *itemOpacity;
  itemOpacity = new KConfigSkeleton::ItemDouble( currentGroup(), QLatin1String( "Opacity" ), mOpacity, 50 );
  addItem( itemOpacity, QLatin1String( "Opacity" ) );
  KConfigSkeleton::ItemInt  *itemScreen;
  itemScreen = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "Screen" ), mScreen, -1 );
  addItem( itemScreen, QLatin1String( "Screen" ) );
}

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

