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

#include "settings.h"

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

class PythonSettingsHelper
{
  public:
    PythonSettingsHelper() : q(nullptr) {}
    ~PythonSettingsHelper() { delete q; }
    PythonSettings *q;
};
Q_GLOBAL_STATIC(PythonSettingsHelper, s_globalPythonSettings)
PythonSettings *PythonSettings::self()
{
  if (!s_globalPythonSettings()->q) {
    new PythonSettings;
    s_globalPythonSettings()->q->read();
  }

  return s_globalPythonSettings()->q;
}

PythonSettings::PythonSettings(  )
  : KConfigSkeleton( QStringLiteral( "cantorrc" ) )
{
  Q_ASSERT(!s_globalPythonSettings()->q);
  s_globalPythonSettings()->q = this;
  setCurrentGroup( QStringLiteral( "Python3Backend" ) );

  KConfigSkeleton::ItemBool  *itemIntegratePlots;
  itemIntegratePlots = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "integratePlots" ), mIntegratePlots, false );
  addItem( itemIntegratePlots, QStringLiteral( "integratePlots" ) );
  KConfigSkeleton::ItemStringList  *itemAutorunScripts;
  itemAutorunScripts = new KConfigSkeleton::ItemStringList( currentGroup(), QStringLiteral( "autorunScripts" ), mAutorunScripts );
  addItem( itemAutorunScripts, QStringLiteral( "autorunScripts" ) );
}

PythonSettings::~PythonSettings()
{
  s_globalPythonSettings()->q = nullptr;
}

