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

#include "settings.h"

#include <kstaticdeleter.h>

Settings *Settings::mSelf = 0;
static KStaticDeleter<Settings> staticSettingsDeleter;

Settings *Settings::self()
{
  if ( !mSelf ) {
    staticSettingsDeleter.setObject( mSelf, new Settings() );
    mSelf->readConfig();
  }

  return mSelf;
}

Settings::Settings(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "keducarc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "Options" ) );

  TDEConfigSkeleton::ItemBool  *itemRandomAnswers;
  itemRandomAnswers = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "RandomAnswers" ), mRandomAnswers, false );
  addItem( itemRandomAnswers, TQString::fromLatin1( "RandomAnswers" ) );
  TDEConfigSkeleton::ItemBool  *itemRandomQuestions;
  itemRandomQuestions = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "RandomQuestions" ), mRandomQuestions, false );
  addItem( itemRandomQuestions, TQString::fromLatin1( "RandomQuestions" ) );
  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesResultFinish;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "testEnd" );
    valuesResultFinish.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "afterEachQuestion" );
    valuesResultFinish.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemResultFinish;
  itemResultFinish = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "ResultFinish" ), mResultFinish, valuesResultFinish, EnumResultFinish::testEnd );
  addItem( itemResultFinish, TQString::fromLatin1( "ResultFinish" ) );

  setCurrentGroup( TQString::fromLatin1( "keducaview" ) );

  TQValueList<int> defaultSplitter_size;

  TDEConfigSkeleton::ItemIntList  *itemSplitter_size;
  itemSplitter_size = new TDEConfigSkeleton::ItemIntList( currentGroup(), TQString::fromLatin1( "Splitter_size" ), mSplitter_size, defaultSplitter_size );
  addItem( itemSplitter_size, TQString::fromLatin1( "Splitter_size" ) );
}

Settings::~Settings()
{
  if ( mSelf == this )
    staticSettingsDeleter.setObject( mSelf, 0, false );
}

