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

#include "mousemarkconfig.h"

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

using namespace KWin;

namespace KWin {

class MouseMarkConfigHelper
{
  public:
    MouseMarkConfigHelper() : q(0) {}
    ~MouseMarkConfigHelper() { delete q; }
    MouseMarkConfig *q;
};
}

K_GLOBAL_STATIC(MouseMarkConfigHelper, s_globalMouseMarkConfig)
MouseMarkConfig *MouseMarkConfig::self()
{
  if (!s_globalMouseMarkConfig->q) {
    new MouseMarkConfig;
    s_globalMouseMarkConfig->q->readConfig();
  }

  return s_globalMouseMarkConfig->q;
}

MouseMarkConfig::MouseMarkConfig(  )
  : KConfigSkeleton( QLatin1String( "kwinrc" ) )
{
  Q_ASSERT(!s_globalMouseMarkConfig->q);
  s_globalMouseMarkConfig->q = this;
  setCurrentGroup( QLatin1String( "Effect-MouseMark" ) );

  KConfigSkeleton::ItemUInt  *itemLineWidth;
  itemLineWidth = new KConfigSkeleton::ItemUInt( currentGroup(), QLatin1String( "LineWidth" ), mLineWidth, 3 );
  addItem( itemLineWidth, QLatin1String( "LineWidth" ) );
  KConfigSkeleton::ItemColor  *itemColor;
  itemColor = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "Color" ), mColor, QColor( 255,0,0 ) );
  addItem( itemColor, QLatin1String( "Color" ) );
}

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

