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

#include "skgundoredo_settings.h"

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

class skgundoredo_settingsHelper
{
  public:
    skgundoredo_settingsHelper() : q(0) {}
    ~skgundoredo_settingsHelper() { delete q; }
    skgundoredo_settings *q;
};
K_GLOBAL_STATIC(skgundoredo_settingsHelper, s_globalskgundoredo_settings)
skgundoredo_settings *skgundoredo_settings::self()
{
  if (!s_globalskgundoredo_settings->q) {
    new skgundoredo_settings;
    s_globalskgundoredo_settings->q->readConfig();
  }

  return s_globalskgundoredo_settings->q;
}

skgundoredo_settings::skgundoredo_settings(  )
  : KConfigSkeleton()
{
  Q_ASSERT(!s_globalskgundoredo_settings->q);
  s_globalskgundoredo_settings->q = this;
  setCurrentGroup( QLatin1String( "skg_undoredo" ) );

  KConfigSkeleton::ItemInt  *itemMaxNumberOfUndo;
  itemMaxNumberOfUndo = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "maxNumberOfUndo" ), mMaxNumberOfUndo, 50 );
  addItem( itemMaxNumberOfUndo, QLatin1String( "maxNumberOfUndo" ) );
  KConfigSkeleton::ItemBool  *itemCleanHistoryOnSave;
  itemCleanHistoryOnSave = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "cleanHistoryOnSave" ), mCleanHistoryOnSave, false );
  addItem( itemCleanHistoryOnSave, QLatin1String( "cleanHistoryOnSave" ) );
}

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

