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

#include "languageconfig.h"

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

class LanguageConfigHelper
{
  public:
    LanguageConfigHelper() : q(nullptr) {}
    ~LanguageConfigHelper() { delete q; }
    LanguageConfigHelper(const LanguageConfigHelper&) = delete;
    LanguageConfigHelper& operator=(const LanguageConfigHelper&) = delete;
    LanguageConfig *q;
};
Q_GLOBAL_STATIC(LanguageConfigHelper, s_globalLanguageConfig)
LanguageConfig *LanguageConfig::self()
{
  if (!s_globalLanguageConfig()->q) {
    new LanguageConfig;
    s_globalLanguageConfig()->q->read();
  }

  return s_globalLanguageConfig()->q;
}

LanguageConfig::LanguageConfig(  )
  : KConfigSkeleton( QStringLiteral( "kdeveloprc" ) )
{
  Q_ASSERT(!s_globalLanguageConfig()->q);
  s_globalLanguageConfig()->q = this;
  setCurrentGroup( QStringLiteral( "Language Support" ) );

  mAutomaticInvocationItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "Automatic Invocation" ), mAutomaticInvocation, true );
  mAutomaticInvocationItem->setLabel( QCoreApplication::translate("LanguageConfig", "Automatic Invocation") );
  addItem( mAutomaticInvocationItem, QStringLiteral( "automaticInvocation" ) );
  mHighlightSemanticProblemsItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "highlightSemanticProblems" ), mHighlightSemanticProblems, true );
  mHighlightSemanticProblemsItem->setLabel( QCoreApplication::translate("LanguageConfig", "highlightSemanticProblems") );
  addItem( mHighlightSemanticProblemsItem, QStringLiteral( "highlightSemanticProblems" ) );
  mHighlightProblematicLinesItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "highlightProblematicLines" ), mHighlightProblematicLines, false );
  mHighlightProblematicLinesItem->setLabel( QCoreApplication::translate("LanguageConfig", "highlightProblematicLines") );
  addItem( mHighlightProblematicLinesItem, QStringLiteral( "highlightProblematicLines" ) );
  mBoldDeclarationsItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "boldDeclarations" ), mBoldDeclarations, true );
  mBoldDeclarationsItem->setLabel( QCoreApplication::translate("LanguageConfig", "boldDeclarations") );
  addItem( mBoldDeclarationsItem, QStringLiteral( "boldDeclarations" ) );
  mShowMultiLineSelectionInformationItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "showMultiLineSelectionInformation" ), mShowMultiLineSelectionInformation, false );
  mShowMultiLineSelectionInformationItem->setLabel( QCoreApplication::translate("LanguageConfig", "showMultiLineSelectionInformation") );
  addItem( mShowMultiLineSelectionInformationItem, QStringLiteral( "showMultiLineSelectionInformation" ) );
  mLocalColorizationItem = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "localColorization" ), mLocalColorization, 170 );
  mLocalColorizationItem->setLabel( QCoreApplication::translate("LanguageConfig", "localColorization") );
  addItem( mLocalColorizationItem, QStringLiteral( "localColorization" ) );
  mGlobalColorizationItem = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "globalColorization" ), mGlobalColorization, 255 );
  mGlobalColorizationItem->setLabel( QCoreApplication::translate("LanguageConfig", "globalColorization") );
  addItem( mGlobalColorizationItem, QStringLiteral( "globalColorization" ) );
  mMinFilesForSimplifiedParsingItem = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "minFilesForSimplifiedParsing" ), mMinFilesForSimplifiedParsing, 100000 );
  mMinFilesForSimplifiedParsingItem->setLabel( QCoreApplication::translate("LanguageConfig", "minFilesForSimplifiedParsing") );
  addItem( mMinFilesForSimplifiedParsingItem, QStringLiteral( "minFilesForSimplifiedParsing" ) );
  mTodoMarkerWordsItem = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "todoMarkerWords" ), mTodoMarkerWords, QStringLiteral( "TODO FIXME" ) );
  mTodoMarkerWordsItem->setLabel( QCoreApplication::translate("LanguageConfig", "todoMarkerWords") );
  addItem( mTodoMarkerWordsItem, QStringLiteral( "todoMarkerWords" ) );
  QList<KConfigSkeleton::ItemEnum::Choice> valuescompletionDetail;
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("Minimal");
    valuescompletionDetail.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("MinimalWhenAutomatic");
    valuescompletionDetail.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("AlwaysFull");
    valuescompletionDetail.append( choice );
  }
  mCompletionDetailItem = new KConfigSkeleton::ItemEnum( currentGroup(), QStringLiteral( "completionDetail" ), mCompletionDetail, valuescompletionDetail, EnumCompletionDetail::MinimalWhenAutomatic );
  mCompletionDetailItem->setLabel( QCoreApplication::translate("LanguageConfig", "completionDetail") );
  addItem( mCompletionDetailItem, QStringLiteral( "completionDetail" ) );
}

LanguageConfig::~LanguageConfig()
{
  s_globalLanguageConfig()->q = nullptr;
}

