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

#include "slideshowconfig.h"

#include <kstaticdeleter.h>

using namespace Gwenview;

SlideShowConfig *SlideShowConfig::mSelf = 0;
static KStaticDeleter<SlideShowConfig> staticSlideShowConfigDeleter;

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

  return mSelf;
}

SlideShowConfig::SlideShowConfig(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "gwenviewrc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "slide show" ) );

  TDEConfigSkeleton::ItemBool  *itemRandom;
  itemRandom = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "random" ), mRandom, false );
  addItem( itemRandom, TQString::fromLatin1( "random" ) );
  TDEConfigSkeleton::ItemBool  *itemFullscreen;
  itemFullscreen = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "fullscreen" ), mFullscreen, true );
  addItem( itemFullscreen, TQString::fromLatin1( "fullscreen" ) );
  TDEConfigSkeleton::ItemBool  *itemLoop;
  itemLoop = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "loop" ), mLoop, false );
  addItem( itemLoop, TQString::fromLatin1( "loop" ) );
  TDEConfigSkeleton::ItemBool  *itemStopAtEnd;
  itemStopAtEnd = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "stop at end" ), mStopAtEnd, false );
  addItem( itemStopAtEnd, TQString::fromLatin1( "stopAtEnd" ) );
  TDEConfigSkeleton::ItemDouble  *itemDelay;
  itemDelay = new TDEConfigSkeleton::ItemDouble( currentGroup(), TQString::fromLatin1( "delay" ), mDelay, 10.0 );
  addItem( itemDelay, TQString::fromLatin1( "delay" ) );
}

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

