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

#include "KJotsSettings.h"

#include <kstaticdeleter.h>

KJotsSettings *KJotsSettings::mSelf = 0;
static KStaticDeleter<KJotsSettings> staticKJotsSettingsDeleter;

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

  return mSelf;
}

KJotsSettings::KJotsSettings(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "kjotsrc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "kjots" ) );

  TQValueList<int> defaultSplitterSizes;

  TDEConfigSkeleton::ItemIntList  *itemSplitterSizes;
  itemSplitterSizes = new TDEConfigSkeleton::ItemIntList( currentGroup(), TQString::fromLatin1( "SplitterSizes" ), mSplitterSizes, defaultSplitterSizes );
  addItem( itemSplitterSizes, TQString::fromLatin1( "SplitterSizes" ) );
  TDEConfigSkeleton::ItemUInt64  *itemCurrentSelection;
  itemCurrentSelection = new TDEConfigSkeleton::ItemUInt64( currentGroup(), TQString::fromLatin1( "CurrentSelection" ), mCurrentSelection );
  addItem( itemCurrentSelection, TQString::fromLatin1( "CurrentSelection" ) );
  TDEConfigSkeleton::ItemFont  *itemFont;
  itemFont = new TDEConfigSkeleton::ItemFont( currentGroup(), TQString::fromLatin1( "Font" ), mFont, TDEGlobalSettings::generalFont() );
  addItem( itemFont, TQString::fromLatin1( "Font" ) );
  TDEConfigSkeleton::ItemBool  *itemAutoSave;
  itemAutoSave = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "AutoSave" ), mAutoSave, true );
  addItem( itemAutoSave, TQString::fromLatin1( "AutoSave" ) );
  TDEConfigSkeleton::ItemBool  *itemUnicode;
  itemUnicode = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "Unicode" ), mUnicode, false );
  addItem( itemUnicode, TQString::fromLatin1( "Unicode" ) );
  TDEConfigSkeleton::ItemInt  *itemAutoSaveInterval;
  itemAutoSaveInterval = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "AutoSaveInterval" ), mAutoSaveInterval, 5 );
  addItem( itemAutoSaveInterval, TQString::fromLatin1( "AutoSaveInterval" ) );
  TDEConfigSkeleton::ItemUInt64  *itemLastId;
  itemLastId = new TDEConfigSkeleton::ItemUInt64( currentGroup(), TQString::fromLatin1( "LastId" ), mLastId, 0 );
  addItem( itemLastId, TQString::fromLatin1( "LastId" ) );
}

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

