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

#include "settings.h"

#include <kstaticdeleter.h>

KpdfSettings *KpdfSettings::mSelf = 0;
static KStaticDeleter<KpdfSettings> staticKpdfSettingsDeleter;

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

  return mSelf;
}

KpdfSettings::KpdfSettings(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "kpdfpartrc" ) )
{
  mSelf = this;
  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  *itemHighlightImages;
  itemHighlightImages = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "HighlightImages" ), mHighlightImages, false );
  addItem( itemHighlightImages, TQString::fromLatin1( "HighlightImages" ) );
  TDEConfigSkeleton::ItemBool  *itemHighlightLinks;
  itemHighlightLinks = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "HighlightLinks" ), mHighlightLinks, false );
  addItem( itemHighlightLinks, TQString::fromLatin1( "HighlightLinks" ) );
  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" ) );

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

  TDEConfigSkeleton::ItemBool  *itemShowOSD;
  itemShowOSD = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowOSD" ), mShowOSD, true );
  addItem( itemShowOSD, TQString::fromLatin1( "ShowOSD" ) );
  TDEConfigSkeleton::ItemBool  *itemWatchFile;
  itemWatchFile = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "WatchFile" ), mWatchFile, true );
  addItem( itemWatchFile, TQString::fromLatin1( "WatchFile" ) );
  TDEConfigSkeleton::ItemBool  *itemOpenInExistingKPDF;
  itemOpenInExistingKPDF = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "OpenInExistingKPDF" ), mOpenInExistingKPDF, false );
  addItem( itemOpenInExistingKPDF, TQString::fromLatin1( "OpenInExistingKPDF" ) );
  TDEConfigSkeleton::ItemBool  *itemTabsHoverCloseButton;
  itemTabsHoverCloseButton = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "TabsHoverCloseButton" ), mTabsHoverCloseButton, false );
  addItem( itemTabsHoverCloseButton, TQString::fromLatin1( "TabsHoverCloseButton" ) );
  TDEConfigSkeleton::ItemBool  *itemObeyDRM;
  itemObeyDRM = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ObeyDRM" ), mObeyDRM, true );
  addItem( itemObeyDRM, TQString::fromLatin1( "ObeyDRM" ) );
  TDEConfigSkeleton::ItemBool  *itemRetainDocumentData;
  itemRetainDocumentData = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "RetainDocumentData" ), mRetainDocumentData, true );
  addItem( itemRetainDocumentData, TQString::fromLatin1( "RetainDocumentData" ) );

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

  TDEConfigSkeleton::ItemBool  *itemShowLeftPanel;
  itemShowLeftPanel = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowLeftPanel" ), mShowLeftPanel, true );
  addItem( itemShowLeftPanel, TQString::fromLatin1( "ShowLeftPanel" ) );
  TDEConfigSkeleton::ItemBool  *itemShowSearchBar;
  itemShowSearchBar = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowSearchBar" ), mShowSearchBar, true );
  addItem( itemShowSearchBar, TQString::fromLatin1( "ShowSearchBar" ) );
  TQValueList<int> defaultSplitterSizes;

  TDEConfigSkeleton::ItemIntList  *itemSplitterSizes;
  itemSplitterSizes = new TDEConfigSkeleton::ItemIntList( currentGroup(), TQString::fromLatin1( "SplitterSizes" ), mSplitterSizes, defaultSplitterSizes );
  addItem( itemSplitterSizes, TQString::fromLatin1( "SplitterSizes" ) );

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

  TDEConfigSkeleton::ItemBool  *itemShowScrollBars;
  itemShowScrollBars = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowScrollBars" ), mShowScrollBars, true );
  addItem( itemShowScrollBars, TQString::fromLatin1( "ShowScrollBars" ) );
  TDEConfigSkeleton::ItemBool  *itemViewContinuous;
  itemViewContinuous = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ViewContinuous" ), mViewContinuous, true );
  addItem( itemViewContinuous, TQString::fromLatin1( "ViewContinuous" ) );
  TDEConfigSkeleton::ItemBool  *itemViewCoverPage;
  itemViewCoverPage = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ViewCoverPage" ), mViewCoverPage, false );
  addItem( itemViewCoverPage, TQString::fromLatin1( "ViewCoverPage" ) );
  TDEConfigSkeleton::ItemUInt  *itemViewColumns;
  itemViewColumns = new TDEConfigSkeleton::ItemUInt( currentGroup(), TQString::fromLatin1( "ViewColumns" ), mViewColumns, 1 );
  itemViewColumns->setMinValue(1);
  itemViewColumns->setMaxValue(8);
  addItem( itemViewColumns, TQString::fromLatin1( "ViewColumns" ) );
  TDEConfigSkeleton::ItemUInt  *itemZoomMode;
  itemZoomMode = new TDEConfigSkeleton::ItemUInt( currentGroup(), TQString::fromLatin1( "ZoomMode" ), mZoomMode, 0 );
  itemZoomMode->setMaxValue(2);
  addItem( itemZoomMode, TQString::fromLatin1( "ZoomMode" ) );
  TDEConfigSkeleton::ItemDouble  *itemZoomFactor;
  itemZoomFactor = new TDEConfigSkeleton::ItemDouble( currentGroup(), TQString::fromLatin1( "ZoomFactor" ), mZoomFactor, 1.0 );
  itemZoomFactor->setMinValue(0.1);
  itemZoomFactor->setMaxValue(4.0);
  addItem( itemZoomFactor, TQString::fromLatin1( "ZoomFactor" ) );

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

  TDEConfigSkeleton::ItemBool  *itemSyncThumbnailsViewport;
  itemSyncThumbnailsViewport = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "SyncThumbnailsViewport" ), mSyncThumbnailsViewport, true );
  addItem( itemSyncThumbnailsViewport, TQString::fromLatin1( "SyncThumbnailsViewport" ) );

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

  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesMemoryLevel;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Low" );
    valuesMemoryLevel.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Normal" );
    valuesMemoryLevel.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Aggressive" );
    valuesMemoryLevel.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "pad_description" );
    valuesMemoryLevel.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemMemoryLevel;
  itemMemoryLevel = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "MemoryLevel" ), mMemoryLevel, valuesMemoryLevel, EnumMemoryLevel::Normal );
  addItem( itemMemoryLevel, TQString::fromLatin1( "MemoryLevel" ) );
  TDEConfigSkeleton::ItemBool  *itemEnableCompositing;
  itemEnableCompositing = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "EnableCompositing" ), mEnableCompositing, true );
  addItem( itemEnableCompositing, TQString::fromLatin1( "EnableCompositing" ) );
  TDEConfigSkeleton::ItemBool  *itemEnableThreading;
  itemEnableThreading = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "EnableThreading" ), mEnableThreading, true );
  addItem( itemEnableThreading, TQString::fromLatin1( "EnableThreading" ) );

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

  TDEConfigSkeleton::ItemBool  *itemSlidesAdvance;
  itemSlidesAdvance = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "SlidesAdvance" ), mSlidesAdvance, false );
  addItem( itemSlidesAdvance, TQString::fromLatin1( "SlidesAdvance" ) );
  TDEConfigSkeleton::ItemUInt  *itemSlidesAdvanceTime;
  itemSlidesAdvanceTime = new TDEConfigSkeleton::ItemUInt( currentGroup(), TQString::fromLatin1( "SlidesAdvanceTime" ), mSlidesAdvanceTime, 5 );
  itemSlidesAdvanceTime->setMinValue(1);
  itemSlidesAdvanceTime->setMaxValue(3600);
  addItem( itemSlidesAdvanceTime, TQString::fromLatin1( "SlidesAdvanceTime" ) );
  TDEConfigSkeleton::ItemBool  *itemSlidesLoop;
  itemSlidesLoop = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "SlidesLoop" ), mSlidesLoop, false );
  addItem( itemSlidesLoop, TQString::fromLatin1( "SlidesLoop" ) );
  TDEConfigSkeleton::ItemColor  *itemSlidesBackgroundColor;
  itemSlidesBackgroundColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "SlidesBackgroundColor" ), mSlidesBackgroundColor, TQt::black );
  addItem( itemSlidesBackgroundColor, TQString::fromLatin1( "SlidesBackgroundColor" ) );
  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesSlidesTransition;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "BlindsHorizontal" );
    valuesSlidesTransition.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "BlindsVertical" );
    valuesSlidesTransition.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "BoxIn" );
    valuesSlidesTransition.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "BoxOut" );
    valuesSlidesTransition.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Dissolve" );
    valuesSlidesTransition.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "GlitterDown" );
    valuesSlidesTransition.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "GlitterRight" );
    valuesSlidesTransition.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "GlitterRightDown" );
    valuesSlidesTransition.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Random" );
    valuesSlidesTransition.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Replace" );
    valuesSlidesTransition.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "SplitHorizontalIn" );
    valuesSlidesTransition.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "SplitHorizontalOut" );
    valuesSlidesTransition.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "SplitVerticalIn" );
    valuesSlidesTransition.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "SplitVerticalOut" );
    valuesSlidesTransition.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "WipeDown" );
    valuesSlidesTransition.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "WipeRight" );
    valuesSlidesTransition.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "WipeLeft" );
    valuesSlidesTransition.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "WipeUp" );
    valuesSlidesTransition.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemSlidesTransition;
  itemSlidesTransition = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "SlidesTransition" ), mSlidesTransition, valuesSlidesTransition, EnumSlidesTransition::Replace );
  addItem( itemSlidesTransition, TQString::fromLatin1( "SlidesTransition" ) );
  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesSlidesCursor;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "HiddenDelay" );
    valuesSlidesCursor.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Visible" );
    valuesSlidesCursor.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Hidden" );
    valuesSlidesCursor.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemSlidesCursor;
  itemSlidesCursor = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "SlidesCursor" ), mSlidesCursor, valuesSlidesCursor, EnumSlidesCursor::HiddenDelay );
  addItem( itemSlidesCursor, TQString::fromLatin1( "SlidesCursor" ) );
  TDEConfigSkeleton::ItemBool  *itemSlidesShowProgress;
  itemSlidesShowProgress = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "SlidesShowProgress" ), mSlidesShowProgress, true );
  addItem( itemSlidesShowProgress, TQString::fromLatin1( "SlidesShowProgress" ) );
  TDEConfigSkeleton::ItemBool  *itemSlidesShowSummary;
  itemSlidesShowSummary = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "SlidesShowSummary" ), mSlidesShowSummary, false );
  addItem( itemSlidesShowSummary, TQString::fromLatin1( "SlidesShowSummary" ) );

  setCurrentGroup( TQString::fromLatin1( "Internal Status" ) );

  TDEConfigSkeleton::ItemBool  *itemFilterBookmarks;
  itemFilterBookmarks = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "FilterBookmarks" ), mFilterBookmarks, false );
  addItem( itemFilterBookmarks, TQString::fromLatin1( "FilterBookmarks" ) );
  TDEConfigSkeleton::ItemBool  *itemUseKTTSD;
  itemUseKTTSD = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "UseKTTSD" ), mUseKTTSD );
  addItem( itemUseKTTSD, TQString::fromLatin1( "UseKTTSD" ) );

  setCurrentGroup( TQString::fromLatin1( "Debugging Options" ) );

  TDEConfigSkeleton::ItemBool  *itemDebugDrawBoundaries;
  itemDebugDrawBoundaries = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "DebugDrawBoundaries" ), mDebugDrawBoundaries, false );
  addItem( itemDebugDrawBoundaries, TQString::fromLatin1( "DebugDrawBoundaries" ) );
}

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

