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

#include "settings.h"

#include <kstaticdeleter.h>

Settings *Settings::mSelf = 0;
static KStaticDeleter<Settings> staticSettingsDeleter;

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

  return mSelf;
}

Settings::Settings(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "kmplotrc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "Coordinate System" ) );

  TDEConfigSkeleton::ItemInt  *itemAxesLineWidth;
  itemAxesLineWidth = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "AxesLineWidth" ), mAxesLineWidth, 5 );
  addItem( itemAxesLineWidth, TQString::fromLatin1( "AxesLineWidth" ) );
  TDEConfigSkeleton::ItemBool  *itemShowLabel;
  itemShowLabel = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowLabel" ), mShowLabel, true );
  addItem( itemShowLabel, TQString::fromLatin1( "ShowLabel" ) );
  TDEConfigSkeleton::ItemBool  *itemShowAxes;
  itemShowAxes = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowAxes" ), mShowAxes, true );
  addItem( itemShowAxes, TQString::fromLatin1( "ShowAxes" ) );
  TDEConfigSkeleton::ItemBool  *itemShowArrows;
  itemShowArrows = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowArrows" ), mShowArrows, true );
  addItem( itemShowArrows, TQString::fromLatin1( "ShowArrows" ) );
  TDEConfigSkeleton::ItemInt  *itemGridLineWidth;
  itemGridLineWidth = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "GridLineWidth" ), mGridLineWidth, 1 );
  addItem( itemGridLineWidth, TQString::fromLatin1( "GridLineWidth" ) );
  TDEConfigSkeleton::ItemInt  *itemGridStyle;
  itemGridStyle = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "GridStyle" ), mGridStyle, 1 );
  addItem( itemGridStyle, TQString::fromLatin1( "GridStyle" ) );
  TDEConfigSkeleton::ItemBool  *itemShowFrame;
  itemShowFrame = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowFrame" ), mShowFrame, false );
  addItem( itemShowFrame, TQString::fromLatin1( "ShowFrame" ) );
  TDEConfigSkeleton::ItemBool  *itemShowExtraFrame;
  itemShowExtraFrame = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowExtraFrame" ), mShowExtraFrame, true );
  addItem( itemShowExtraFrame, TQString::fromLatin1( "ShowExtraFrame" ) );
  TDEConfigSkeleton::ItemInt  *itemTicLength;
  itemTicLength = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "TicLength" ), mTicLength, 10 );
  addItem( itemTicLength, TQString::fromLatin1( "TicLength" ) );
  TDEConfigSkeleton::ItemInt  *itemTicWidth;
  itemTicWidth = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "TicWidth" ), mTicWidth, 1 );
  addItem( itemTicWidth, TQString::fromLatin1( "TicWidth" ) );
  TDEConfigSkeleton::ItemInt  *itemPlotLineWidth;
  itemPlotLineWidth = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "PlotLineWidth" ), mPlotLineWidth, 5 );
  addItem( itemPlotLineWidth, TQString::fromLatin1( "PlotLineWidth" ) );
  TDEConfigSkeleton::ItemInt  *itemXRange;
  itemXRange = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "XRange" ), mXRange, 0 );
  addItem( itemXRange, TQString::fromLatin1( "XRange" ) );
  TDEConfigSkeleton::ItemInt  *itemYRange;
  itemYRange = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "YRange" ), mYRange, 0 );
  addItem( itemYRange, TQString::fromLatin1( "YRange" ) );
  TDEConfigSkeleton::ItemString  *itemXMin;
  itemXMin = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "XMin" ), mXMin, TQString::fromLatin1( "-2*pi" ) );
  addItem( itemXMin, TQString::fromLatin1( "XMin" ) );
  TDEConfigSkeleton::ItemString  *itemXMax;
  itemXMax = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "XMax" ), mXMax, TQString::fromLatin1( "2*pi" ) );
  addItem( itemXMax, TQString::fromLatin1( "XMax" ) );
  TDEConfigSkeleton::ItemString  *itemYMin;
  itemYMin = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "YMin" ), mYMin, TQString::fromLatin1( "-2*pi" ) );
  addItem( itemYMin, TQString::fromLatin1( "YMin" ) );
  TDEConfigSkeleton::ItemString  *itemYMax;
  itemYMax = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "YMax" ), mYMax, TQString::fromLatin1( "2*pi" ) );
  addItem( itemYMax, TQString::fromLatin1( "YMax" ) );

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

  TDEConfigSkeleton::ItemInt  *itemXScaling;
  itemXScaling = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "XScaling" ), mXScaling, 8 );
  addItem( itemXScaling, TQString::fromLatin1( "XScaling" ) );
  TDEConfigSkeleton::ItemInt  *itemYScaling;
  itemYScaling = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "YScaling" ), mYScaling, 8 );
  addItem( itemYScaling, TQString::fromLatin1( "YScaling" ) );
  TDEConfigSkeleton::ItemInt  *itemXPrinting;
  itemXPrinting = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "XPrinting" ), mXPrinting, 3 );
  addItem( itemXPrinting, TQString::fromLatin1( "XPrinting" ) );
  TDEConfigSkeleton::ItemInt  *itemYPrinting;
  itemYPrinting = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "YPrinting" ), mYPrinting, 3 );
  addItem( itemYPrinting, TQString::fromLatin1( "YPrinting" ) );

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

  TDEConfigSkeleton::ItemString  *itemAxesFont;
  itemAxesFont = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "AxesFont" ), mAxesFont, TDEGlobalSettings::generalFont().family() );
  addItem( itemAxesFont, TQString::fromLatin1( "AxesFont" ) );
  TDEConfigSkeleton::ItemInt  *itemAxesFontSize;
  itemAxesFontSize = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "AxesFontSize" ), mAxesFontSize, 40 );
  addItem( itemAxesFontSize, TQString::fromLatin1( "AxesFontSize" ) );
  TDEConfigSkeleton::ItemString  *itemHeaderTableFont;
  itemHeaderTableFont = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "HeaderTableFont" ), mHeaderTableFont, TDEGlobalSettings::generalFont().family() );
  addItem( itemHeaderTableFont, TQString::fromLatin1( "HeaderTableFont" ) );

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

  TDEConfigSkeleton::ItemColor  *itemAxesColor;
  itemAxesColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "AxesColor" ), mAxesColor );
  addItem( itemAxesColor, TQString::fromLatin1( "AxesColor" ) );
  TDEConfigSkeleton::ItemColor  *itemGridColor;
  itemGridColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "GridColor" ), mGridColor, TQColor( "#C0C0C0" ) );
  addItem( itemGridColor, TQString::fromLatin1( "GridColor" ) );
  TDEConfigSkeleton::ItemColor  *itemColor0;
  itemColor0 = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "Color0" ), mColor0, TQColor( "#FF0000" ) );
  addItem( itemColor0, TQString::fromLatin1( "Color0" ) );
  TDEConfigSkeleton::ItemColor  *itemColor1;
  itemColor1 = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "Color1" ), mColor1, TQColor( "#00FF00" ) );
  addItem( itemColor1, TQString::fromLatin1( "Color1" ) );
  TDEConfigSkeleton::ItemColor  *itemColor2;
  itemColor2 = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "Color2" ), mColor2, TQColor( "#0000FF" ) );
  addItem( itemColor2, TQString::fromLatin1( "Color2" ) );
  TDEConfigSkeleton::ItemColor  *itemColor3;
  itemColor3 = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "Color3" ), mColor3, TQColor( "#FF00FF" ) );
  addItem( itemColor3, TQString::fromLatin1( "Color3" ) );
  TDEConfigSkeleton::ItemColor  *itemColor4;
  itemColor4 = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "Color4" ), mColor4, TQColor( "#FFFF00" ) );
  addItem( itemColor4, TQString::fromLatin1( "Color4" ) );
  TDEConfigSkeleton::ItemColor  *itemColor5;
  itemColor5 = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "Color5" ), mColor5, TQColor( "#00FFFF" ) );
  addItem( itemColor5, TQString::fromLatin1( "Color5" ) );
  TDEConfigSkeleton::ItemColor  *itemColor6;
  itemColor6 = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "Color6" ), mColor6, TQColor( "#008000" ) );
  addItem( itemColor6, TQString::fromLatin1( "Color6" ) );
  TDEConfigSkeleton::ItemColor  *itemColor7;
  itemColor7 = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "Color7" ), mColor7, TQColor( "#000080" ) );
  addItem( itemColor7, TQString::fromLatin1( "Color7" ) );
  TDEConfigSkeleton::ItemColor  *itemColor8;
  itemColor8 = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "Color8" ), mColor8, TQColor( "#000000" ) );
  addItem( itemColor8, TQString::fromLatin1( "Color8" ) );
  TDEConfigSkeleton::ItemColor  *itemColor9;
  itemColor9 = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "Color9" ), mColor9, TQColor( "#000000" ) );
  addItem( itemColor9, TQString::fromLatin1( "Color9" ) );

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

  TDEConfigSkeleton::ItemDouble  *itemStepWidth;
  itemStepWidth = new TDEConfigSkeleton::ItemDouble( currentGroup(), TQString::fromLatin1( "stepWidth" ), mStepWidth, 1.0 );
  addItem( itemStepWidth, TQString::fromLatin1( "stepWidth" ) );
  TDEConfigSkeleton::ItemBool  *itemUseRelativeStepWidth;
  itemUseRelativeStepWidth = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "useRelativeStepWidth" ), mUseRelativeStepWidth, true );
  addItem( itemUseRelativeStepWidth, TQString::fromLatin1( "useRelativeStepWidth" ) );
  TDEConfigSkeleton::ItemBool  *itemAnglemode;
  itemAnglemode = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "anglemode" ), mAnglemode, false );
  addItem( itemAnglemode, TQString::fromLatin1( "anglemode" ) );
  TDEConfigSkeleton::ItemColor  *itemBackgroundcolor;
  itemBackgroundcolor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "backgroundcolor" ), mBackgroundcolor, TQColor( "#FFFFFF" ) );
  addItem( itemBackgroundcolor, TQString::fromLatin1( "backgroundcolor" ) );
  TDEConfigSkeleton::ItemInt  *itemZoomInStep;
  itemZoomInStep = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "zoomInStep" ), mZoomInStep, 20 );
  addItem( itemZoomInStep, TQString::fromLatin1( "zoomInStep" ) );
  TDEConfigSkeleton::ItemInt  *itemZoomOutStep;
  itemZoomOutStep = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "zoomOutStep" ), mZoomOutStep, 25 );
  addItem( itemZoomOutStep, TQString::fromLatin1( "zoomOutStep" ) );
}

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

