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

#include "iconssettingsbase.h"

IconsSettingsBase::IconsSettingsBase( QObject *parent )
  : KConfigSkeleton( QStringLiteral( "kdeglobals" ) )
{
  setParent(parent);
  KConfigCompilerSignallingItem::NotifyFunction notifyFunction = static_cast<KConfigCompilerSignallingItem::NotifyFunction>(&IconsSettingsBase::itemChanged);

  setCurrentGroup( QStringLiteral( "Icons" ) );

  KConfigCompilerSignallingItem  *itemTheme;
  KConfigSkeleton::ItemString  *innerItemTheme;
  innerItemTheme = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "Theme" ), mTheme, QStringLiteral( "breeze" ) );
  itemTheme = new KConfigCompilerSignallingItem(innerItemTheme, this, notifyFunction, signalThemeChanged);
  itemTheme->setWriteFlags(KConfigBase::Notify);
  addItem( itemTheme, QStringLiteral( "Theme" ) );

  setCurrentGroup( QStringLiteral( "DesktopIcons" ) );

  KConfigCompilerSignallingItem  *itemDesktopSize;
  KConfigSkeleton::ItemInt  *innerItemDesktopSize;
  innerItemDesktopSize = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "Size" ), mDesktopSize, 32 );
  itemDesktopSize = new KConfigCompilerSignallingItem(innerItemDesktopSize, this, notifyFunction, signalDesktopSizeChanged);
  addItem( itemDesktopSize, QStringLiteral( "desktopSize" ) );

  setCurrentGroup( QStringLiteral( "ToolbarIcons" ) );

  KConfigCompilerSignallingItem  *itemToolbarSize;
  KConfigSkeleton::ItemInt  *innerItemToolbarSize;
  innerItemToolbarSize = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "Size" ), mToolbarSize, 22 );
  itemToolbarSize = new KConfigCompilerSignallingItem(innerItemToolbarSize, this, notifyFunction, signalToolbarSizeChanged);
  addItem( itemToolbarSize, QStringLiteral( "toolbarSize" ) );

  setCurrentGroup( QStringLiteral( "MainToolbarIcons" ) );

  KConfigCompilerSignallingItem  *itemMainToolbarSize;
  KConfigSkeleton::ItemInt  *innerItemMainToolbarSize;
  innerItemMainToolbarSize = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "Size" ), mMainToolbarSize, 22 );
  itemMainToolbarSize = new KConfigCompilerSignallingItem(innerItemMainToolbarSize, this, notifyFunction, signalMainToolbarSizeChanged);
  addItem( itemMainToolbarSize, QStringLiteral( "mainToolbarSize" ) );

  setCurrentGroup( QStringLiteral( "SmallIcons" ) );

  KConfigCompilerSignallingItem  *itemSmallSize;
  KConfigSkeleton::ItemInt  *innerItemSmallSize;
  innerItemSmallSize = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "Size" ), mSmallSize, 16 );
  itemSmallSize = new KConfigCompilerSignallingItem(innerItemSmallSize, this, notifyFunction, signalSmallSizeChanged);
  addItem( itemSmallSize, QStringLiteral( "smallSize" ) );

  setCurrentGroup( QStringLiteral( "PanelIcons" ) );

  KConfigCompilerSignallingItem  *itemPanelSize;
  KConfigSkeleton::ItemInt  *innerItemPanelSize;
  innerItemPanelSize = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "Size" ), mPanelSize, 48 );
  itemPanelSize = new KConfigCompilerSignallingItem(innerItemPanelSize, this, notifyFunction, signalPanelSizeChanged);
  addItem( itemPanelSize, QStringLiteral( "panelSize" ) );

  setCurrentGroup( QStringLiteral( "DialogIcons" ) );

  KConfigCompilerSignallingItem  *itemDialogSize;
  KConfigSkeleton::ItemInt  *innerItemDialogSize;
  innerItemDialogSize = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "Size" ), mDialogSize, 32 );
  itemDialogSize = new KConfigCompilerSignallingItem(innerItemDialogSize, this, notifyFunction, signalDialogSizeChanged);
  addItem( itemDialogSize, QStringLiteral( "dialogSize" ) );
}

QString IconsSettingsBase::defaultThemeValue_helper() const
{

  return QStringLiteral( "breeze" );
}

int IconsSettingsBase::defaultDesktopSizeValue_helper() const
{

  return 32;
}

int IconsSettingsBase::defaultToolbarSizeValue_helper() const
{

  return 22;
}

int IconsSettingsBase::defaultMainToolbarSizeValue_helper() const
{

  return 22;
}

int IconsSettingsBase::defaultSmallSizeValue_helper() const
{

  return 16;
}

int IconsSettingsBase::defaultPanelSizeValue_helper() const
{

  return 48;
}

int IconsSettingsBase::defaultDialogSizeValue_helper() const
{

  return 32;
}

IconsSettingsBase::~IconsSettingsBase()
{
}


void IconsSettingsBase::itemChanged(quint64 flags) {

  if ( flags & signalThemeChanged ) {
    Q_EMIT ThemeChanged();
  }
  if ( flags & signalDesktopSizeChanged ) {
    Q_EMIT desktopSizeChanged();
  }
  if ( flags & signalToolbarSizeChanged ) {
    Q_EMIT toolbarSizeChanged();
  }
  if ( flags & signalMainToolbarSizeChanged ) {
    Q_EMIT mainToolbarSizeChanged();
  }
  if ( flags & signalSmallSizeChanged ) {
    Q_EMIT smallSizeChanged();
  }
  if ( flags & signalPanelSizeChanged ) {
    Q_EMIT panelSizeChanged();
  }
  if ( flags & signalDialogSizeChanged ) {
    Q_EMIT dialogSizeChanged();
  }
}

#include "iconssettingsbase.moc"

