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

#include "flipswitchconfig.h"

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

using namespace KWin;

namespace KWin {

class FlipSwitchConfigHelper
{
  public:
    FlipSwitchConfigHelper() : q(0) {}
    ~FlipSwitchConfigHelper() { delete q; }
    FlipSwitchConfig *q;
};
}

K_GLOBAL_STATIC(FlipSwitchConfigHelper, s_globalFlipSwitchConfig)
FlipSwitchConfig *FlipSwitchConfig::self()
{
  if (!s_globalFlipSwitchConfig->q) {
    new FlipSwitchConfig;
    s_globalFlipSwitchConfig->q->readConfig();
  }

  return s_globalFlipSwitchConfig->q;
}

FlipSwitchConfig::FlipSwitchConfig(  )
  : KConfigSkeleton( QLatin1String( "kwinrc" ) )
{
  Q_ASSERT(!s_globalFlipSwitchConfig->q);
  s_globalFlipSwitchConfig->q = this;
  setCurrentGroup( QLatin1String( "Effect-FlipSwitch" ) );

  KConfigSkeleton::ItemBool  *itemTabBox;
  itemTabBox = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "TabBox" ), mTabBox, false );
  addItem( itemTabBox, QLatin1String( "TabBox" ) );
  KConfigSkeleton::ItemBool  *itemTabBoxAlternative;
  itemTabBoxAlternative = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "TabBoxAlternative" ), mTabBoxAlternative, false );
  addItem( itemTabBoxAlternative, QLatin1String( "TabBoxAlternative" ) );
  KConfigSkeleton::ItemInt  *itemDuration;
  itemDuration = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "Duration" ), mDuration, 0 );
  addItem( itemDuration, QLatin1String( "Duration" ) );
  KConfigSkeleton::ItemInt  *itemAngle;
  itemAngle = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "Angle" ), mAngle, 30 );
  addItem( itemAngle, QLatin1String( "Angle" ) );
  KConfigSkeleton::ItemInt  *itemXPosition;
  itemXPosition = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "XPosition" ), mXPosition, 33 );
  addItem( itemXPosition, QLatin1String( "XPosition" ) );
  KConfigSkeleton::ItemInt  *itemYPosition;
  itemYPosition = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "YPosition" ), mYPosition, 100 );
  addItem( itemYPosition, QLatin1String( "YPosition" ) );
  KConfigSkeleton::ItemBool  *itemWindowTitle;
  itemWindowTitle = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "WindowTitle" ), mWindowTitle, true );
  addItem( itemWindowTitle, QLatin1String( "WindowTitle" ) );
}

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

