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

#include "oxygenactiveshadowconfiguration.h"

#include <qglobal.h>
#include <QFile>

using namespace Oxygen;

namespace Oxygen {

class ActiveShadowConfigurationHelper
{
  public:
    ActiveShadowConfigurationHelper() : q(nullptr) {}
    ~ActiveShadowConfigurationHelper() { delete q; }
    ActiveShadowConfigurationHelper(const ActiveShadowConfigurationHelper&) = delete;
    ActiveShadowConfigurationHelper& operator=(const ActiveShadowConfigurationHelper&) = delete;
    ActiveShadowConfiguration *q;
};
}

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

  return s_globalActiveShadowConfiguration()->q;
}

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

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

ActiveShadowConfiguration::~ActiveShadowConfiguration()
{
  s_globalActiveShadowConfiguration()->q = nullptr;
}

