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

#include "settings.h"

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

class kgeographySettingsHelper
{
  public:
    kgeographySettingsHelper() : q(0) {}
    ~kgeographySettingsHelper() { delete q; }
    kgeographySettings *q;
};
Q_GLOBAL_STATIC(kgeographySettingsHelper, s_globalkgeographySettings)
kgeographySettings *kgeographySettings::self()
{
  if (!s_globalkgeographySettings()->q) {
    new kgeographySettings;
    s_globalkgeographySettings()->q->read();
  }

  return s_globalkgeographySettings()->q;
}

kgeographySettings::kgeographySettings(  )
  : KConfigSkeleton( QLatin1String( "kgeographyrc" ) )
{
  Q_ASSERT(!s_globalkgeographySettings()->q);
  s_globalkgeographySettings()->q = this;
  setCurrentGroup( QLatin1String( "general" ) );

  KConfigSkeleton::ItemString  *itemLastMap;
  itemLastMap = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "lastMap" ), mLastMap );
  addItem( itemLastMap, QLatin1String( "lastMap" ) );
  QList<KConfigSkeleton::ItemEnum::Choice> valuesquestionPlacingScheme;
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QLatin1String("TopLeft");
    valuesquestionPlacingScheme.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QLatin1String("Top");
    valuesquestionPlacingScheme.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QLatin1String("TopRight");
    valuesquestionPlacingScheme.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QLatin1String("Left");
    valuesquestionPlacingScheme.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QLatin1String("Center");
    valuesquestionPlacingScheme.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QLatin1String("Right");
    valuesquestionPlacingScheme.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QLatin1String("BottomLeft");
    valuesquestionPlacingScheme.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QLatin1String("Bottom");
    valuesquestionPlacingScheme.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QLatin1String("BottomRight");
    valuesquestionPlacingScheme.append( choice );
  }
  KConfigSkeleton::ItemEnum  *itemQuestionPlacingScheme;
  itemQuestionPlacingScheme = new KConfigSkeleton::ItemEnum( currentGroup(), QLatin1String( "questionPlacingScheme" ), mQuestionPlacingScheme, valuesquestionPlacingScheme, EnumQuestionPlacingScheme::TopLeft );
  addItem( itemQuestionPlacingScheme, QLatin1String( "questionPlacingScheme" ) );
  KConfigSkeleton::ItemBool  *itemWaitsForValidation;
  itemWaitsForValidation = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "waitsForValidation" ), mWaitsForValidation, true );
  addItem( itemWaitsForValidation, QLatin1String( "waitsForValidation" ) );
  KConfigSkeleton::ItemBool  *itemFocusFollowsMouse;
  itemFocusFollowsMouse = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "focusFollowsMouse" ), mFocusFollowsMouse, false );
  addItem( itemFocusFollowsMouse, QLatin1String( "focusFollowsMouse" ) );
  QList<KConfigSkeleton::ItemEnum::Choice> valuescolorDisguise;
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QLatin1String("Nothing");
    valuescolorDisguise.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QLatin1String("Scramble");
    valuescolorDisguise.append( choice );
  }
  KConfigSkeleton::ItemEnum  *itemColorDisguise;
  itemColorDisguise = new KConfigSkeleton::ItemEnum( currentGroup(), QLatin1String( "colorDisguise" ), mColorDisguise, valuescolorDisguise, EnumColorDisguise::Nothing );
  addItem( itemColorDisguise, QLatin1String( "colorDisguise" ) );
}

kgeographySettings::~kgeographySettings()
{
  s_globalkgeographySettings()->q = 0;
}

