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

#include "kbbprefs.h"

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

class KBBPrefsHelper
{
  public:
    KBBPrefsHelper() : q(0) {}
    ~KBBPrefsHelper() { delete q; }
    KBBPrefs *q;
};
Q_GLOBAL_STATIC(KBBPrefsHelper, s_globalKBBPrefs)
KBBPrefs *KBBPrefs::self()
{
  if (!s_globalKBBPrefs()->q) {
    new KBBPrefs;
    s_globalKBBPrefs()->q->read();
  }

  return s_globalKBBPrefs()->q;
}

KBBPrefs::KBBPrefs(  )
  : KConfigSkeleton( QLatin1String( "kblackboxrc" ) )
{
  Q_ASSERT(!s_globalKBBPrefs()->q);
  s_globalKBBPrefs()->q = this;
  setCurrentGroup( QLatin1String( "KBlackBox Setup" ) );

  KConfigSkeleton::ItemString  *itemTheme;
  itemTheme = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "theme" ), mTheme );
  itemTheme->setLabel( QCoreApplication::translate("KBBPrefs", "File of the current theme of the graphic elements. (SVGZ file with path and file extension)") );
  addItem( itemTheme, QLatin1String( "theme" ) );
  KConfigSkeleton::ItemInt  *itemBalls;
  itemBalls = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "balls" ), mBalls, 4 );
  itemBalls->setLabel( QCoreApplication::translate("KBBPrefs", "Number of balls for custom difficulty level") );
  addItem( itemBalls, QLatin1String( "balls" ) );
  KConfigSkeleton::ItemInt  *itemColumns;
  itemColumns = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "columns" ), mColumns, 8 );
  itemColumns->setLabel( QCoreApplication::translate("KBBPrefs", "Number of columns of the board for custom difficulty level") );
  addItem( itemColumns, QLatin1String( "columns" ) );
  KConfigSkeleton::ItemInt  *itemRows;
  itemRows = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "rows" ), mRows, 8 );
  itemRows->setLabel( QCoreApplication::translate("KBBPrefs", "Number of rows of the board for custom difficuty level") );
  addItem( itemRows, QLatin1String( "rows" ) );
}

KBBPrefs::~KBBPrefs()
{
  s_globalKBBPrefs()->q = 0;
}

