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

#include "presentwindowsconfig.h"

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

using namespace KWin;

namespace KWin {

class PresentWindowsConfigHelper
{
  public:
    PresentWindowsConfigHelper() : q(0) {}
    ~PresentWindowsConfigHelper() { delete q; }
    PresentWindowsConfig *q;
};
}

K_GLOBAL_STATIC(PresentWindowsConfigHelper, s_globalPresentWindowsConfig)
PresentWindowsConfig *PresentWindowsConfig::self()
{
  if (!s_globalPresentWindowsConfig->q) {
    new PresentWindowsConfig;
    s_globalPresentWindowsConfig->q->readConfig();
  }

  return s_globalPresentWindowsConfig->q;
}

PresentWindowsConfig::PresentWindowsConfig(  )
  : KConfigSkeleton( QLatin1String( "kwinrc" ) )
{
  Q_ASSERT(!s_globalPresentWindowsConfig->q);
  s_globalPresentWindowsConfig->q = this;
  setCurrentGroup( QLatin1String( "Effect-PresentWindows" ) );

  KConfigSkeleton::ItemInt  *itemLayoutMode;
  itemLayoutMode = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "LayoutMode" ), mLayoutMode, 0 );
  addItem( itemLayoutMode, QLatin1String( "LayoutMode" ) );
  KConfigSkeleton::ItemBool  *itemDrawWindowCaptions;
  itemDrawWindowCaptions = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "DrawWindowCaptions" ), mDrawWindowCaptions, true );
  addItem( itemDrawWindowCaptions, QLatin1String( "DrawWindowCaptions" ) );
  KConfigSkeleton::ItemBool  *itemDrawWindowIcons;
  itemDrawWindowIcons = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "DrawWindowIcons" ), mDrawWindowIcons, true );
  addItem( itemDrawWindowIcons, QLatin1String( "DrawWindowIcons" ) );
  KConfigSkeleton::ItemBool  *itemAllowClosingWindows;
  itemAllowClosingWindows = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "AllowClosingWindows" ), mAllowClosingWindows, true );
  addItem( itemAllowClosingWindows, QLatin1String( "AllowClosingWindows" ) );
  KConfigSkeleton::ItemBool  *itemIgnoreMinimized;
  itemIgnoreMinimized = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "IgnoreMinimized" ), mIgnoreMinimized, false );
  addItem( itemIgnoreMinimized, QLatin1String( "IgnoreMinimized" ) );
  KConfigSkeleton::ItemBool  *itemShowPanel;
  itemShowPanel = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowPanel" ), mShowPanel, false );
  addItem( itemShowPanel, QLatin1String( "ShowPanel" ) );
  KConfigSkeleton::ItemInt  *itemAccuracy;
  itemAccuracy = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "Accuracy" ), mAccuracy, 1 );
  addItem( itemAccuracy, QLatin1String( "Accuracy" ) );
  KConfigSkeleton::ItemBool  *itemFillGaps;
  itemFillGaps = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "FillGaps" ), mFillGaps, true );
  addItem( itemFillGaps, QLatin1String( "FillGaps" ) );
  KConfigSkeleton::ItemInt  *itemLeftButtonWindow;
  itemLeftButtonWindow = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "LeftButtonWindow" ), mLeftButtonWindow, 1 );
  addItem( itemLeftButtonWindow, QLatin1String( "LeftButtonWindow" ) );
  KConfigSkeleton::ItemInt  *itemMiddleButtonWindow;
  itemMiddleButtonWindow = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "MiddleButtonWindow" ), mMiddleButtonWindow, 0 );
  addItem( itemMiddleButtonWindow, QLatin1String( "MiddleButtonWindow" ) );
  KConfigSkeleton::ItemInt  *itemRightButtonWindow;
  itemRightButtonWindow = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "RightButtonWindow" ), mRightButtonWindow, 2 );
  addItem( itemRightButtonWindow, QLatin1String( "RightButtonWindow" ) );
  KConfigSkeleton::ItemInt  *itemLeftButtonDesktop;
  itemLeftButtonDesktop = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "LeftButtonDesktop" ), mLeftButtonDesktop, 2 );
  addItem( itemLeftButtonDesktop, QLatin1String( "LeftButtonDesktop" ) );
  KConfigSkeleton::ItemInt  *itemMiddleButtonDesktop;
  itemMiddleButtonDesktop = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "MiddleButtonDesktop" ), mMiddleButtonDesktop, 0 );
  addItem( itemMiddleButtonDesktop, QLatin1String( "MiddleButtonDesktop" ) );
  KConfigSkeleton::ItemInt  *itemRightButtonDesktop;
  itemRightButtonDesktop = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "RightButtonDesktop" ), mRightButtonDesktop, 0 );
  addItem( itemRightButtonDesktop, QLatin1String( "RightButtonDesktop" ) );
  KConfigSkeleton::ItemBool  *itemDragToClose;
  itemDragToClose = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "DragToClose" ), mDragToClose, false );
  addItem( itemDragToClose, QLatin1String( "DragToClose" ) );
  QList<int> defaultBorderActivate;

  KConfigSkeleton::ItemIntList  *itemBorderActivate;
  itemBorderActivate = new KConfigSkeleton::ItemIntList( currentGroup(), QLatin1String( "BorderActivate" ), mBorderActivate, defaultBorderActivate );
  addItem( itemBorderActivate, QLatin1String( "BorderActivate" ) );
  KConfigSkeleton::ItemIntList  *itemBorderActivateAll;
  itemBorderActivateAll = new KConfigSkeleton::ItemIntList( currentGroup(), QLatin1String( "BorderActivateAll" ), mBorderActivateAll, QList<int>() << int(ElectricTopLeft) );
  addItem( itemBorderActivateAll, QLatin1String( "BorderActivateAll" ) );
  QList<int> defaultBorderActivateClass;

  KConfigSkeleton::ItemIntList  *itemBorderActivateClass;
  itemBorderActivateClass = new KConfigSkeleton::ItemIntList( currentGroup(), QLatin1String( "BorderActivateClass" ), mBorderActivateClass, defaultBorderActivateClass );
  addItem( itemBorderActivateClass, QLatin1String( "BorderActivateClass" ) );
}

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

