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

#include "kmymoneysettings.h"

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

class KMyMoneySettingsHelper
{
  public:
    KMyMoneySettingsHelper() : q(0) {}
    ~KMyMoneySettingsHelper() { delete q; }
    KMyMoneySettings *q;
};
K_GLOBAL_STATIC(KMyMoneySettingsHelper, s_globalKMyMoneySettings)
KMyMoneySettings *KMyMoneySettings::self()
{
  if (!s_globalKMyMoneySettings->q) {
    new KMyMoneySettings;
    s_globalKMyMoneySettings->q->readConfig();
  }

  return s_globalKMyMoneySettings->q;
}

KMyMoneySettings::KMyMoneySettings(  )
  : KConfigSkeleton( QLatin1String( "kmymoneyrc" ) )
{
  Q_ASSERT(!s_globalKMyMoneySettings->q);
  s_globalKMyMoneySettings->q = this;
  setCurrentGroup( QLatin1String( "General Options" ) );

  KConfigSkeleton::ItemBool  *itemAlwaysShowNrField;
  itemAlwaysShowNrField = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "AlwaysShowNrField" ), mAlwaysShowNrField, false );
  addItem( itemAlwaysShowNrField, QLatin1String( "AlwaysShowNrField" ) );
  KConfigSkeleton::ItemInt  *itemAutoFillTransaction;
  itemAutoFillTransaction = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "AutoFillTransaction" ), mAutoFillTransaction, 1 );
  addItem( itemAutoFillTransaction, QLatin1String( "AutoFillTransaction" ) );
  KConfigSkeleton::ItemInt  *itemAutoFillDifference;
  itemAutoFillDifference = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "AutoFillDifference" ), mAutoFillDifference, 10 );
  addItem( itemAutoFillDifference, QLatin1String( "AutoFillDifference" ) );
  KConfigSkeleton::ItemBool  *itemAutoFillUseMemos;
  itemAutoFillUseMemos = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "AutoFillUseMemos" ), mAutoFillUseMemos, true );
  addItem( itemAutoFillUseMemos, QLatin1String( "AutoFillUseMemos" ) );
  KConfigSkeleton::ItemBool  *itemAutoIncCheckNumber;
  itemAutoIncCheckNumber = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "AutoIncCheckNumber" ), mAutoIncCheckNumber, true );
  addItem( itemAutoIncCheckNumber, QLatin1String( "AutoIncCheckNumber" ) );
  KConfigSkeleton::ItemBool  *itemAutoSaveFile;
  itemAutoSaveFile = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "AutoSaveFile" ), mAutoSaveFile, false );
  addItem( itemAutoSaveFile, QLatin1String( "AutoSaveFile" ) );
  KConfigSkeleton::ItemBool  *itemAutoReconciliation;
  itemAutoReconciliation = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "AutoReconciliation" ), mAutoReconciliation, false );
  addItem( itemAutoReconciliation, QLatin1String( "AutoReconciliation" ) );
  KConfigSkeleton::ItemInt  *itemAutoBackupCopies;
  itemAutoBackupCopies = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "AutoBackupCopies" ), mAutoBackupCopies, 0 );
  itemAutoBackupCopies->setMinValue(0);
  itemAutoBackupCopies->setMaxValue(20);
  addItem( itemAutoBackupCopies, QLatin1String( "AutoBackupCopies" ) );
  KConfigSkeleton::ItemInt  *itemAutoSavePeriod;
  itemAutoSavePeriod = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "AutoSavePeriod" ), mAutoSavePeriod, 10 );
  itemAutoSavePeriod->setMinValue(0);
  itemAutoSavePeriod->setMaxValue(60);
  addItem( itemAutoSavePeriod, QLatin1String( "AutoSavePeriod" ) );
  KConfigSkeleton::ItemBool  *itemAutoSaveOnClose;
  itemAutoSaveOnClose = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "AutoSaveOnClose" ), mAutoSaveOnClose, false );
  addItem( itemAutoSaveOnClose, QLatin1String( "AutoSaveOnClose" ) );
  KConfigSkeleton::ItemBool  *itemCheckSchedule;
  itemCheckSchedule = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "CheckSchedule" ), mCheckSchedule, false );
  addItem( itemCheckSchedule, QLatin1String( "CheckSchedule" ) );
  KConfigSkeleton::ItemInt  *itemCheckSchedulePreview;
  itemCheckSchedulePreview = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "CheckSchedulePreview" ), mCheckSchedulePreview, 0 );
  itemCheckSchedulePreview->setMinValue(0);
  itemCheckSchedulePreview->setMaxValue(999);
  addItem( itemCheckSchedulePreview, QLatin1String( "CheckSchedulePreview" ) );
  KConfigSkeleton::ItemString  *itemExternalCalculator;
  itemExternalCalculator = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "ExternalCalculator" ), mExternalCalculator );
  addItem( itemExternalCalculator, QLatin1String( "ExternalCalculator" ) );
  KConfigSkeleton::ItemString  *itemHolidayRegion;
  itemHolidayRegion = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "HolidayRegion" ), mHolidayRegion, QLatin1String( "(None)" ) );
  addItem( itemHolidayRegion, QLatin1String( "HolidayRegion" ) );
  KConfigSkeleton::ItemInt  *itemSchedulePreview;
  itemSchedulePreview = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "SchedulePreview" ), mSchedulePreview, 0 );
  itemSchedulePreview->setMinValue(0);
  itemSchedulePreview->setMaxValue(999);
  addItem( itemSchedulePreview, QLatin1String( "SchedulePreview" ) );
  KConfigSkeleton::ItemBool  *itemCopyTypeToNr;
  itemCopyTypeToNr = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "CopyTypeToNr" ), mCopyTypeToNr, false );
  addItem( itemCopyTypeToNr, QLatin1String( "CopyTypeToNr" ) );
  KConfigSkeleton::ItemBool  *itemFocusChangeIsEnter;
  itemFocusChangeIsEnter = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "FocusChangeIsEnter" ), mFocusChangeIsEnter, false );
  addItem( itemFocusChangeIsEnter, QLatin1String( "FocusChangeIsEnter" ) );
  KConfigSkeleton::ItemBool  *itemEnterMovesBetweenFields;
  itemEnterMovesBetweenFields = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "EnterMovesBetweenFields" ), mEnterMovesBetweenFields, false );
  addItem( itemEnterMovesBetweenFields, QLatin1String( "EnterMovesBetweenFields" ) );
  KConfigSkeleton::ItemBool  *itemLedgerLens;
  itemLedgerLens = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "LedgerLens" ), mLedgerLens, false );
  addItem( itemLedgerLens, QLatin1String( "LedgerLens" ) );
  KConfigSkeleton::ItemInt  *itemPricePrecision;
  itemPricePrecision = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "PricePrecision" ), mPricePrecision, 4 );
  itemPricePrecision->setMinValue(4);
  itemPricePrecision->setMaxValue(10);
  addItem( itemPricePrecision, QLatin1String( "PricePrecision" ) );
  KConfigSkeleton::ItemBool  *itemPriceHistoryUpdate;
  itemPriceHistoryUpdate = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "PriceHistoryUpdate" ), mPriceHistoryUpdate, true );
  addItem( itemPriceHistoryUpdate, QLatin1String( "PriceHistoryUpdate" ) );
  KConfigSkeleton::ItemBool  *itemTransactionForm;
  itemTransactionForm = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "TransactionForm" ), mTransactionForm, true );
  addItem( itemTransactionForm, QLatin1String( "TransactionForm" ) );
  KConfigSkeleton::ItemInt  *itemStartLastViewSelected;
  itemStartLastViewSelected = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "StartLastViewSelected" ), mStartLastViewSelected, 0 );
  addItem( itemStartLastViewSelected, QLatin1String( "StartLastViewSelected" ) );
  KConfigSkeleton::ItemInt  *itemLastViewSelected;
  itemLastViewSelected = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "LastViewSelected" ), mLastViewSelected, 0 );
  addItem( itemLastViewSelected, QLatin1String( "LastViewSelected" ) );
  KConfigSkeleton::ItemBool  *itemWriteDataEncrypted;
  itemWriteDataEncrypted = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "WriteDataEncrypted" ), mWriteDataEncrypted, false );
  addItem( itemWriteDataEncrypted, QLatin1String( "WriteDataEncrypted" ) );
  KConfigSkeleton::ItemBool  *itemEncryptRecover;
  itemEncryptRecover = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "EncryptRecover" ), mEncryptRecover, false );
  addItem( itemEncryptRecover, QLatin1String( "EncryptRecover" ) );
  KConfigSkeleton::ItemString  *itemGpgRecipient;
  itemGpgRecipient = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "GpgRecipient" ), mGpgRecipient );
  addItem( itemGpgRecipient, QLatin1String( "GpgRecipient" ) );
  KConfigSkeleton::ItemStringList  *itemGpgRecipientList;
  itemGpgRecipientList = new KConfigSkeleton::ItemStringList( currentGroup(), QLatin1String( "GpgRecipientList" ), mGpgRecipientList );
  addItem( itemGpgRecipientList, QLatin1String( "GpgRecipientList" ) );
  KConfigSkeleton::ItemBool  *itemExpertMode;
  itemExpertMode = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ExpertMode" ), mExpertMode, false );
  addItem( itemExpertMode, QLatin1String( "ExpertMode" ) );
  KConfigSkeleton::ItemBool  *itemShowSplash;
  itemShowSplash = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowSplash" ), mShowSplash, true );
  addItem( itemShowSplash, QLatin1String( "ShowSplash" ) );
  KConfigSkeleton::ItemBool  *itemSyncLedgerInvestment;
  itemSyncLedgerInvestment = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "syncLedgerInvestment" ), mSyncLedgerInvestment, true );
  addItem( itemSyncLedgerInvestment, QLatin1String( "syncLedgerInvestment" ) );
  KConfigSkeleton::ItemInt  *itemViewType;
  itemViewType = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "viewType" ), mViewType, 0 );
  addItem( itemViewType, QLatin1String( "viewType" ) );
  KConfigSkeleton::ItemBool  *itemFirstTimeRun;
  itemFirstTimeRun = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "firstTimeRun" ), mFirstTimeRun, true );
  addItem( itemFirstTimeRun, QLatin1String( "firstTimeRun" ) );
  KConfigSkeleton::ItemBool  *itemShowTitleBar;
  itemShowTitleBar = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "showTitleBar" ), mShowTitleBar, true );
  addItem( itemShowTitleBar, QLatin1String( "showTitleBar" ) );
  KConfigSkeleton::ItemBool  *itemStringMatchFromStart;
  itemStringMatchFromStart = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "stringMatchFromStart" ), mStringMatchFromStart, false );
  addItem( itemStringMatchFromStart, QLatin1String( "stringMatchFromStart" ) );
  KConfigSkeleton::ItemString  *itemStdTransactionFormTabOrder;
  itemStdTransactionFormTabOrder = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "stdTransactionFormTabOrder" ), mStdTransactionFormTabOrder, QLatin1String( "account,cashflow,payee,category,tag,memo,number,date,amount,state" ) );
  addItem( itemStdTransactionFormTabOrder, QLatin1String( "stdTransactionFormTabOrder" ) );
  KConfigSkeleton::ItemString  *itemStdTransactionRegisterTabOrder;
  itemStdTransactionRegisterTabOrder = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "stdTransactionRegisterTabOrder" ), mStdTransactionRegisterTabOrder, QLatin1String( "number,date,payee,category,tag,memo,payment,deposit,state" ) );
  addItem( itemStdTransactionRegisterTabOrder, QLatin1String( "stdTransactionRegisterTabOrder" ) );

  setCurrentGroup( QLatin1String( "Homepage Options" ) );

  KConfigSkeleton::ItemString  *itemItemList;
  itemItemList = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "ItemList" ), mItemList, QLatin1String( "8,1,2,3,4,5,6,7,-9,10" ) );
  addItem( itemItemList, QLatin1String( "ItemList" ) );
  KConfigSkeleton::ItemInt  *itemFontSizePercentage;
  itemFontSizePercentage = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "FontSizePercentage" ), mFontSizePercentage, 100 );
  addItem( itemFontSizePercentage, QLatin1String( "FontSizePercentage" ) );
  KConfigSkeleton::ItemBool  *itemRememberFontSize;
  itemRememberFontSize = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "RememberFontSize" ), mRememberFontSize, true );
  addItem( itemRememberFontSize, QLatin1String( "RememberFontSize" ) );
  KConfigSkeleton::ItemBool  *itemShowLimitInfo;
  itemShowLimitInfo = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowLimitInfo" ), mShowLimitInfo, true );
  addItem( itemShowLimitInfo, QLatin1String( "ShowLimitInfo" ) );
  KConfigSkeleton::ItemBool  *itemShowBalanceStatusOfOnlineAccounts;
  itemShowBalanceStatusOfOnlineAccounts = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowBalanceStatusOfOnlineAccounts" ), mShowBalanceStatusOfOnlineAccounts, false );
  addItem( itemShowBalanceStatusOfOnlineAccounts, QLatin1String( "ShowBalanceStatusOfOnlineAccounts" ) );
  KConfigSkeleton::ItemBool  *itemShowCountOfUnmarkedTransactions;
  itemShowCountOfUnmarkedTransactions = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowCountOfUnmarkedTransactions" ), mShowCountOfUnmarkedTransactions, false );
  addItem( itemShowCountOfUnmarkedTransactions, QLatin1String( "ShowCountOfUnmarkedTransactions" ) );
  KConfigSkeleton::ItemBool  *itemShowCountOfClearedTransactions;
  itemShowCountOfClearedTransactions = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowCountOfClearedTransactions" ), mShowCountOfClearedTransactions, false );
  addItem( itemShowCountOfClearedTransactions, QLatin1String( "ShowCountOfClearedTransactions" ) );
  KConfigSkeleton::ItemBool  *itemShowCountOfNotReconciledTransactions;
  itemShowCountOfNotReconciledTransactions = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowCountOfNotReconciledTransactions" ), mShowCountOfNotReconciledTransactions, false );
  addItem( itemShowCountOfNotReconciledTransactions, QLatin1String( "ShowCountOfNotReconciledTransactions" ) );

  setCurrentGroup( QLatin1String( "List Options" ) );

  KConfigSkeleton::ItemBool  *itemHideUnusedCategory;
  itemHideUnusedCategory = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "HideUnusedCategory" ), mHideUnusedCategory, false );
  addItem( itemHideUnusedCategory, QLatin1String( "HideUnusedCategory" ) );
  KConfigSkeleton::ItemBool  *itemHideClosedAccounts;
  itemHideClosedAccounts = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "HideClosedAccounts" ), mHideClosedAccounts, false );
  addItem( itemHideClosedAccounts, QLatin1String( "HideClosedAccounts" ) );
  KConfigSkeleton::ItemBool  *itemShowCategoriesInAccountsView;
  itemShowCategoriesInAccountsView = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowCategoriesInAccountsView" ), mShowCategoriesInAccountsView, false );
  addItem( itemShowCategoriesInAccountsView, QLatin1String( "ShowCategoriesInAccountsView" ) );
  KConfigSkeleton::ItemBool  *itemHideFinishedSchedules;
  itemHideFinishedSchedules = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "HideFinishedSchedules" ), mHideFinishedSchedules, false );
  addItem( itemHideFinishedSchedules, QLatin1String( "HideFinishedSchedules" ) );
  KConfigSkeleton::ItemBool  *itemHideReconciledTransactions;
  itemHideReconciledTransactions = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "HideReconciledTransactions" ), mHideReconciledTransactions, false );
  addItem( itemHideReconciledTransactions, QLatin1String( "HideReconciledTransactions" ) );
  KConfigSkeleton::ItemBool  *itemShowRegisterDetailed;
  itemShowRegisterDetailed = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowRegisterDetailed" ), mShowRegisterDetailed, false );
  addItem( itemShowRegisterDetailed, QLatin1String( "ShowRegisterDetailed" ) );
  KConfigSkeleton::ItemBool  *itemShowGrid;
  itemShowGrid = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowGrid" ), mShowGrid, true );
  addItem( itemShowGrid, QLatin1String( "ShowGrid" ) );
  KConfigSkeleton::ItemBool  *itemShowFancyMarker;
  itemShowFancyMarker = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowFancyMarker" ), mShowFancyMarker, true );
  addItem( itemShowFancyMarker, QLatin1String( "ShowFancyMarker" ) );
  KConfigSkeleton::ItemBool  *itemShowFiscalMarker;
  itemShowFiscalMarker = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowFiscalMarker" ), mShowFiscalMarker, true );
  addItem( itemShowFiscalMarker, QLatin1String( "ShowFiscalMarker" ) );
  KConfigSkeleton::ItemInt  *itemFiscalYearBegin;
  itemFiscalYearBegin = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "FiscalYearBegin" ), mFiscalYearBegin, 0 );
  itemFiscalYearBegin->setMinValue(0);
  itemFiscalYearBegin->setMaxValue(11);
  addItem( itemFiscalYearBegin, QLatin1String( "FiscalYearBegin" ) );
  KConfigSkeleton::ItemInt  *itemFiscalYearBeginDay;
  itemFiscalYearBeginDay = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "FiscalYearBeginDay" ), mFiscalYearBeginDay, 1 );
  itemFiscalYearBeginDay->setMinValue(1);
  itemFiscalYearBeginDay->setMaxValue(28);
  addItem( itemFiscalYearBeginDay, QLatin1String( "FiscalYearBeginDay" ) );
  KConfigSkeleton::ItemDateTime  *itemStartDate;
  itemStartDate = new KConfigSkeleton::ItemDateTime( currentGroup(), QLatin1String( "StartDate" ), mStartDate, QDateTime::fromString("1900-01-01T00:00:00", Qt::ISODate) );
  addItem( itemStartDate, QLatin1String( "StartDate" ) );
  KConfigSkeleton::ItemBool  *itemUseSystemColors;
  itemUseSystemColors = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "useSystemColors" ), mUseSystemColors, true );
  addItem( itemUseSystemColors, QLatin1String( "useSystemColors" ) );
  KConfigSkeleton::ItemColor  *itemListColor;
  itemListColor = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "listColor" ), mListColor, QColor( 240,240,240 ) );
  addItem( itemListColor, QLatin1String( "listColor" ) );
  KConfigSkeleton::ItemColor  *itemListBGColor;
  itemListBGColor = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "listBGColor" ), mListBGColor, QColor( 255,255,255 ) );
  addItem( itemListBGColor, QLatin1String( "listBGColor" ) );
  KConfigSkeleton::ItemColor  *itemListGridColor;
  itemListGridColor = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "listGridColor" ), mListGridColor, QColor( 154,154,154 ) );
  addItem( itemListGridColor, QLatin1String( "listGridColor" ) );
  KConfigSkeleton::ItemColor  *itemImportedTransactionColor;
  itemImportedTransactionColor = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "importedTransactionColor" ), mImportedTransactionColor, QColor( 255,255,0 ) );
  addItem( itemImportedTransactionColor, QLatin1String( "importedTransactionColor" ) );
  KConfigSkeleton::ItemColor  *itemMatchedTransactionColor;
  itemMatchedTransactionColor = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "matchedTransactionColor" ), mMatchedTransactionColor, QColor( 152,251,152 ) );
  addItem( itemMatchedTransactionColor, QLatin1String( "matchedTransactionColor" ) );
  KConfigSkeleton::ItemColor  *itemListErroneousTransactionColor;
  itemListErroneousTransactionColor = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "listErroneousTransactionColor" ), mListErroneousTransactionColor, QColor( 255,0,0 ) );
  addItem( itemListErroneousTransactionColor, QLatin1String( "listErroneousTransactionColor" ) );
  KConfigSkeleton::ItemColor  *itemListMissingConversionRate;
  itemListMissingConversionRate = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "listMissingConversionRate" ), mListMissingConversionRate, QColor( 0,0,255 ) );
  addItem( itemListMissingConversionRate, QLatin1String( "listMissingConversionRate" ) );
  KConfigSkeleton::ItemColor  *itemListNegativeValueColor;
  itemListNegativeValueColor = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "listNegativeValueColor" ), mListNegativeValueColor, QColor( 255,0,0 ) );
  addItem( itemListNegativeValueColor, QLatin1String( "listNegativeValueColor" ) );
  KConfigSkeleton::ItemColor  *itemGroupMarkerColor;
  itemGroupMarkerColor = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "groupMarkerColor" ), mGroupMarkerColor, QColor( 255,242,155 ) );
  addItem( itemGroupMarkerColor, QLatin1String( "groupMarkerColor" ) );
  KConfigSkeleton::ItemColor  *itemRequiredFieldColor;
  itemRequiredFieldColor = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "requiredFieldColor" ), mRequiredFieldColor, QColor( 255,255,221 ) );
  addItem( itemRequiredFieldColor, QLatin1String( "requiredFieldColor" ) );
  KConfigSkeleton::ItemBool  *itemUseSystemFont;
  itemUseSystemFont = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "useSystemFont" ), mUseSystemFont, false );
  addItem( itemUseSystemFont, QLatin1String( "useSystemFont" ) );
  KConfigSkeleton::ItemFont  *itemListCellFont;
  itemListCellFont = new KConfigSkeleton::ItemFont( currentGroup(), QLatin1String( "listCellFont" ), mListCellFont );
  addItem( itemListCellFont, QLatin1String( "listCellFont" ) );
  KConfigSkeleton::ItemFont  *itemListHeaderFont;
  itemListHeaderFont = new KConfigSkeleton::ItemFont( currentGroup(), QLatin1String( "listHeaderFont" ), mListHeaderFont );
  addItem( itemListHeaderFont, QLatin1String( "listHeaderFont" ) );
  KConfigSkeleton::ItemString  *itemSortNormalView;
  itemSortNormalView = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "sortNormalView" ), mSortNormalView, QLatin1String( "1,-9,-4" ) );
  addItem( itemSortNormalView, QLatin1String( "sortNormalView" ) );
  KConfigSkeleton::ItemString  *itemSortReconcileView;
  itemSortReconcileView = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "sortReconcileView" ), mSortReconcileView, QLatin1String( "1,-4" ) );
  addItem( itemSortReconcileView, QLatin1String( "sortReconcileView" ) );
  KConfigSkeleton::ItemString  *itemSortSearchView;
  itemSortSearchView = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "sortSearchView" ), mSortSearchView, QLatin1String( "1,-9,-4" ) );
  addItem( itemSortSearchView, QLatin1String( "sortSearchView" ) );
  KConfigSkeleton::ItemInt  *itemDefaultReconciliationState;
  itemDefaultReconciliationState = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "defaultReconciliationState" ), mDefaultReconciliationState, 0 );
  addItem( itemDefaultReconciliationState, QLatin1String( "defaultReconciliationState" ) );

  setCurrentGroup( QLatin1String( "Import options" ) );

  KConfigSkeleton::ItemInt  *itemMatchInterval;
  itemMatchInterval = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "matchInterval" ), mMatchInterval, 4 );
  addItem( itemMatchInterval, QLatin1String( "matchInterval" ) );
  KConfigSkeleton::ItemBool  *itemAskForPayeeCategory;
  itemAskForPayeeCategory = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "askForPayeeCategory" ), mAskForPayeeCategory, false );
  addItem( itemAskForPayeeCategory, QLatin1String( "askForPayeeCategory" ) );

  setCurrentGroup( QLatin1String( "Forecast Options" ) );

  KConfigSkeleton::ItemInt  *itemForecastMethod;
  itemForecastMethod = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "forecastMethod" ), mForecastMethod, 0 );
  addItem( itemForecastMethod, QLatin1String( "forecastMethod" ) );
  KConfigSkeleton::ItemInt  *itemForecastDays;
  itemForecastDays = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "forecastDays" ), mForecastDays, 90 );
  itemForecastDays->setMinValue(1);
  itemForecastDays->setMaxValue(999);
  addItem( itemForecastDays, QLatin1String( "forecastDays" ) );
  KConfigSkeleton::ItemInt  *itemForecastAccountCycle;
  itemForecastAccountCycle = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "forecastAccountCycle" ), mForecastAccountCycle, 30 );
  itemForecastAccountCycle->setMinValue(1);
  itemForecastAccountCycle->setMaxValue(999);
  addItem( itemForecastAccountCycle, QLatin1String( "forecastAccountCycle" ) );
  KConfigSkeleton::ItemInt  *itemForecastCycles;
  itemForecastCycles = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "forecastCycles" ), mForecastCycles, 3 );
  itemForecastCycles->setMinValue(1);
  itemForecastCycles->setMaxValue(999);
  addItem( itemForecastCycles, QLatin1String( "forecastCycles" ) );
  KConfigSkeleton::ItemInt  *itemBeginForecastDay;
  itemBeginForecastDay = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "beginForecastDay" ), mBeginForecastDay, 0 );
  itemBeginForecastDay->setMinValue(0);
  itemBeginForecastDay->setMaxValue(31);
  addItem( itemBeginForecastDay, QLatin1String( "beginForecastDay" ) );
  KConfigSkeleton::ItemInt  *itemHistoryMethod;
  itemHistoryMethod = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "historyMethod" ), mHistoryMethod, 1 );
  addItem( itemHistoryMethod, QLatin1String( "historyMethod" ) );
  KConfigSkeleton::ItemBool  *itemSkipOpeningDate;
  itemSkipOpeningDate = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "skipOpeningDate" ), mSkipOpeningDate, true );
  addItem( itemSkipOpeningDate, QLatin1String( "skipOpeningDate" ) );
  KConfigSkeleton::ItemBool  *itemIncludeFutureTransactions;
  itemIncludeFutureTransactions = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "includeFutureTransactions" ), mIncludeFutureTransactions, true );
  addItem( itemIncludeFutureTransactions, QLatin1String( "includeFutureTransactions" ) );
  KConfigSkeleton::ItemBool  *itemIncludeScheduledTransactions;
  itemIncludeScheduledTransactions = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "includeScheduledTransactions" ), mIncludeScheduledTransactions, true );
  addItem( itemIncludeScheduledTransactions, QLatin1String( "includeScheduledTransactions" ) );

  setCurrentGroup( QLatin1String( "QIF Options" ) );

  KConfigSkeleton::ItemString  *itemQifCash;
  itemQifCash = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "qifCash" ), mQifCash, QLatin1String( "Bar" ) );
  addItem( itemQifCash, QLatin1String( "qifCash" ) );
  KConfigSkeleton::ItemString  *itemQifBank;
  itemQifBank = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "qifBank" ), mQifBank, QLatin1String( "Banca,Banque" ) );
  addItem( itemQifBank, QLatin1String( "qifBank" ) );
  KConfigSkeleton::ItemString  *itemQifCreditCard;
  itemQifCreditCard = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "qifCreditCard" ), mQifCreditCard, QLatin1String( "Kreditkarte" ) );
  addItem( itemQifCreditCard, QLatin1String( "qifCreditCard" ) );
  KConfigSkeleton::ItemString  *itemQifAsset;
  itemQifAsset = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "qifAsset" ), mQifAsset, QLatin1String( "And. Kto." ) );
  addItem( itemQifAsset, QLatin1String( "qifAsset" ) );
  KConfigSkeleton::ItemString  *itemQifOpeningBalance;
  itemQifOpeningBalance = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "qifOpeningBalance" ), mQifOpeningBalance, QString::fromUtf8( "Eröffnungssaldo" ) );
  addItem( itemQifOpeningBalance, QLatin1String( "qifOpeningBalance" ) );
  KConfigSkeleton::ItemString  *itemQifInvoice;
  itemQifInvoice = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "qifInvoice" ), mQifInvoice, QLatin1String( "Rechnung" ) );
  addItem( itemQifInvoice, QLatin1String( "qifInvoice" ) );

  setCurrentGroup( QLatin1String( "Account View Settings" ) );

  KConfigSkeleton::ItemBool  *itemShowAccountsExpanded;
  itemShowAccountsExpanded = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "showAccountsExpanded" ), mShowAccountsExpanded, false );
  addItem( itemShowAccountsExpanded, QLatin1String( "showAccountsExpanded" ) );

  setCurrentGroup( QLatin1String( "Chart Settings" ) );

  KConfigSkeleton::ItemInt  *itemMaximumLegendItems;
  itemMaximumLegendItems = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "MaximumLegendItems" ), mMaximumLegendItems, 10 );
  itemMaximumLegendItems->setMinValue(0);
  itemMaximumLegendItems->setMaxValue(100);
  addItem( itemMaximumLegendItems, QLatin1String( "MaximumLegendItems" ) );
  KConfigSkeleton::ItemInt  *itemLineWidth;
  itemLineWidth = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "LineWidth" ), mLineWidth, 2 );
  itemLineWidth->setMinValue(0);
  itemLineWidth->setMaxValue(256);
  addItem( itemLineWidth, QLatin1String( "LineWidth" ) );
  KConfigSkeleton::ItemInt  *itemChartsPalette;
  itemChartsPalette = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "ChartsPalette" ), mChartsPalette, 2 );
  itemChartsPalette->setMinValue(0);
  itemChartsPalette->setMaxValue(2);
  addItem( itemChartsPalette, QLatin1String( "ChartsPalette" ) );
  KConfigSkeleton::ItemString  *itemCssFileDefault;
  itemCssFileDefault = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "CssFileDefault" ), mCssFileDefault );
  addItem( itemCssFileDefault, QLatin1String( "CssFileDefault" ) );
}

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

