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

#include "skgoperation_settings.h"

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

class skgoperation_settingsHelper
{
  public:
    skgoperation_settingsHelper() : q(0) {}
    ~skgoperation_settingsHelper() { delete q; }
    skgoperation_settings *q;
};
K_GLOBAL_STATIC(skgoperation_settingsHelper, s_globalskgoperation_settings)
skgoperation_settings *skgoperation_settings::self()
{
  if (!s_globalskgoperation_settings->q) {
    new skgoperation_settings;
    s_globalskgoperation_settings->q->readConfig();
  }

  return s_globalskgoperation_settings->q;
}

skgoperation_settings::skgoperation_settings(  )
  : KConfigSkeleton()
{
  Q_ASSERT(!s_globalskgoperation_settings->q);
  s_globalskgoperation_settings->q = this;
  setCurrentGroup( QLatin1String( "skrooge_operation" ) );

  KConfigSkeleton::ItemColor  *itemFontFutureColor;
  itemFontFutureColor = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "fontFutureColor" ), mFontFutureColor, Qt::gray );
  addItem( itemFontFutureColor, QLatin1String( "fontFutureColor" ) );
  KConfigSkeleton::ItemColor  *itemFontNotValidatedColor;
  itemFontNotValidatedColor = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "fontNotValidatedColor" ), mFontNotValidatedColor, Qt::blue );
  addItem( itemFontNotValidatedColor, QLatin1String( "fontNotValidatedColor" ) );
  KConfigSkeleton::ItemColor  *itemFontSubOperationColor;
  itemFontSubOperationColor = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "fontSubOperationColor" ), mFontSubOperationColor, Qt::darkGreen );
  addItem( itemFontSubOperationColor, QLatin1String( "fontSubOperationColor" ) );
  KConfigSkeleton::ItemString  *itemFasteditmode;
  itemFasteditmode = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "fasteditmode" ), mFasteditmode, QLatin1String( "1" ) );
  addItem( itemFasteditmode, QLatin1String( "fasteditmode" ) );
  KConfigSkeleton::ItemBool  *itemComputeBalances;
  itemComputeBalances = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "computeBalances" ), mComputeBalances, true );
  addItem( itemComputeBalances, QLatin1String( "computeBalances" ) );
  KConfigSkeleton::ItemBool  *itemAutomaticPointInReconciliation;
  itemAutomaticPointInReconciliation = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "automaticPointInReconciliation" ), mAutomaticPointInReconciliation, true );
  addItem( itemAutomaticPointInReconciliation, QLatin1String( "automaticPointInReconciliation" ) );
  KConfigSkeleton::ItemString  *itemCommentFakeOperation;
  itemCommentFakeOperation = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "commentFakeOperation" ), mCommentFakeOperation, QLatin1String( "Fake operation" ) );
  addItem( itemCommentFakeOperation, QLatin1String( "commentFakeOperation" ) );
  KConfigSkeleton::ItemString  *itemPayeeFakeOperation;
  itemPayeeFakeOperation = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "payeeFakeOperation" ), mPayeeFakeOperation );
  addItem( itemPayeeFakeOperation, QLatin1String( "payeeFakeOperation" ) );
  KConfigSkeleton::ItemString  *itemCategoryFakeOperation;
  itemCategoryFakeOperation = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "categoryFakeOperation" ), mCategoryFakeOperation );
  addItem( itemCategoryFakeOperation, QLatin1String( "categoryFakeOperation" ) );
  KConfigSkeleton::ItemString  *itemCommentCommissionOperation;
  itemCommentCommissionOperation = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "commentCommissionOperation" ), mCommentCommissionOperation, QLatin1String( "Commission" ) );
  addItem( itemCommentCommissionOperation, QLatin1String( "commentCommissionOperation" ) );
  KConfigSkeleton::ItemString  *itemCategoryCommissionOperation;
  itemCategoryCommissionOperation = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "categoryCommissionOperation" ), mCategoryCommissionOperation );
  addItem( itemCategoryCommissionOperation, QLatin1String( "categoryCommissionOperation" ) );
  KConfigSkeleton::ItemString  *itemCommentTaxOperation;
  itemCommentTaxOperation = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "commentTaxOperation" ), mCommentTaxOperation, QLatin1String( "Tax" ) );
  addItem( itemCommentTaxOperation, QLatin1String( "commentTaxOperation" ) );
  KConfigSkeleton::ItemString  *itemCategoryTaxOperation;
  itemCategoryTaxOperation = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "categoryTaxOperation" ), mCategoryTaxOperation );
  addItem( itemCategoryTaxOperation, QLatin1String( "categoryTaxOperation" ) );
}

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

