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

#include "settings.h"

#include <tdelocale.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( "yakuakerc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "Options" ) );

  mFirstrunItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "firstrun" ), mFirstrun, true );
  mFirstrunItem->setLabel( i18n("firstrun") );
  addItem( mFirstrunItem, TQString::fromLatin1( "firstrun" ) );
  mSkinItem = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "skin" ), mSkin, TQString::fromLatin1( "default" ) );
  mSkinItem->setLabel( i18n("skin") );
  addItem( mSkinItem, TQString::fromLatin1( "skin" ) );
  mSkinbgcolorItem = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "skinbgcolor" ), mSkinbgcolor, TQColor( "#000000" ) );
  mSkinbgcolorItem->setLabel( i18n("skinbgcolor") );
  addItem( mSkinbgcolorItem, TQString::fromLatin1( "skinbgcolor" ) );
  mStepsItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "steps" ), mSteps, 20 );
  mStepsItem->setLabel( i18n("steps") );
  addItem( mStepsItem, TQString::fromLatin1( "steps" ) );
  mWidthItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "width" ), mWidth, 90 );
  mWidthItem->setLabel( i18n("width") );
  addItem( mWidthItem, TQString::fromLatin1( "width" ) );
  mHeightItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "height" ), mHeight, 50 );
  mHeightItem->setLabel( i18n("height") );
  addItem( mHeightItem, TQString::fromLatin1( "height" ) );
  mScreenItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "screen" ), mScreen, 1 );
  mScreenItem->setLabel( i18n("screen") );
  addItem( mScreenItem, TQString::fromLatin1( "screen" ) );
  mLocationItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "location" ), mLocation, 50 );
  mLocationItem->setLabel( i18n("location") );
  addItem( mLocationItem, TQString::fromLatin1( "location" ) );
  mTabsItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "tabs" ), mTabs, true );
  mTabsItem->setLabel( i18n("tabs") );
  addItem( mTabsItem, TQString::fromLatin1( "tabs" ) );
  mTranslucencyItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "translucency" ), mTranslucency, true );
  mTranslucencyItem->setLabel( i18n("translucency") );
  addItem( mTranslucencyItem, TQString::fromLatin1( "translucency" ) );
  mFocusItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "focus" ), mFocus, true );
  mFocusItem->setLabel( i18n("focus") );
  addItem( mFocusItem, TQString::fromLatin1( "focus" ) );
  mFocusontoggleItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "focusontoggle" ), mFocusontoggle, true );
  mFocusontoggleItem->setLabel( i18n("focusontoggle") );
  addItem( mFocusontoggleItem, TQString::fromLatin1( "focusontoggle" ) );
  mKeepaboveItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "keepabove" ), mKeepabove, true );
  mKeepaboveItem->setLabel( i18n("keepabove") );
  addItem( mKeepaboveItem, TQString::fromLatin1( "keepabove" ) );
  mPopupItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "popup" ), mPopup, true );
  mPopupItem->setLabel( i18n("popup") );
  addItem( mPopupItem, TQString::fromLatin1( "popup" ) );
  mConfirmquitItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "confirmquit" ), mConfirmquit, true );
  mConfirmquitItem->setLabel( i18n("confirmquit") );
  addItem( mConfirmquitItem, TQString::fromLatin1( "confirmquit" ) );
  mPollItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "poll" ), mPoll, false );
  mPollItem->setLabel( i18n("poll") );
  addItem( mPollItem, TQString::fromLatin1( "poll" ) );
  mPollintervalItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "pollinterval" ), mPollinterval, 500 );
  mPollintervalItem->setLabel( i18n("pollinterval") );
  addItem( mPollintervalItem, TQString::fromLatin1( "pollinterval" ) );
}

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

