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

#include "imageviewconfig.h"

#include <kstaticdeleter.h>

using namespace Gwenview;

ImageViewConfig *ImageViewConfig::mSelf = 0;
static KStaticDeleter<ImageViewConfig> staticImageViewConfigDeleter;

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

  return mSelf;
}

ImageViewConfig::ImageViewConfig(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "gwenviewrc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "pixmap widget" ) );

  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuessmoothAlgorithm;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "None" );
    valuessmoothAlgorithm.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Fast" );
    valuessmoothAlgorithm.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Normal" );
    valuessmoothAlgorithm.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Best" );
    valuessmoothAlgorithm.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemSmoothAlgorithm;
  itemSmoothAlgorithm = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "smooth scale" ), mSmoothAlgorithm, valuessmoothAlgorithm, EnumSmoothAlgorithm::None );
  addItem( itemSmoothAlgorithm, TQString::fromLatin1( "smoothAlgorithm" ) );
  TDEConfigSkeleton::ItemBool  *itemDelayedSmoothing;
  itemDelayedSmoothing = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "delayed smoothing" ), mDelayedSmoothing, false );
  addItem( itemDelayedSmoothing, TQString::fromLatin1( "delayedSmoothing" ) );
  TDEConfigSkeleton::ItemColor  *itemBackgroundColor;
  itemBackgroundColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "background color" ), mBackgroundColor, TQApplication::palette().active().dark() );
  addItem( itemBackgroundColor, TQString::fromLatin1( "backgroundColor" ) );
  TDEConfigSkeleton::ItemBool  *itemEnlargeSmallImages;
  itemEnlargeSmallImages = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "enlarge small images" ), mEnlargeSmallImages, false );
  addItem( itemEnlargeSmallImages, TQString::fromLatin1( "enlargeSmallImages" ) );
  TDEConfigSkeleton::ItemBool  *itemShowScrollBars;
  itemShowScrollBars = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "show scroll bars" ), mShowScrollBars, true );
  addItem( itemShowScrollBars, TQString::fromLatin1( "showScrollBars" ) );
  TDEConfigSkeleton::ItemBool  *itemMouseWheelScroll;
  itemMouseWheelScroll = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "mouse wheel scrolls image" ), mMouseWheelScroll, false );
  addItem( itemMouseWheelScroll, TQString::fromLatin1( "mouseWheelScroll" ) );
  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valueszoomMode;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "FitWindow" );
    valueszoomMode.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "FitWidth" );
    valueszoomMode.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "FitHeight" );
    valueszoomMode.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Free" );
    valueszoomMode.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemZoomMode;
  itemZoomMode = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "zoomMode" ), mZoomMode, valueszoomMode, EnumZoomMode::FitWindow );
  addItem( itemZoomMode, TQString::fromLatin1( "zoomMode" ) );
  TDEConfigSkeleton::ItemBool  *itemLockZoom;
  itemLockZoom = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "lockZoom" ), mLockZoom, false );
  addItem( itemLockZoom, TQString::fromLatin1( "lockZoom" ) );
  TDEConfigSkeleton::ItemInt  *itemMaxRepaintSize;
  itemMaxRepaintSize = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "max repaint size" ), mMaxRepaintSize, 10000 );
  addItem( itemMaxRepaintSize, TQString::fromLatin1( "maxRepaintSize" ) );
  TDEConfigSkeleton::ItemInt  *itemMaxScaleRepaintSize;
  itemMaxScaleRepaintSize = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "max scale repaint size" ), mMaxScaleRepaintSize, 10000 );
  addItem( itemMaxScaleRepaintSize, TQString::fromLatin1( "maxScaleRepaintSize" ) );
  TDEConfigSkeleton::ItemInt  *itemMaxSmoothRepaintSize;
  itemMaxSmoothRepaintSize = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "max smooth repaint size" ), mMaxSmoothRepaintSize, 10000 );
  addItem( itemMaxSmoothRepaintSize, TQString::fromLatin1( "maxSmoothRepaintSize" ) );
}

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

