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

#include "yhconfig.h"

#include <kstaticdeleter.h>

YHConfig *YHConfig::mSelf = 0;
static KStaticDeleter<YHConfig> staticYHConfigDeleter;

YHConfig *YHConfig::self()
{
  if ( !mSelf ) {
    staticYHConfigDeleter.setObject( mSelf, new YHConfig() );
    mSelf->readConfig();
  }

  return mSelf;
}

const char* const YHConfig::EnumModifierToString[] = { "None", "Shift", "Alt", "Ctrl" };

YHConfig::YHConfig(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "noatunrc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "Young Hickory" ) );

  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesStateIconDisplay;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Animation" );
    valuesStateIconDisplay.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "FlashingIcon" );
    valuesStateIconDisplay.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "StaticIcon" );
    valuesStateIconDisplay.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "NoIcon" );
    valuesStateIconDisplay.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemStateIconDisplay;
  itemStateIconDisplay = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "State Icon Display" ), mStateIconDisplay, valuesStateIconDisplay, FlashingIcon );
  addItem( itemStateIconDisplay, TQString::fromLatin1( "StateIconDisplay" ) );
  TDEConfigSkeleton::ItemInt  *itemIcon;
  itemIcon = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "icon" ), mIcon, 1 );
  addItem( itemIcon, TQString::fromLatin1( "icon" ) );
  TDEConfigSkeleton::ItemBool  *itemTip;
  itemTip = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "tip" ), mTip, true );
  addItem( itemTip, TQString::fromLatin1( "tip" ) );
  TDEConfigSkeleton::ItemBool  *itemPassivePopup;
  itemPassivePopup = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "passivePopup" ), mPassivePopup, true );
  addItem( itemPassivePopup, TQString::fromLatin1( "passivePopup" ) );
  TDEConfigSkeleton::ItemInt  *itemPassivePopupTimeout;
  itemPassivePopupTimeout = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "passivePopupTimeout" ), mPassivePopupTimeout, 5 );
  addItem( itemPassivePopupTimeout, TQString::fromLatin1( "passivePopupTimeout" ) );
  TDEConfigSkeleton::ItemBool  *itemPassivePopupCovers;
  itemPassivePopupCovers = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "passivePopupCovers" ), mPassivePopupCovers, true );
  addItem( itemPassivePopupCovers, TQString::fromLatin1( "passivePopupCovers" ) );
  TDEConfigSkeleton::ItemBool  *itemPassivePopupButtons;
  itemPassivePopupButtons = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "passivePopupButtons" ), mPassivePopupButtons, true );
  addItem( itemPassivePopupButtons, TQString::fromLatin1( "passivePopupButtons" ) );
  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesMiddleMouseAction;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "PlayPause" );
    valuesMiddleMouseAction.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "HideShowPlaylist" );
    valuesMiddleMouseAction.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemMiddleMouseAction;
  itemMiddleMouseAction = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "MiddleMouse Action" ), mMiddleMouseAction, valuesMiddleMouseAction, HideShowPlaylist );
  addItem( itemMiddleMouseAction, TQString::fromLatin1( "MiddleMouseAction" ) );
  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesMouseWheelAction;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Nothing" );
    valuesMouseWheelAction.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "ChangeVolume" );
    valuesMouseWheelAction.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "ChangeTrack" );
    valuesMouseWheelAction.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemMouseWheelAction[4];
  itemMouseWheelAction[0] = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "mousewheelaction_None" ), mMouseWheelAction[0], valuesMouseWheelAction, ChangeVolume );
  addItem( itemMouseWheelAction[0], TQString::fromLatin1( "MouseWheelActionNone" ) );
  itemMouseWheelAction[1] = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "mousewheelaction_Shift" ), mMouseWheelAction[1], valuesMouseWheelAction, Nothing );
  addItem( itemMouseWheelAction[1], TQString::fromLatin1( "MouseWheelActionShift" ) );
  itemMouseWheelAction[2] = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "mousewheelaction_Alt" ), mMouseWheelAction[2], valuesMouseWheelAction, Nothing );
  addItem( itemMouseWheelAction[2], TQString::fromLatin1( "MouseWheelActionAlt" ) );
  itemMouseWheelAction[3] = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "mousewheelaction_Ctrl" ), mMouseWheelAction[3], valuesMouseWheelAction, ChangeTrack );
  addItem( itemMouseWheelAction[3], TQString::fromLatin1( "MouseWheelActionCtrl" ) );
}

YHConfig::~YHConfig()
{
  if ( mSelf == this )
    staticYHConfigDeleter.setObject( mSelf, 0, false );
}

