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

#include "kitenconfig.h"

#include <kstaticdeleter.h>

Config *Config::mSelf = 0;
static KStaticDeleter<Config> staticConfigDeleter;

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

  return mSelf;
}

Config::Config(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "kitenrc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "edict" ) );

  TDEConfigSkeleton::ItemStringList  *itemEdict__NAMES;
  itemEdict__NAMES = new TDEConfigSkeleton::ItemStringList( currentGroup(), TQString::fromLatin1( "__NAMES" ), mEdict__NAMES );
  addItem( itemEdict__NAMES, TQString::fromLatin1( "edict__NAMES" ) );
  TDEConfigSkeleton::ItemBool  *itemEdict__useGlobal;
  itemEdict__useGlobal = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "__useGlobal" ), mEdict__useGlobal, true );
  addItem( itemEdict__useGlobal, TQString::fromLatin1( "edict__useGlobal" ) );

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

  TDEConfigSkeleton::ItemStringList  *itemKanjidic__NAMES;
  itemKanjidic__NAMES = new TDEConfigSkeleton::ItemStringList( currentGroup(), TQString::fromLatin1( "__NAMES" ), mKanjidic__NAMES );
  addItem( itemKanjidic__NAMES, TQString::fromLatin1( "kanjidic__NAMES" ) );
  TDEConfigSkeleton::ItemBool  *itemKanjidic__useGlobal;
  itemKanjidic__useGlobal = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "__useGlobal" ), mKanjidic__useGlobal, true );
  addItem( itemKanjidic__useGlobal, TQString::fromLatin1( "kanjidic__useGlobal" ) );

  setCurrentGroup( TQString::fromLatin1( "Searching Options" ) );

  TDEConfigSkeleton::ItemBool  *itemWholeWord;
  itemWholeWord = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "wholeWord" ), mWholeWord, true );
  addItem( itemWholeWord, TQString::fromLatin1( "wholeWord" ) );
  TDEConfigSkeleton::ItemBool  *itemCaseSensitive;
  itemCaseSensitive = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "caseSensitive" ), mCaseSensitive, false );
  addItem( itemCaseSensitive, TQString::fromLatin1( "caseSensitive" ) );

  setCurrentGroup( TQString::fromLatin1( "Radical Searching" ) );

  TDEConfigSkeleton::ItemStringList  *itemHotlist;
  itemHotlist = new TDEConfigSkeleton::ItemStringList( currentGroup(), TQString::fromLatin1( "Hotlist" ), mHotlist );
  addItem( itemHotlist, TQString::fromLatin1( "Hotlist" ) );
  TDEConfigSkeleton::ItemBool  *itemSearchByTotal;
  itemSearchByTotal = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "Search By Total" ), mSearchByTotal, false );
  addItem( itemSearchByTotal, TQString::fromLatin1( "SearchByTotal" ) );
  TDEConfigSkeleton::ItemInt  *itemStrokes;
  itemStrokes = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "Strokes" ), mStrokes, 1 );
  addItem( itemStrokes, TQString::fromLatin1( "Strokes" ) );
  TDEConfigSkeleton::ItemInt  *itemTotalStrokes;
  itemTotalStrokes = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "Total Strokes" ), mTotalStrokes, 1 );
  addItem( itemTotalStrokes, TQString::fromLatin1( "TotalStrokes" ) );
  TDEConfigSkeleton::ItemInt  *itemTotalStrokesErrorMargin;
  itemTotalStrokesErrorMargin = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "Total Strokes Error Margin" ), mTotalStrokesErrorMargin, 0 );
  addItem( itemTotalStrokesErrorMargin, TQString::fromLatin1( "TotalStrokesErrorMargin" ) );

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

  TDEConfigSkeleton::ItemFont  *itemFont;
  itemFont = new TDEConfigSkeleton::ItemFont( currentGroup(), TQString::fromLatin1( "font" ), mFont );
  addItem( itemFont, TQString::fromLatin1( "font" ) );

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

  TDEConfigSkeleton::ItemInt  *itemGuessOn;
  itemGuessOn = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "Guess On" ), mGuessOn, 1 );
  addItem( itemGuessOn, TQString::fromLatin1( "GuessOn" ) );
  TDEConfigSkeleton::ItemInt  *itemQuizOn;
  itemQuizOn = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "Quiz On" ), mQuizOn, 0 );
  addItem( itemQuizOn, TQString::fromLatin1( "QuizOn" ) );
  TDEConfigSkeleton::ItemInt  *itemGrade;
  itemGrade = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "grade" ), mGrade, 1 );
  addItem( itemGrade, TQString::fromLatin1( "grade" ) );
  TDEConfigSkeleton::ItemPath  *itemLastFile;
  itemLastFile = new TDEConfigSkeleton::ItemPath( currentGroup(), TQString::fromLatin1( "lastFile" ), mLastFile );
  addItem( itemLastFile, TQString::fromLatin1( "lastFile" ) );
  TDEConfigSkeleton::ItemBool  *itemStartLearn;
  itemStartLearn = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "startLearn" ), mStartLearn, false );
  addItem( itemStartLearn, TQString::fromLatin1( "startLearn" ) );

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

  TDEConfigSkeleton::ItemBool  *itemCom;
  itemCom = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "com" ), mCom, false );
  addItem( itemCom, TQString::fromLatin1( "com" ) );
  TDEConfigSkeleton::ItemBool  *itemKanji;
  itemKanji = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "kanji" ), mKanji, false );
  addItem( itemKanji, TQString::fromLatin1( "kanji" ) );
  TDEConfigSkeleton::ItemBool  *itemAutosearch;
  itemAutosearch = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "autosearch" ), mAutosearch, false );
  addItem( itemAutosearch, TQString::fromLatin1( "autosearch" ) );
  TDEConfigSkeleton::ItemBool  *itemDeinf;
  itemDeinf = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "deinf" ), mDeinf, true );
  addItem( itemDeinf, TQString::fromLatin1( "deinf" ) );
}

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

