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

#include "oxygenactiveshadowconfiguration.h"

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

using namespace Oxygen;

namespace Oxygen {

class ActiveShadowConfigurationHelper
{
  public:
    ActiveShadowConfigurationHelper() : q(0) {}
    ~ActiveShadowConfigurationHelper() { delete q; }
    ActiveShadowConfiguration *q;
};
}

K_GLOBAL_STATIC(ActiveShadowConfigurationHelper, s_globalActiveShadowConfiguration)
ActiveShadowConfiguration *ActiveShadowConfiguration::self()
{
  if (!s_globalActiveShadowConfiguration->q) {
    new ActiveShadowConfiguration;
    s_globalActiveShadowConfiguration->q->readConfig();
  }

  return s_globalActiveShadowConfiguration->q;
}

ActiveShadowConfiguration::ActiveShadowConfiguration(  )
  : KConfigSkeleton( QLatin1String( "oxygenrc" ) )
{
  Q_ASSERT(!s_globalActiveShadowConfiguration->q);
  s_globalActiveShadowConfiguration->q = this;
  setCurrentGroup( QLatin1String( "ActiveShadow" ) );

  KConfigSkeleton::ItemBool  *itemEnabled;
  itemEnabled = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Enabled" ), mEnabled, true );
  addItem( itemEnabled, QLatin1String( "Enabled" ) );
  KConfigSkeleton::ItemInt  *itemShadowSize;
  itemShadowSize = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "ShadowSize" ), mShadowSize, 40 );
  addItem( itemShadowSize, QLatin1String( "ShadowSize" ) );
  KConfigSkeleton::ItemDouble  *itemVerticalOffset;
  itemVerticalOffset = new KConfigSkeleton::ItemDouble( currentGroup(), QLatin1String( "VerticalOffset" ), mVerticalOffset, 0 );
  addItem( itemVerticalOffset, QLatin1String( "VerticalOffset" ) );
  KConfigSkeleton::ItemColor  *itemInnerColor;
  itemInnerColor = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "InnerColor" ), mInnerColor, QColor( 112,239,255 ) );
  addItem( itemInnerColor, QLatin1String( "InnerColor" ) );
  KConfigSkeleton::ItemColor  *itemOuterColor;
  itemOuterColor = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "OuterColor" ), mOuterColor, QColor( 84,167,240 ) );
  addItem( itemOuterColor, QLatin1String( "OuterColor" ) );
  KConfigSkeleton::ItemBool  *itemUseOuterColor;
  itemUseOuterColor = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "UseOuterColor" ), mUseOuterColor, true );
  addItem( itemUseOuterColor, QLatin1String( "UseOuterColor" ) );
}

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

