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

#include "BaseConfig.h"

#include <klocale.h>

#include <kglobal.h>
#include <QtCore/QFile>

class BaseConfigHelper
{
  public:
    BaseConfigHelper() : q(0) {}
    ~BaseConfigHelper() { delete q; }
    BaseConfig *q;
};
K_GLOBAL_STATIC(BaseConfigHelper, s_globalBaseConfig)
BaseConfig *BaseConfig::self()
{
  if (!s_globalBaseConfig->q) {
    new BaseConfig;
    s_globalBaseConfig->q->readConfig();
  }

  return s_globalBaseConfig->q;
}

BaseConfig::BaseConfig(  )
  : KConfigSkeleton( QLatin1String( "systemsettingsrc" ) )
{
  Q_ASSERT(!s_globalBaseConfig->q);
  s_globalBaseConfig->q = this;
  setCurrentGroup( QLatin1String( "Main" ) );

  KConfigSkeleton::ItemBool  *itemShowToolTips;
  itemShowToolTips = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowToolTips" ), mShowToolTips, true );
  itemShowToolTips->setLabel( i18n("Determines whether detailed tooltips should be used") );
  addItem( itemShowToolTips, QLatin1String( "ShowToolTips" ) );
  KConfigSkeleton::ItemString  *itemActiveView;
  itemActiveView = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "ActiveView" ), mActiveView, QLatin1String( "icon_mode" ) );
  itemActiveView->setLabel( i18n("Internal name for the view used") );
  addItem( itemActiveView, QLatin1String( "ActiveView" ) );
}

BaseConfig::~BaseConfig()
{
  if (!s_globalBaseConfig.isDestroyed()) {
    s_globalBaseConfig->q = 0;
  }
}

