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

#include "oxygeninactiveshadowconfiguration.h"

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

using namespace Oxygen;

namespace Oxygen {

class InactiveShadowConfigurationHelper
{
  public:
    InactiveShadowConfigurationHelper() : q(0) {}
    ~InactiveShadowConfigurationHelper() { delete q; }
    InactiveShadowConfiguration *q;
};
}

K_GLOBAL_STATIC(InactiveShadowConfigurationHelper, s_globalInactiveShadowConfiguration)
InactiveShadowConfiguration *InactiveShadowConfiguration::self()
{
  if (!s_globalInactiveShadowConfiguration->q) {
    new InactiveShadowConfiguration;
    s_globalInactiveShadowConfiguration->q->readConfig();
  }

  return s_globalInactiveShadowConfiguration->q;
}

InactiveShadowConfiguration::InactiveShadowConfiguration(  )
  : KConfigSkeleton( QLatin1String( "oxygenrc" ) )
{
  Q_ASSERT(!s_globalInactiveShadowConfiguration->q);
  s_globalInactiveShadowConfiguration->q = this;
  setCurrentGroup( QLatin1String( "InactiveShadow" ) );

  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.2 );
  addItem( itemVerticalOffset, QLatin1String( "VerticalOffset" ) );
  KConfigSkeleton::ItemColor  *itemInnerColor;
  itemInnerColor = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "InnerColor" ), mInnerColor, QColor( 0, 0, 0 ) );
  addItem( itemInnerColor, QLatin1String( "InnerColor" ) );
  KConfigSkeleton::ItemColor  *itemOuterColor;
  itemOuterColor = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "OuterColor" ), mOuterColor, QColor( 0, 0, 0 ) );
  addItem( itemOuterColor, QLatin1String( "OuterColor" ) );
  KConfigSkeleton::ItemBool  *itemUseOuterColor;
  itemUseOuterColor = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "UseOuterColor" ), mUseOuterColor, false );
  addItem( itemUseOuterColor, QLatin1String( "UseOuterColor" ) );
}

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

