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

#include "kimpanelconfig.h"

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

class BaseSettingsHelper
{
  public:
    BaseSettingsHelper() : q(0) {}
    ~BaseSettingsHelper() { delete q; }
    BaseSettings *q;
};
K_GLOBAL_STATIC(BaseSettingsHelper, s_globalBaseSettings)
BaseSettings *BaseSettings::self()
{
  if (!s_globalBaseSettings->q) {
    new BaseSettings;
    s_globalBaseSettings->q->readConfig();
  }

  return s_globalBaseSettings->q;
}

BaseSettings::BaseSettings(  )
  : KConfigSkeleton( QLatin1String( "kimpanelrc" ) )
{
  Q_ASSERT(!s_globalBaseSettings->q);
  s_globalBaseSettings->q = this;
  setCurrentGroup( QLatin1String( "Layout" ) );

  KConfigSkeleton::ItemBool  *itemVerticalPreeditBar;
  itemVerticalPreeditBar = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "VerticalPreeditBar" ), mVerticalPreeditBar, false );
  addItem( itemVerticalPreeditBar, QLatin1String( "VerticalPreeditBar" ) );
  KConfigSkeleton::ItemBool  *itemUseReverse;
  itemUseReverse = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "UseReverse" ), mUseReverse, false );
  addItem( itemUseReverse, QLatin1String( "UseReverse" ) );
  KConfigSkeleton::ItemFont  *itemFont;
  itemFont = new KConfigSkeleton::ItemFont( currentGroup(), QLatin1String( "Font" ), mFont, KGlobalSettings::generalFont() );
  addItem( itemFont, QLatin1String( "Font" ) );
  KConfigSkeleton::ItemStringList  *itemStatusbarHiddenProperties;
  itemStatusbarHiddenProperties = new KConfigSkeleton::ItemStringList( currentGroup(), QLatin1String( "StatusbarHiddenProperties" ), mStatusbarHiddenProperties );
  addItem( itemStatusbarHiddenProperties, QLatin1String( "StatusbarHiddenProperties" ) );
  KConfigSkeleton::ItemUrl  *itemInputMethodLauncher;
  itemInputMethodLauncher = new KConfigSkeleton::ItemUrl( currentGroup(), QLatin1String( "inputMethodLauncher" ), mInputMethodLauncher );
  addItem( itemInputMethodLauncher, QLatin1String( "inputMethodLauncher" ) );
}

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

