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

#include "fileviewconfig.h"

#include <kstaticdeleter.h>

using namespace Gwenview;

FileViewConfig *FileViewConfig::mSelf = 0;
static KStaticDeleter<FileViewConfig> staticFileViewConfigDeleter;

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

  return mSelf;
}

FileViewConfig::FileViewConfig(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "gwenviewrc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "file widget" ) );

  TDEConfigSkeleton::ItemBool  *itemShowDirs;
  itemShowDirs = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "show dirs" ), mShowDirs, true );
  addItem( itemShowDirs, TQString::fromLatin1( "showDirs" ) );
  TDEConfigSkeleton::ItemBool  *itemLoadMetadata;
  itemLoadMetadata = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "load metadata" ), mLoadMetadata, true );
  addItem( itemLoadMetadata, TQString::fromLatin1( "loadMetadata" ) );
  TDEConfigSkeleton::ItemBool  *itemShowDotFiles;
  itemShowDotFiles = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "show dot files" ), mShowDotFiles, false );
  addItem( itemShowDotFiles, TQString::fromLatin1( "showDotFiles" ) );
  TDEConfigSkeleton::ItemBool  *itemStartWithThumbnails;
  itemStartWithThumbnails = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "start with thumbnails" ), mStartWithThumbnails, true );
  addItem( itemStartWithThumbnails, TQString::fromLatin1( "startWithThumbnails" ) );
  TDEConfigSkeleton::ItemInt  *itemThumbnailTextPos;
  itemThumbnailTextPos = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "item text pos" ), mThumbnailTextPos, TQIconView::Right );
  addItem( itemThumbnailTextPos, TQString::fromLatin1( "thumbnailTextPos" ) );
  TDEConfigSkeleton::ItemInt  *itemThumbnailSize;
  itemThumbnailSize = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "thumbnail size" ), mThumbnailSize, 48 );
  addItem( itemThumbnailSize, TQString::fromLatin1( "thumbnailSize" ) );
  TDEConfigSkeleton::ItemInt  *itemThumbnailMarginSize;
  itemThumbnailMarginSize = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "margin size" ), mThumbnailMarginSize, 5 );
  addItem( itemThumbnailMarginSize, TQString::fromLatin1( "thumbnailMarginSize" ) );
  TDEConfigSkeleton::ItemInt  *itemThumbnailDetails;
  itemThumbnailDetails = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "item details" ), mThumbnailDetails, 9 );
  addItem( itemThumbnailDetails, TQString::fromLatin1( "thumbnailDetails" ) );
  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesfilterMode;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "All" );
    valuesfilterMode.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "ImagesOnly" );
    valuesfilterMode.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "VideosOnly" );
    valuesfilterMode.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemFilterMode;
  itemFilterMode = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "filterMode" ), mFilterMode, valuesfilterMode, EnumFilterMode::All );
  addItem( itemFilterMode, TQString::fromLatin1( "filterMode" ) );
  TDEConfigSkeleton::ItemBool  *itemShowFilterBar;
  itemShowFilterBar = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "showFilterBar" ), mShowFilterBar, false );
  addItem( itemShowFilterBar, TQString::fromLatin1( "showFilterBar" ) );
  TDEConfigSkeleton::ItemString  *itemNameFilter;
  itemNameFilter = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "nameFilter" ), mNameFilter );
  addItem( itemNameFilter, TQString::fromLatin1( "nameFilter" ) );
  TDEConfigSkeleton::ItemDateTime  *itemFromDateFilter;
  itemFromDateFilter = new TDEConfigSkeleton::ItemDateTime( currentGroup(), TQString::fromLatin1( "fromDateFilter" ), mFromDateFilter );
  addItem( itemFromDateFilter, TQString::fromLatin1( "fromDateFilter" ) );
  TDEConfigSkeleton::ItemDateTime  *itemToDateFilter;
  itemToDateFilter = new TDEConfigSkeleton::ItemDateTime( currentGroup(), TQString::fromLatin1( "toDateFilter" ), mToDateFilter );
  addItem( itemToDateFilter, TQString::fromLatin1( "toDateFilter" ) );

  setCurrentGroup( TQString::fromLatin1( "thumbnail loading" ) );

  TDEConfigSkeleton::ItemBool  *itemStoreThumbnailsInCache;
  itemStoreThumbnailsInCache = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "path" ), mStoreThumbnailsInCache, true );
  addItem( itemStoreThumbnailsInCache, TQString::fromLatin1( "storeThumbnailsInCache" ) );

  setCurrentGroup( TQString::fromLatin1( "main window" ) );

  TDEConfigSkeleton::ItemBool  *itemDeleteCacheOnExit;
  itemDeleteCacheOnExit = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "Delete Thumbnail Cache whe exit" ), mDeleteCacheOnExit, false );
  addItem( itemDeleteCacheOnExit, TQString::fromLatin1( "deleteCacheOnExit" ) );
}

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

