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

#include "kanagramsettings.h"

#include <kstaticdeleter.h>

KanagramSettings *KanagramSettings::mSelf = 0;
static KStaticDeleter<KanagramSettings> staticKanagramSettingsDeleter;

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

  return mSelf;
}

KanagramSettings::KanagramSettings(  )
  : TDEConfigSkeleton()
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "kanagram" ) );

  TDEConfigSkeleton::ItemString  *itemHintHideTime;
  itemHintHideTime = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "hintHideTime" ), mHintHideTime, TQString::fromLatin1( "5 seconds" ) );
  addItem( itemHintHideTime, TQString::fromLatin1( "hintHideTime" ) );
  TDEConfigSkeleton::ItemBool  *itemUseSounds;
  itemUseSounds = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "useSounds" ), mUseSounds, true );
  addItem( itemUseSounds, TQString::fromLatin1( "useSounds" ) );
  TDEConfigSkeleton::ItemBool  *itemUseStandardFonts;
  itemUseStandardFonts = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "useStandardFonts" ), mUseStandardFonts, false );
  addItem( itemUseStandardFonts, TQString::fromLatin1( "useStandardFonts" ) );
  TDEConfigSkeleton::ItemPath  *itemDefaultVocab;
  itemDefaultVocab = new TDEConfigSkeleton::ItemPath( currentGroup(), TQString::fromLatin1( "defaultVocab" ), mDefaultVocab );
  addItem( itemDefaultVocab, TQString::fromLatin1( "defaultVocab" ) );
  TDEConfigSkeleton::ItemString  *itemDataLanguage;
  itemDataLanguage = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "dataLanguage" ), mDataLanguage );
  addItem( itemDataLanguage, TQString::fromLatin1( "dataLanguage" ) );
  TDEConfigSkeleton::ItemBool  *itemJustGotFont;
  itemJustGotFont = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "justGotFont" ), mJustGotFont );
  addItem( itemJustGotFont, TQString::fromLatin1( "justGotFont" ) );
}

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

