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

#include "kvsprefs.h"

#include <kstaticdeleter.h>

KVSPrefs *KVSPrefs::mSelf = 0;
static KStaticDeleter<KVSPrefs> staticKVSPrefsDeleter;

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

  return mSelf;
}

KVSPrefs::KVSPrefs(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "kviewerpartrc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "GUI" ) );

  TDEConfigSkeleton::ItemBool  *itemPageMarks;
  itemPageMarks = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "PageMarks" ), mPageMarks, true );
  addItem( itemPageMarks, TQString::fromLatin1( "PageMarks" ) );
  TDEConfigSkeleton::ItemBool  *itemWatchFile;
  itemWatchFile = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "WatchFile" ), mWatchFile, true );
  addItem( itemWatchFile, TQString::fromLatin1( "WatchFile" ) );
  TDEConfigSkeleton::ItemBool  *itemRetainDocumentData;
  itemRetainDocumentData = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "RetainDocumentData" ), mRetainDocumentData, true );
  addItem( itemRetainDocumentData, TQString::fromLatin1( "RetainDocumentData" ) );
  TDEConfigSkeleton::ItemDouble  *itemZoom;
  itemZoom = new TDEConfigSkeleton::ItemDouble( currentGroup(), TQString::fromLatin1( "Zoom" ), mZoom, 1.0 );
  addItem( itemZoom, TQString::fromLatin1( "Zoom" ) );
  TDEConfigSkeleton::ItemString  *itemPaperFormat;
  itemPaperFormat = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "PaperFormat" ), mPaperFormat );
  addItem( itemPaperFormat, TQString::fromLatin1( "PaperFormat" ) );
  TDEConfigSkeleton::ItemBool  *itemScrollbars;
  itemScrollbars = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "Scrollbars" ), mScrollbars, true );
  addItem( itemScrollbars, TQString::fromLatin1( "Scrollbars" ) );
  TDEConfigSkeleton::ItemBool  *itemUseDocumentSpecifiedSize;
  itemUseDocumentSpecifiedSize = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "UseDocumentSpecifiedSize" ), mUseDocumentSpecifiedSize, true );
  addItem( itemUseDocumentSpecifiedSize, TQString::fromLatin1( "UseDocumentSpecifiedSize" ) );
  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesViewMode;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "SinglePage" );
    valuesViewMode.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Continuous" );
    valuesViewMode.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "ContinuousFacing" );
    valuesViewMode.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Overview" );
    valuesViewMode.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemViewMode;
  itemViewMode = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "ViewMode" ), mViewMode, valuesViewMode, EnumViewMode::Continuous );
  addItem( itemViewMode, TQString::fromLatin1( "ViewMode" ) );
  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesFitToPage;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "FitToPage" );
    valuesFitToPage.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "FitToPageWidth" );
    valuesFitToPage.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "FitToPageHeight" );
    valuesFitToPage.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "DontFit" );
    valuesFitToPage.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemFitToPage;
  itemFitToPage = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "FitToPage" ), mFitToPage, valuesFitToPage, EnumFitToPage::DontFit );
  addItem( itemFitToPage, TQString::fromLatin1( "FitToPage" ) );
  TDEConfigSkeleton::ItemInt  *itemOverviewModeColumns;
  itemOverviewModeColumns = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "OverviewModeColumns" ), mOverviewModeColumns, 4 );
  addItem( itemOverviewModeColumns, TQString::fromLatin1( "OverviewModeColumns" ) );
  TDEConfigSkeleton::ItemInt  *itemOverviewModeRows;
  itemOverviewModeRows = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "OverviewModeRows" ), mOverviewModeRows, 2 );
  addItem( itemOverviewModeRows, TQString::fromLatin1( "OverviewModeRows" ) );
  TDEConfigSkeleton::ItemBool  *itemShowThumbnails;
  itemShowThumbnails = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowThumbnails" ), mShowThumbnails, true );
  addItem( itemShowThumbnails, TQString::fromLatin1( "ShowThumbnails" ) );
  TDEConfigSkeleton::ItemInt  *itemMaxThumbnailWidth;
  itemMaxThumbnailWidth = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "MaxThumbnailWidth" ), mMaxThumbnailWidth, 200 );
  addItem( itemMaxThumbnailWidth, TQString::fromLatin1( "MaxThumbnailWidth" ) );
  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesUnderlineLinks;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Enabled" );
    valuesUnderlineLinks.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Disabled" );
    valuesUnderlineLinks.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "OnlyOnHover" );
    valuesUnderlineLinks.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemUnderlineLinks;
  itemUnderlineLinks = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "UnderlineLinks" ), mUnderlineLinks, valuesUnderlineLinks, EnumUnderlineLinks::Enabled );
  addItem( itemUnderlineLinks, TQString::fromLatin1( "UnderlineLinks" ) );
  TQValueList<int> defaultGuiLayout;

  TDEConfigSkeleton::ItemIntList  *itemGuiLayout;
  itemGuiLayout = new TDEConfigSkeleton::ItemIntList( currentGroup(), TQString::fromLatin1( "GuiLayout" ), mGuiLayout, defaultGuiLayout );
  addItem( itemGuiLayout, TQString::fromLatin1( "GuiLayout" ) );
  TDEConfigSkeleton::ItemInt  *itemSideBarItem;
  itemSideBarItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "SideBarItem" ), mSideBarItem, 1 );
  addItem( itemSideBarItem, TQString::fromLatin1( "SideBarItem" ) );

  setCurrentGroup( TQString::fromLatin1( "Accessibility" ) );

  TDEConfigSkeleton::ItemColor  *itemPaperColor;
  itemPaperColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "PaperColor" ), mPaperColor, TQt::white );
  addItem( itemPaperColor, TQString::fromLatin1( "PaperColor" ) );
  TDEConfigSkeleton::ItemBool  *itemChangeColors;
  itemChangeColors = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ChangeColors" ), mChangeColors, false );
  addItem( itemChangeColors, TQString::fromLatin1( "ChangeColors" ) );
  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesRenderMode;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Inverted" );
    valuesRenderMode.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Paper" );
    valuesRenderMode.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "pad_paper_color" );
    valuesRenderMode.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Recolor" );
    valuesRenderMode.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "pad_fg_color" );
    valuesRenderMode.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "pad_bg_color" );
    valuesRenderMode.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "BlackWhite" );
    valuesRenderMode.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemRenderMode;
  itemRenderMode = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "RenderMode" ), mRenderMode, valuesRenderMode, EnumRenderMode::Inverted );
  addItem( itemRenderMode, TQString::fromLatin1( "RenderMode" ) );
  TDEConfigSkeleton::ItemColor  *itemRecolorForeground;
  itemRecolorForeground = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "RecolorForeground" ), mRecolorForeground, 0x600000 );
  addItem( itemRecolorForeground, TQString::fromLatin1( "RecolorForeground" ) );
  TDEConfigSkeleton::ItemColor  *itemRecolorBackground;
  itemRecolorBackground = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "RecolorBackground" ), mRecolorBackground, 0xF0F0F0 );
  addItem( itemRecolorBackground, TQString::fromLatin1( "RecolorBackground" ) );
  TDEConfigSkeleton::ItemUInt  *itemBWThreshold;
  itemBWThreshold = new TDEConfigSkeleton::ItemUInt( currentGroup(), TQString::fromLatin1( "BWThreshold" ), mBWThreshold, 127 );
  itemBWThreshold->setMinValue(2);
  itemBWThreshold->setMaxValue(253);
  addItem( itemBWThreshold, TQString::fromLatin1( "BWThreshold" ) );
  TDEConfigSkeleton::ItemUInt  *itemBWContrast;
  itemBWContrast = new TDEConfigSkeleton::ItemUInt( currentGroup(), TQString::fromLatin1( "BWContrast" ), mBWContrast, 2 );
  itemBWContrast->setMinValue(2);
  itemBWContrast->setMaxValue(6);
  addItem( itemBWContrast, TQString::fromLatin1( "BWContrast" ) );
}

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

