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

#include "dolphin_generalsettings.h"

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

class GeneralSettingsHelper
{
  public:
    GeneralSettingsHelper() : q(0) {}
    ~GeneralSettingsHelper() { delete q; }
    GeneralSettings *q;
};
K_GLOBAL_STATIC(GeneralSettingsHelper, s_globalGeneralSettings)
GeneralSettings *GeneralSettings::self()
{
  if (!s_globalGeneralSettings->q) {
    new GeneralSettings;
    s_globalGeneralSettings->q->readConfig();
  }

  return s_globalGeneralSettings->q;
}

GeneralSettings::GeneralSettings(  )
  : KConfigSkeleton( QLatin1String( "dolphinrc" ) )
{
  Q_ASSERT(!s_globalGeneralSettings->q);
  s_globalGeneralSettings->q = this;
  setCurrentGroup( QLatin1String( "General" ) );

  KConfigSkeleton::ItemBool  *itemEditableUrl;
  itemEditableUrl = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "EditableUrl" ), mEditableUrl, false );
  addItem( itemEditableUrl, QLatin1String( "EditableUrl" ) );
  QList<KConfigSkeleton::ItemEnum::Choice2> valuesUrlCompletionMode;
  KConfigSkeleton::ItemEnum  *itemUrlCompletionMode;
  itemUrlCompletionMode = new KConfigSkeleton::ItemEnum( currentGroup(), QLatin1String( "UrlCompletionMode" ), mUrlCompletionMode, valuesUrlCompletionMode, KGlobalSettings::completionMode() );
  addItem( itemUrlCompletionMode, QLatin1String( "UrlCompletionMode" ) );
  KConfigSkeleton::ItemBool  *itemShowFullPath;
  itemShowFullPath = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowFullPath" ), mShowFullPath, false );
  addItem( itemShowFullPath, QLatin1String( "ShowFullPath" ) );
  KConfigSkeleton::ItemInt  *itemVersion;
  itemVersion = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "Version" ), mVersion, 0 );
  addItem( itemVersion, QLatin1String( "Version" ) );
  KConfigSkeleton::ItemBool  *itemModifiedStartupSettings;
  itemModifiedStartupSettings = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ModifiedStartupSettings" ), mModifiedStartupSettings, false );
  addItem( itemModifiedStartupSettings, QLatin1String( "ModifiedStartupSettings" ) );
  KConfigSkeleton::ItemString  *itemHomeUrl;
  itemHomeUrl = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "HomeUrl" ), mHomeUrl, KUrl(QDir::homePath()).prettyUrl() );
  addItem( itemHomeUrl, QLatin1String( "HomeUrl" ) );
  KConfigSkeleton::ItemBool  *itemSplitView;
  itemSplitView = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "SplitView" ), mSplitView, false );
  addItem( itemSplitView, QLatin1String( "SplitView" ) );
  KConfigSkeleton::ItemBool  *itemFilterBar;
  itemFilterBar = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "FilterBar" ), mFilterBar, false );
  addItem( itemFilterBar, QLatin1String( "FilterBar" ) );
  KConfigSkeleton::ItemBool  *itemGlobalViewProps;
  itemGlobalViewProps = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "GlobalViewProps" ), mGlobalViewProps, false );
  addItem( itemGlobalViewProps, QLatin1String( "GlobalViewProps" ) );
  KConfigSkeleton::ItemBool  *itemBrowseThroughArchives;
  itemBrowseThroughArchives = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "BrowseThroughArchives" ), mBrowseThroughArchives, false );
  addItem( itemBrowseThroughArchives, QLatin1String( "BrowseThroughArchives" ) );
  KConfigSkeleton::ItemBool  *itemConfirmClosingMultipleTabs;
  itemConfirmClosingMultipleTabs = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ConfirmClosingMultipleTabs" ), mConfirmClosingMultipleTabs, true );
  addItem( itemConfirmClosingMultipleTabs, QLatin1String( "ConfirmClosingMultipleTabs" ) );
  KConfigSkeleton::ItemBool  *itemRenameInline;
  itemRenameInline = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "RenameInline" ), mRenameInline, true );
  addItem( itemRenameInline, QLatin1String( "RenameInline" ) );
  KConfigSkeleton::ItemBool  *itemShowSelectionToggle;
  itemShowSelectionToggle = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowSelectionToggle" ), mShowSelectionToggle, true );
  addItem( itemShowSelectionToggle, QLatin1String( "ShowSelectionToggle" ) );
  KConfigSkeleton::ItemBool  *itemShowToolTips;
  itemShowToolTips = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowToolTips" ), mShowToolTips, false );
  addItem( itemShowToolTips, QLatin1String( "ShowToolTips" ) );
  KConfigSkeleton::ItemBool  *itemShowCopyMoveMenu;
  itemShowCopyMoveMenu = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowCopyMoveMenu" ), mShowCopyMoveMenu, false );
  addItem( itemShowCopyMoveMenu, QLatin1String( "ShowCopyMoveMenu" ) );
  KConfigSkeleton::ItemDateTime  *itemViewPropsTimestamp;
  itemViewPropsTimestamp = new KConfigSkeleton::ItemDateTime( currentGroup(), QLatin1String( "ViewPropsTimestamp" ), mViewPropsTimestamp );
  addItem( itemViewPropsTimestamp, QLatin1String( "ViewPropsTimestamp" ) );
  KConfigSkeleton::ItemBool  *itemAutoExpandFolders;
  itemAutoExpandFolders = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "AutoExpandFolders" ), mAutoExpandFolders, false );
  addItem( itemAutoExpandFolders, QLatin1String( "AutoExpandFolders" ) );
  KConfigSkeleton::ItemBool  *itemShowZoomSlider;
  itemShowZoomSlider = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowZoomSlider" ), mShowZoomSlider, true );
  addItem( itemShowZoomSlider, QLatin1String( "ShowZoomSlider" ) );
  KConfigSkeleton::ItemBool  *itemShowSpaceInfo;
  itemShowSpaceInfo = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowSpaceInfo" ), mShowSpaceInfo, false );
  addItem( itemShowSpaceInfo, QLatin1String( "ShowSpaceInfo" ) );
  KConfigSkeleton::ItemBool  *itemLockPanels;
  itemLockPanels = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "LockPanels" ), mLockPanels, true );
  addItem( itemLockPanels, QLatin1String( "LockPanels" ) );
  KConfigSkeleton::ItemBool  *itemEnlargeSmallPreviews;
  itemEnlargeSmallPreviews = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "EnlargeSmallPreviews" ), mEnlargeSmallPreviews, true );
  addItem( itemEnlargeSmallPreviews, QLatin1String( "EnlargeSmallPreviews" ) );
}

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

