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

#include "configuration.h"

#include <kstaticdeleter.h>

Configuration *Configuration::mSelf = 0;
static KStaticDeleter<Configuration> staticConfigurationDeleter;

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

  return mSelf;
}

Configuration::Configuration(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "kghostviewrc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "General" ) );

  TDEConfigSkeleton::ItemBool  *itemAntialiasing;
  itemAntialiasing = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "Antialiasing" ), mAntialiasing );
  addItem( itemAntialiasing, TQString::fromLatin1( "Antialiasing" ) );
  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesPalette;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Color" );
    valuesPalette.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Grayscale" );
    valuesPalette.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Monochrome" );
    valuesPalette.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemPalette;
  itemPalette = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "Palette" ), mPalette, valuesPalette );
  addItem( itemPalette, TQString::fromLatin1( "Palette" ) );
  TDEConfigSkeleton::ItemBool  *itemMessages;
  itemMessages = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "Messages" ), mMessages, false );
  addItem( itemMessages, TQString::fromLatin1( "Messages" ) );
  TDEConfigSkeleton::ItemBool  *itemPlatformFonts;
  itemPlatformFonts = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "PlatformFonts" ), mPlatformFonts, true );
  addItem( itemPlatformFonts, TQString::fromLatin1( "PlatformFonts" ) );
  TDEConfigSkeleton::ItemBool  *itemShowPageList;
  itemShowPageList = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowPageList" ), mShowPageList, true );
  addItem( itemShowPageList, TQString::fromLatin1( "ShowPageList" ) );
  TDEConfigSkeleton::ItemBool  *itemShowPageNames;
  itemShowPageNames = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowPageNames" ), mShowPageNames, true );
  addItem( itemShowPageNames, TQString::fromLatin1( "ShowPageNames" ) );
  TDEConfigSkeleton::ItemBool  *itemShowScrollBars;
  itemShowScrollBars = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowScrollBars" ), mShowScrollBars, true );
  addItem( itemShowScrollBars, TQString::fromLatin1( "ShowScrollBars" ) );
  TDEConfigSkeleton::ItemBool  *itemWatchFile;
  itemWatchFile = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "WatchFile" ), mWatchFile, false );
  addItem( itemWatchFile, TQString::fromLatin1( "WatchFile" ) );
  TDEConfigSkeleton::ItemBool  *itemRetainDocumentData;
  itemRetainDocumentData = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "RetainDocumentData" ), mRetainDocumentData, true );
  addItem( itemRetainDocumentData, TQString::fromLatin1( "RetainDocumentData" ) );

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

  TDEConfigSkeleton::ItemString  *itemInterpreter;
  itemInterpreter = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "Interpreter" ), mInterpreter, TQString::fromLatin1( "gs" ) );
  addItem( itemInterpreter, TQString::fromLatin1( "Interpreter" ) );
  TDEConfigSkeleton::ItemString  *itemAntialiasingArguments;
  itemAntialiasingArguments = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "AntialiasingArguments" ), mAntialiasingArguments, TQString::fromLatin1( "-sDEVICE=x11 -dTextAlphaBits=4 -dGraphicsAlphaBits=2 -dMaxBitmap=10000000" ) );
  addItem( itemAntialiasingArguments, TQString::fromLatin1( "AntialiasingArguments" ) );
  TDEConfigSkeleton::ItemString  *itemNonAntialiasingArguments;
  itemNonAntialiasingArguments = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "NonAntialiasingArguments" ), mNonAntialiasingArguments, TQString::fromLatin1( "-sDEVICE=x11" ) );
  addItem( itemNonAntialiasingArguments, TQString::fromLatin1( "NonAntialiasingArguments" ) );
  TDEConfigSkeleton::ItemString  *itemVersion;
  itemVersion = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "Version" ), mVersion );
  addItem( itemVersion, TQString::fromLatin1( "Version" ) );
  TDEConfigSkeleton::ItemUInt  *itemRedetectionCounter;
  itemRedetectionCounter = new TDEConfigSkeleton::ItemUInt( currentGroup(), TQString::fromLatin1( "RedetectionCounter" ), mRedetectionCounter );
  addItem( itemRedetectionCounter, TQString::fromLatin1( "RedetectionCounter" ) );
}

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

