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

#include "prefs.h"

#include <kstaticdeleter.h>

Prefs *Prefs::mSelf = 0;
static KStaticDeleter<Prefs> staticPrefsDeleter;

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

  return mSelf;
}

Prefs::Prefs(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "kwordquizrc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "General" ) );

  TDEConfigSkeleton::ItemBool  *itemFirstRun;
  itemFirstRun = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "FirstRun" ), mFirstRun, true );
  addItem( itemFirstRun, TQString::fromLatin1( "FirstRun" ) );

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

  TDEConfigSkeleton::ItemStringList  *itemColumnTitles1;
  itemColumnTitles1 = new TDEConfigSkeleton::ItemStringList( currentGroup(), TQString::fromLatin1( "ColumnTitles1" ), mColumnTitles1 );
  addItem( itemColumnTitles1, TQString::fromLatin1( "ColumnTitles1" ) );
  TDEConfigSkeleton::ItemStringList  *itemColumnTitles2;
  itemColumnTitles2 = new TDEConfigSkeleton::ItemStringList( currentGroup(), TQString::fromLatin1( "ColumnTitles2" ), mColumnTitles2 );
  addItem( itemColumnTitles2, TQString::fromLatin1( "ColumnTitles2" ) );
  TDEConfigSkeleton::ItemFont  *itemEditorFont;
  itemEditorFont = new TDEConfigSkeleton::ItemFont( currentGroup(), TQString::fromLatin1( "EditorFont" ), mEditorFont, TDEGlobalSettings::generalFont() );
  addItem( itemEditorFont, TQString::fromLatin1( "EditorFont" ) );
  TDEConfigSkeleton::ItemBool  *itemEnableBlanks;
  itemEnableBlanks = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "EnableBlanks" ), mEnableBlanks, false );
  addItem( itemEnableBlanks, TQString::fromLatin1( "EnableBlanks" ) );
  TDEConfigSkeleton::ItemInt  *itemEnterMove;
  itemEnterMove = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "EnterMove" ), mEnterMove, 1 );
  addItem( itemEnterMove, TQString::fromLatin1( "EnterMove" ) );
  TDEConfigSkeleton::ItemString  *itemSpecialCharacters;
  itemSpecialCharacters = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "SpecialCharacters" ), mSpecialCharacters, TQString::fromLatin1( "abcdefghi" ) );
  addItem( itemSpecialCharacters, TQString::fromLatin1( "SpecialCharacters" ) );

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

  TDEConfigSkeleton::ItemBool  *itemAutoCheck;
  itemAutoCheck = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "AutoCheck" ), mAutoCheck, false );
  addItem( itemAutoCheck, TQString::fromLatin1( "AutoCheck" ) );
  TDEConfigSkeleton::ItemBool  *itemAutoFlip;
  itemAutoFlip = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "AutoFlip" ), mAutoFlip, false );
  addItem( itemAutoFlip, TQString::fromLatin1( "AutoFlip" ) );
  TDEConfigSkeleton::ItemInt  *itemFlipDelay;
  itemFlipDelay = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "FlipDelay" ), mFlipDelay, 3 );
  addItem( itemFlipDelay, TQString::fromLatin1( "FlipDelay" ) );
  TDEConfigSkeleton::ItemBool  *itemHintError;
  itemHintError = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "HintError" ), mHintError, false );
  addItem( itemHintError, TQString::fromLatin1( "HintError" ) );
  TDEConfigSkeleton::ItemInt  *itemKeepDiscard;
  itemKeepDiscard = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "KeepDiscard" ), mKeepDiscard, 1 );
  addItem( itemKeepDiscard, TQString::fromLatin1( "KeepDiscard" ) );
  TDEConfigSkeleton::ItemInt  *itemMode;
  itemMode = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "Mode" ), mMode, 1 );
  addItem( itemMode, TQString::fromLatin1( "Mode" ) );
  TDEConfigSkeleton::ItemBool  *itemPercent;
  itemPercent = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "Percent" ), mPercent, false );
  addItem( itemPercent, TQString::fromLatin1( "Percent" ) );

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

  TDEConfigSkeleton::ItemFont  *itemFrontFont;
  itemFrontFont = new TDEConfigSkeleton::ItemFont( currentGroup(), TQString::fromLatin1( "FrontFont" ), mFrontFont, TDEGlobalSettings::generalFont() );
  addItem( itemFrontFont, TQString::fromLatin1( "FrontFont" ) );
  TDEConfigSkeleton::ItemColor  *itemFrontTextColor;
  itemFrontTextColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "FrontTextColor" ), mFrontTextColor, TQt::black );
  addItem( itemFrontTextColor, TQString::fromLatin1( "FrontTextColor" ) );
  TDEConfigSkeleton::ItemColor  *itemFrontCardColor;
  itemFrontCardColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "FrontCardColor" ), mFrontCardColor, TQt::white );
  addItem( itemFrontCardColor, TQString::fromLatin1( "FrontCardColor" ) );
  TDEConfigSkeleton::ItemColor  *itemFrontFrameColor;
  itemFrontFrameColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "FrontFrameColor" ), mFrontFrameColor, TQt::red );
  addItem( itemFrontFrameColor, TQString::fromLatin1( "FrontFrameColor" ) );
  TDEConfigSkeleton::ItemFont  *itemBackFont;
  itemBackFont = new TDEConfigSkeleton::ItemFont( currentGroup(), TQString::fromLatin1( "BackFont" ), mBackFont, TDEGlobalSettings::generalFont() );
  addItem( itemBackFont, TQString::fromLatin1( "BackFont" ) );
  TDEConfigSkeleton::ItemColor  *itemBackTextColor;
  itemBackTextColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "BackTextColor" ), mBackTextColor, TQt::black );
  addItem( itemBackTextColor, TQString::fromLatin1( "BackTextColor" ) );
  TDEConfigSkeleton::ItemColor  *itemBackCardColor;
  itemBackCardColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "BackCardColor" ), mBackCardColor, TQt::white );
  addItem( itemBackCardColor, TQString::fromLatin1( "BackCardColor" ) );
  TDEConfigSkeleton::ItemColor  *itemBackFrameColor;
  itemBackFrameColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "BackFrameColor" ), mBackFrameColor, TQt::blue );
  addItem( itemBackFrameColor, TQString::fromLatin1( "BackFrameColor" ) );

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

  TDEConfigSkeleton::ItemPath  *itemProvidersUrl;
  itemProvidersUrl = new TDEConfigSkeleton::ItemPath( currentGroup(), TQString::fromLatin1( "ProvidersUrl" ), mProvidersUrl, "https://www.trinitydesktop.org/ocs/providers.xml" );
  addItem( itemProvidersUrl, TQString::fromLatin1( "ProvidersUrl" ) );
  TDEConfigSkeleton::ItemString  *itemInstallationCommand;
  itemInstallationCommand = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "InstallationCommand" ), mInstallationCommand, TQString::fromLatin1( "kwordquiz %f" ) );
  addItem( itemInstallationCommand, TQString::fromLatin1( "InstallationCommand" ) );
  TDEConfigSkeleton::ItemPath  *itemInstallPath;
  itemInstallPath = new TDEConfigSkeleton::ItemPath( currentGroup(), TQString::fromLatin1( "InstallPath" ), mInstallPath, TQString::fromLatin1( "Vocabularies" ) );
  addItem( itemInstallPath, TQString::fromLatin1( "InstallPath" ) );
}

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

