// This file is generated by tdeconfig_compiler from ktouch.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( "ktouchrc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "Colors" ) );

  TDEConfigSkeleton::ItemInt  *itemCurrentColorScheme;
  itemCurrentColorScheme = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "CurrentColorScheme" ), mCurrentColorScheme, 1 );
  addItem( itemCurrentColorScheme, TQString::fromLatin1( "CurrentColorScheme" ) );
  TDEConfigSkeleton::ItemBool  *itemCommonTypingLineColors;
  itemCommonTypingLineColors = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "CommonTypingLineColors" ), mCommonTypingLineColors, false );
  addItem( itemCommonTypingLineColors, TQString::fromLatin1( "CommonTypingLineColors" ) );
  TDEConfigSkeleton::ItemColor  *itemTeacherBackgroundColor;
  itemTeacherBackgroundColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "TeacherBackgroundColor" ), mTeacherBackgroundColor, TQColor( "#bebeff" ) );
  addItem( itemTeacherBackgroundColor, TQString::fromLatin1( "TeacherBackgroundColor" ) );
  TDEConfigSkeleton::ItemColor  *itemTeacherTextColor;
  itemTeacherTextColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "TeacherTextColor" ), mTeacherTextColor, TQColor( "#000032" ) );
  addItem( itemTeacherTextColor, TQString::fromLatin1( "TeacherTextColor" ) );
  TDEConfigSkeleton::ItemColor  *itemStudentBackgroundColor;
  itemStudentBackgroundColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "StudentBackgroundColor" ), mStudentBackgroundColor, TQColor( "#aoffao" ) );
  addItem( itemStudentBackgroundColor, TQString::fromLatin1( "StudentBackgroundColor" ) );
  TDEConfigSkeleton::ItemColor  *itemStudentTextColor;
  itemStudentTextColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "StudentTextColor" ), mStudentTextColor, TQColor( "#003200" ) );
  addItem( itemStudentTextColor, TQString::fromLatin1( "StudentTextColor" ) );
  TDEConfigSkeleton::ItemBool  *itemColorOnError;
  itemColorOnError = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ColorOnError" ), mColorOnError, true );
  addItem( itemColorOnError, TQString::fromLatin1( "ColorOnError" ) );
  TDEConfigSkeleton::ItemColor  *itemErrorBackgroundColor;
  itemErrorBackgroundColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "ErrorBackgroundColor" ), mErrorBackgroundColor, TQColor( "#ac0000" ) );
  addItem( itemErrorBackgroundColor, TQString::fromLatin1( "ErrorBackgroundColor" ) );
  TDEConfigSkeleton::ItemColor  *itemErrorTextColor;
  itemErrorTextColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "ErrorTextColor" ), mErrorTextColor, TQColor( "#ffffff" ) );
  addItem( itemErrorTextColor, TQString::fromLatin1( "ErrorTextColor" ) );

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

  TDEConfigSkeleton::ItemBool  *itemBeepOnError;
  itemBeepOnError = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "BeepOnError" ), mBeepOnError, true );
  addItem( itemBeepOnError, TQString::fromLatin1( "BeepOnError" ) );
  TDEConfigSkeleton::ItemBool  *itemSoundOnLevel;
  itemSoundOnLevel = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "SoundOnLevel" ), mSoundOnLevel, true );
  addItem( itemSoundOnLevel, TQString::fromLatin1( "SoundOnLevel" ) );
  TDEConfigSkeleton::ItemInt  *itemSlidingSpeed;
  itemSlidingSpeed = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "SlidingSpeed" ), mSlidingSpeed, 5 );
  addItem( itemSlidingSpeed, TQString::fromLatin1( "SlidingSpeed" ) );
  TDEConfigSkeleton::ItemInt  *itemMaxSlidingWidgetHeight;
  itemMaxSlidingWidgetHeight = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "MaxSlidingWidgetHeight" ), mMaxSlidingWidgetHeight, 200 );
  addItem( itemMaxSlidingWidgetHeight, TQString::fromLatin1( "MaxSlidingWidgetHeight" ) );
  TDEConfigSkeleton::ItemBool  *itemOverrideLectureFont;
  itemOverrideLectureFont = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "OverrideLectureFont" ), mOverrideLectureFont, false );
  addItem( itemOverrideLectureFont, TQString::fromLatin1( "OverrideLectureFont" ) );
  TDEConfigSkeleton::ItemFont  *itemFont;
  itemFont = new TDEConfigSkeleton::ItemFont( currentGroup(), TQString::fromLatin1( "Font" ), mFont, TQFont("Monospace") );
  addItem( itemFont, TQString::fromLatin1( "Font" ) );
  TDEConfigSkeleton::ItemPath  *itemCurrentLectureFile;
  itemCurrentLectureFile = new TDEConfigSkeleton::ItemPath( currentGroup(), TQString::fromLatin1( "CurrentLectureFile" ), mCurrentLectureFile, "default" );
  addItem( itemCurrentLectureFile, TQString::fromLatin1( "CurrentLectureFile" ) );
  TDEConfigSkeleton::ItemBool  *itemRight2LeftTyping;
  itemRight2LeftTyping = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "Right2LeftTyping" ), mRight2LeftTyping, false );
  addItem( itemRight2LeftTyping, TQString::fromLatin1( "Right2LeftTyping" ) );

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

  TDEConfigSkeleton::ItemBool  *itemShowAnimation;
  itemShowAnimation = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowAnimation" ), mShowAnimation, true );
  addItem( itemShowAnimation, TQString::fromLatin1( "ShowAnimation" ) );
  TDEConfigSkeleton::ItemBool  *itemHideKeyboard;
  itemHideKeyboard = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "HideKeyboard" ), mHideKeyboard, false );
  addItem( itemHideKeyboard, TQString::fromLatin1( "HideKeyboard" ) );
  TDEConfigSkeleton::ItemBool  *itemOverrideKeyboardFont;
  itemOverrideKeyboardFont = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "OverrideKeyboardFont" ), mOverrideKeyboardFont, false );
  addItem( itemOverrideKeyboardFont, TQString::fromLatin1( "OverrideKeyboardFont" ) );
  TDEConfigSkeleton::ItemFont  *itemKeyboardFont;
  itemKeyboardFont = new TDEConfigSkeleton::ItemFont( currentGroup(), TQString::fromLatin1( "KeyboardFont" ), mKeyboardFont, TDEGlobalSettings::generalFont() );
  addItem( itemKeyboardFont, TQString::fromLatin1( "KeyboardFont" ) );
  TDEConfigSkeleton::ItemPath  *itemCurrentKeyboardFile;
  itemCurrentKeyboardFile = new TDEConfigSkeleton::ItemPath( currentGroup(), TQString::fromLatin1( "CurrentKeyboardFile" ), mCurrentKeyboardFile, TQString::fromLatin1( "\"number.keyboard\"" ) );
  addItem( itemCurrentKeyboardFile, TQString::fromLatin1( "CurrentKeyboardFile" ) );

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

  TDEConfigSkeleton::ItemBool  *itemAutoLevelChange;
  itemAutoLevelChange = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "AutoLevelChange" ), mAutoLevelChange, true );
  addItem( itemAutoLevelChange, TQString::fromLatin1( "AutoLevelChange" ) );
  TDEConfigSkeleton::ItemBool  *itemDisableManualLevelChange;
  itemDisableManualLevelChange = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "DisableManualLevelChange" ), mDisableManualLevelChange, false );
  addItem( itemDisableManualLevelChange, TQString::fromLatin1( "DisableManualLevelChange" ) );
  TDEConfigSkeleton::ItemBool  *itemRememberLevel;
  itemRememberLevel = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "RememberLevel" ), mRememberLevel, true );
  addItem( itemRememberLevel, TQString::fromLatin1( "RememberLevel" ) );
  TDEConfigSkeleton::ItemInt  *itemCurrentTrainingLevel;
  itemCurrentTrainingLevel = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "CurrentTrainingLevel" ), mCurrentTrainingLevel, 0 );
  addItem( itemCurrentTrainingLevel, TQString::fromLatin1( "CurrentTrainingLevel" ) );
  TDEConfigSkeleton::ItemInt  *itemUpSpeedLimit;
  itemUpSpeedLimit = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "UpSpeedLimit" ), mUpSpeedLimit, 120 );
  addItem( itemUpSpeedLimit, TQString::fromLatin1( "UpSpeedLimit" ) );
  TDEConfigSkeleton::ItemInt  *itemUpCorrectLimit;
  itemUpCorrectLimit = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "UpCorrectLimit" ), mUpCorrectLimit, 85 );
  addItem( itemUpCorrectLimit, TQString::fromLatin1( "UpCorrectLimit" ) );
  TDEConfigSkeleton::ItemInt  *itemDownSpeedLimit;
  itemDownSpeedLimit = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "DownSpeedLimit" ), mDownSpeedLimit, 60 );
  addItem( itemDownSpeedLimit, TQString::fromLatin1( "DownSpeedLimit" ) );
  TDEConfigSkeleton::ItemInt  *itemDownCorrectLimit;
  itemDownCorrectLimit = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "DownCorrectLimit" ), mDownCorrectLimit, 60 );
  addItem( itemDownCorrectLimit, TQString::fromLatin1( "DownCorrectLimit" ) );
}

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

