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

#include "mouseclickconfig.h"

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

using namespace KWin;

namespace KWin {

class MouseClickConfigHelper
{
  public:
    MouseClickConfigHelper() : q(0) {}
    ~MouseClickConfigHelper() { delete q; }
    MouseClickConfig *q;
};
}

K_GLOBAL_STATIC(MouseClickConfigHelper, s_globalMouseClickConfig)
MouseClickConfig *MouseClickConfig::self()
{
  if (!s_globalMouseClickConfig->q) {
    new MouseClickConfig;
    s_globalMouseClickConfig->q->readConfig();
  }

  return s_globalMouseClickConfig->q;
}

MouseClickConfig::MouseClickConfig(  )
  : KConfigSkeleton( QLatin1String( "kwinrc" ) )
{
  Q_ASSERT(!s_globalMouseClickConfig->q);
  s_globalMouseClickConfig->q = this;
  setCurrentGroup( QLatin1String( "Effect-MouseClick" ) );

  KConfigSkeleton::ItemColor  *itemColor1;
  itemColor1 = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "Color1" ), mColor1, QColor(Qt::red) );
  addItem( itemColor1, QLatin1String( "Color1" ) );
  KConfigSkeleton::ItemColor  *itemColor2;
  itemColor2 = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "Color2" ), mColor2, QColor(Qt::green) );
  addItem( itemColor2, QLatin1String( "Color2" ) );
  KConfigSkeleton::ItemColor  *itemColor3;
  itemColor3 = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "Color3" ), mColor3, QColor(Qt::blue) );
  addItem( itemColor3, QLatin1String( "Color3" ) );
  KConfigSkeleton::ItemDouble  *itemLineWidth;
  itemLineWidth = new KConfigSkeleton::ItemDouble( currentGroup(), QLatin1String( "LineWidth" ), mLineWidth, 1.0 );
  addItem( itemLineWidth, QLatin1String( "LineWidth" ) );
  KConfigSkeleton::ItemUInt  *itemRingLife;
  itemRingLife = new KConfigSkeleton::ItemUInt( currentGroup(), QLatin1String( "RingLife" ), mRingLife, 300 );
  addItem( itemRingLife, QLatin1String( "RingLife" ) );
  KConfigSkeleton::ItemUInt  *itemRingSize;
  itemRingSize = new KConfigSkeleton::ItemUInt( currentGroup(), QLatin1String( "RingSize" ), mRingSize, 20 );
  addItem( itemRingSize, QLatin1String( "RingSize" ) );
  KConfigSkeleton::ItemUInt  *itemRingCount;
  itemRingCount = new KConfigSkeleton::ItemUInt( currentGroup(), QLatin1String( "RingCount" ), mRingCount, 2 );
  addItem( itemRingCount, QLatin1String( "RingCount" ) );
  KConfigSkeleton::ItemBool  *itemShowText;
  itemShowText = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowText" ), mShowText, true );
  addItem( itemShowText, QLatin1String( "ShowText" ) );
  KConfigSkeleton::ItemFont  *itemFont;
  itemFont = new KConfigSkeleton::ItemFont( currentGroup(), QLatin1String( "Font" ), mFont );
  addItem( itemFont, QLatin1String( "Font" ) );
}

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

