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

#include "settings.h"

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

class OctaveSettingsHelper
{
  public:
    OctaveSettingsHelper() : q(0) {}
    ~OctaveSettingsHelper() { delete q; }
    OctaveSettings *q;
};
Q_GLOBAL_STATIC(OctaveSettingsHelper, s_globalOctaveSettings)
OctaveSettings *OctaveSettings::self()
{
  if (!s_globalOctaveSettings()->q) {
    new OctaveSettings;
    s_globalOctaveSettings()->q->read();
  }

  return s_globalOctaveSettings()->q;
}

OctaveSettings::OctaveSettings(  )
  : KConfigSkeleton( QLatin1String( "cantorrc" ) )
{
  Q_ASSERT(!s_globalOctaveSettings()->q);
  s_globalOctaveSettings()->q = this;
  setCurrentGroup( QLatin1String( "OctaveBackend" ) );

  KConfigSkeleton::ItemUrl  *itemPath;
  itemPath = new KConfigSkeleton::ItemUrl( currentGroup(), QLatin1String( "Path" ), mPath, QUrl::fromLocalFile(KStandardDirs::findExe( QLatin1String("octave") )) );
  addItem( itemPath, QLatin1String( "Path" ) );
  KConfigSkeleton::ItemBool  *itemIntegratePlots;
  itemIntegratePlots = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "integratePlots" ), mIntegratePlots, true );
  addItem( itemIntegratePlots, QLatin1String( "integratePlots" ) );
  KConfigSkeleton::ItemStringList  *itemAutorunScripts;
  itemAutorunScripts = new KConfigSkeleton::ItemStringList( currentGroup(), QLatin1String( "autorunScripts" ), mAutorunScripts );
  addItem( itemAutorunScripts, QLatin1String( "autorunScripts" ) );
}

OctaveSettings::~OctaveSettings()
{
  s_globalOctaveSettings()->q = 0;
}

