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

#include "trackmouseconfig.h"

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

using namespace KWin;

namespace KWin {

class TrackMouseConfigHelper
{
  public:
    TrackMouseConfigHelper() : q(0) {}
    ~TrackMouseConfigHelper() { delete q; }
    TrackMouseConfig *q;
};
}

K_GLOBAL_STATIC(TrackMouseConfigHelper, s_globalTrackMouseConfig)
TrackMouseConfig *TrackMouseConfig::self()
{
  if (!s_globalTrackMouseConfig->q) {
    new TrackMouseConfig;
    s_globalTrackMouseConfig->q->readConfig();
  }

  return s_globalTrackMouseConfig->q;
}

TrackMouseConfig::TrackMouseConfig(  )
  : KConfigSkeleton( QLatin1String( "kwinrc" ) )
{
  Q_ASSERT(!s_globalTrackMouseConfig->q);
  s_globalTrackMouseConfig->q = this;
  setCurrentGroup( QLatin1String( "Effect-TrackMouse" ) );

  KConfigSkeleton::ItemBool  *itemMeta;
  itemMeta = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Meta" ), mMeta, true );
  addItem( itemMeta, QLatin1String( "Meta" ) );
  KConfigSkeleton::ItemBool  *itemControl;
  itemControl = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Control" ), mControl, true );
  addItem( itemControl, QLatin1String( "Control" ) );
  KConfigSkeleton::ItemBool  *itemAlt;
  itemAlt = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Alt" ), mAlt, false );
  addItem( itemAlt, QLatin1String( "Alt" ) );
  KConfigSkeleton::ItemBool  *itemShift;
  itemShift = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Shift" ), mShift, false );
  addItem( itemShift, QLatin1String( "Shift" ) );
}

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

