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

#include "settings.h"

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

class SettingsHelper
{
  public:
    SettingsHelper() : q(0) {}
    ~SettingsHelper() { delete q; }
    Settings *q;
};
Q_GLOBAL_STATIC(SettingsHelper, s_globalSettings)
Settings *Settings::self()
{
  if (!s_globalSettings()->q) {
    new Settings;
    s_globalSettings()->q->read();
  }

  return s_globalSettings()->q;
}

Settings::Settings(  )
  : KConfigSkeleton( QLatin1String( "rocsrc" ) )
{
  Q_ASSERT(!s_globalSettings()->q);
  s_globalSettings()->q = this;
  setCurrentGroup( QLatin1String( "ItemPalette" ) );

  KConfigSkeleton::ItemBool  *itemShowButtonText;
  itemShowButtonText = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "showButtonText" ), mShowButtonText, true );
  addItem( itemShowButtonText, QLatin1String( "showButtonText" ) );

  setCurrentGroup( QLatin1String( "RocsConfigVersion" ) );

  KConfigSkeleton::ItemString  *itemVersion;
  itemVersion = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "version" ), mVersion, QLatin1String( "0.0.0" ) );
  addItem( itemVersion, QLatin1String( "version" ) );

  setCurrentGroup( QLatin1String( "GraphicsView" ) );

  KConfigSkeleton::ItemBool  *itemFastGraphics;
  itemFastGraphics = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "fastGraphics" ), mFastGraphics, false );
  addItem( itemFastGraphics, QLatin1String( "fastGraphics" ) );

  setCurrentGroup( QLatin1String( "MainWindow" ) );

  KConfigSkeleton::ItemInt  *itemVSplitterSizeTop;
  itemVSplitterSizeTop = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "vSplitterSizeTop" ), mVSplitterSizeTop, 200 );
  addItem( itemVSplitterSizeTop, QLatin1String( "vSplitterSizeTop" ) );
  KConfigSkeleton::ItemInt  *itemVSplitterSizeBottom;
  itemVSplitterSizeBottom = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "vSplitterSizeBottom" ), mVSplitterSizeBottom, 200 );
  addItem( itemVSplitterSizeBottom, QLatin1String( "vSplitterSizeBottom" ) );
  KConfigSkeleton::ItemInt  *itemHSplitterSizeLeft;
  itemHSplitterSizeLeft = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "hSplitterSizeLeft" ), mHSplitterSizeLeft,  500  );
  addItem( itemHSplitterSizeLeft, QLatin1String( "hSplitterSizeLeft" ) );
  KConfigSkeleton::ItemInt  *itemHSplitterSizeRight;
  itemHSplitterSizeRight = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "hSplitterSizeRight" ), mHSplitterSizeRight,  500  );
  addItem( itemHSplitterSizeRight, QLatin1String( "hSplitterSizeRight" ) );
  KConfigSkeleton::ItemInt  *itemHScriptSplitterSizeLeft;
  itemHScriptSplitterSizeLeft = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "hScriptSplitterSizeLeft" ), mHScriptSplitterSizeLeft,  500  );
  addItem( itemHScriptSplitterSizeLeft, QLatin1String( "hScriptSplitterSizeLeft" ) );
  KConfigSkeleton::ItemInt  *itemHScriptSplitterSizeRight;
  itemHScriptSplitterSizeRight = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "hScriptSplitterSizeRight" ), mHScriptSplitterSizeRight,  500  );
  addItem( itemHScriptSplitterSizeRight, QLatin1String( "hScriptSplitterSizeRight" ) );
  KConfigSkeleton::ItemString  *itemLastOpenedDirectory;
  itemLastOpenedDirectory = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "lastOpenedDirectory" ), mLastOpenedDirectory );
  addItem( itemLastOpenedDirectory, QLatin1String( "lastOpenedDirectory" ) );

  setCurrentGroup( QLatin1String( "IncludeManager" ) );

  KConfigSkeleton::ItemStringList  *itemIncludePath;
  itemIncludePath = new KConfigSkeleton::ItemStringList( currentGroup(), QLatin1String( "includePath" ), mIncludePath );
  addItem( itemIncludePath, QLatin1String( "includePath" ) );
}

Settings::~Settings()
{
  s_globalSettings()->q = 0;
}

