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

#include "miscconfig.h"

#include <kstaticdeleter.h>

using namespace Gwenview;

MiscConfig *MiscConfig::mSelf = 0;
static KStaticDeleter<MiscConfig> staticMiscConfigDeleter;

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

  return mSelf;
}

MiscConfig::MiscConfig(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "gwenviewrc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "misc" ) );

  TDEConfigSkeleton::ItemBool  *itemAutoRotateImages;
  itemAutoRotateImages = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "autoRotateImages" ), mAutoRotateImages, true );
  addItem( itemAutoRotateImages, TQString::fromLatin1( "autoRotateImages" ) );
  TDEConfigSkeleton::ItemPathList  *itemHistory;
  itemHistory = new TDEConfigSkeleton::ItemPathList( currentGroup(), TQString::fromLatin1( "history" ), mHistory );
  addItem( itemHistory, TQString::fromLatin1( "history" ) );
  TDEConfigSkeleton::ItemBool  *itemRememberFilter;
  itemRememberFilter = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "rememberFilter" ), mRememberFilter, false );
  addItem( itemRememberFilter, TQString::fromLatin1( "rememberFilter" ) );
  TDEConfigSkeleton::ItemBool  *itemRememberURL;
  itemRememberURL = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "rememberURL" ), mRememberURL, false );
  addItem( itemRememberURL, TQString::fromLatin1( "rememberURL" ) );

  setCurrentGroup( TQString::fromLatin1( "Notification Messages" ) );

  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesmodifiedBehavior;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "ask" );
    valuesmodifiedBehavior.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "yes" );
    valuesmodifiedBehavior.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "no" );
    valuesmodifiedBehavior.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemModifiedBehavior;
  itemModifiedBehavior = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "save automatically" ), mModifiedBehavior, valuesmodifiedBehavior );
  addItem( itemModifiedBehavior, TQString::fromLatin1( "modifiedBehavior" ) );
}

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

