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

#include "preferences_base.h"

#include <tdelocale.h>

#include <kstaticdeleter.h>

PreferencesBase *PreferencesBase::mSelf = 0;
static KStaticDeleter<PreferencesBase> staticPreferencesBaseDeleter;

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

  return mSelf;
}

const char* const PreferencesBase::EnumColorNameToString[] = { "ActionMessage", "BacklogMessage", "ChannelMessage", "CommandMessage", "QueryMessage", "ServerMessage", "Time", "Action", "TextViewBackground", "AlternateBackground", "Hyperlink" };

PreferencesBase::PreferencesBase(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "konversationrc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "Appearance" ) );

  mShowMenuBarItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowMenuBar" ), mShowMenuBar, true );
  mShowMenuBarItem->setLabel( i18n("ShowMenuBar") );
  addItem( mShowMenuBarItem, TQString::fromLatin1( "ShowMenuBar" ) );
  mUseMaxSizedTabsItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "UseMaxSizedTabs" ), mUseMaxSizedTabs, true );
  mUseMaxSizedTabsItem->setLabel( i18n("Limit the size of the tab labels to fit all on screen") );
  addItem( mUseMaxSizedTabsItem, TQString::fromLatin1( "UseMaxSizedTabs" ) );
  TQValueList<int> defaultTreeSplitterSizes;

  mTreeSplitterSizesItem = new TDEConfigSkeleton::ItemIntList( currentGroup(), TQString::fromLatin1( "TreeSplitterSizes" ), mTreeSplitterSizes, defaultTreeSplitterSizes );
  mTreeSplitterSizesItem->setLabel( i18n("TreeSplitterSizes") );
  addItem( mTreeSplitterSizesItem, TQString::fromLatin1( "TreeSplitterSizes" ) );
  TQValueList<int> defaultTopicSplitterSizes;

  mTopicSplitterSizesItem = new TDEConfigSkeleton::ItemIntList( currentGroup(), TQString::fromLatin1( "TopicSplitterSizes" ), mTopicSplitterSizes, defaultTopicSplitterSizes );
  mTopicSplitterSizesItem->setLabel( i18n("TopicSplitterSizes") );
  addItem( mTopicSplitterSizesItem, TQString::fromLatin1( "TopicSplitterSizes" ) );
  mTextFontItem = new TDEConfigSkeleton::ItemFont( currentGroup(), TQString::fromLatin1( "TextFont" ), mTextFont, TDEGlobalSettings::generalFont() );
  mTextFontItem->setLabel( i18n("TextFont") );
  addItem( mTextFontItem, TQString::fromLatin1( "TextFont" ) );
  mListFontItem = new TDEConfigSkeleton::ItemFont( currentGroup(), TQString::fromLatin1( "ListFont" ), mListFont, TDEGlobalSettings::generalFont() );
  mListFontItem->setLabel( i18n("ListFont") );
  addItem( mListFontItem, TQString::fromLatin1( "ListFont" ) );
  mTabFontItem = new TDEConfigSkeleton::ItemFont( currentGroup(), TQString::fromLatin1( "TabFont" ), mTabFont, TDEGlobalSettings::generalFont() );
  mTabFontItem->setLabel( i18n("TabFont") );
  addItem( mTabFontItem, TQString::fromLatin1( "TabFont" ) );
  mCustomTextFontItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "CustomTextFont" ), mCustomTextFont, false );
  mCustomTextFontItem->setLabel( i18n("CustomTextFont") );
  addItem( mCustomTextFontItem, TQString::fromLatin1( "CustomTextFont" ) );
  mCustomListFontItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "CustomListFont" ), mCustomListFont, false );
  mCustomListFontItem->setLabel( i18n("CustomListFont") );
  addItem( mCustomListFontItem, TQString::fromLatin1( "CustomListFont" ) );
  mCustomTabFontItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "CustomTabFont" ), mCustomTabFont, false );
  mCustomTabFontItem->setLabel( i18n("CustomTabFont") );
  addItem( mCustomTabFontItem, TQString::fromLatin1( "CustomTabFont" ) );
  mTimestampingItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "Timestamping" ), mTimestamping, true );
  mTimestampingItem->setLabel( i18n("Timestamping") );
  addItem( mTimestampingItem, TQString::fromLatin1( "Timestamping" ) );
  mShowDateItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowDate" ), mShowDate, false );
  mShowDateItem->setLabel( i18n("ShowDate") );
  addItem( mShowDateItem, TQString::fromLatin1( "ShowDate" ) );
  mTimestampFormatItem = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "TimestampFormat" ), mTimestampFormat, TQString::fromLatin1( "hh:mm" ) );
  mTimestampFormatItem->setLabel( i18n("TimestampFormat") );
  addItem( mTimestampFormatItem, TQString::fromLatin1( "TimestampFormat" ) );
  mShowBacklogItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowBacklog" ), mShowBacklog, true );
  mShowBacklogItem->setLabel( i18n("ShowBacklog") );
  addItem( mShowBacklogItem, TQString::fromLatin1( "ShowBacklog" ) );
  mBacklogLinesItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "BacklogLines" ), mBacklogLines, 10 );
  mBacklogLinesItem->setLabel( i18n("BacklogLines") );
  addItem( mBacklogLinesItem, TQString::fromLatin1( "BacklogLines" ) );
  mShowNickListItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowNickList" ), mShowNickList, true );
  mShowNickListItem->setLabel( i18n("ShowNickList") );
  addItem( mShowNickListItem, TQString::fromLatin1( "ShowNickList" ) );
  mShowQuickButtonsItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowQuickButtons" ), mShowQuickButtons, false );
  mShowQuickButtonsItem->setLabel( i18n("ShowQuickButtons") );
  addItem( mShowQuickButtonsItem, TQString::fromLatin1( "ShowQuickButtons" ) );
  mShowModeButtonsItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowModeButtons" ), mShowModeButtons, false );
  mShowModeButtonsItem->setLabel( i18n("ShowModeButtons") );
  addItem( mShowModeButtonsItem, TQString::fromLatin1( "ShowModeButtons" ) );
  mCloseButtonsItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "CloseButtons" ), mCloseButtons, false );
  mCloseButtonsItem->setLabel( i18n("CloseButtons") );
  addItem( mCloseButtonsItem, TQString::fromLatin1( "CloseButtons" ) );
  mAutoUserhostItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "AutoUserhost" ), mAutoUserhost, false );
  mAutoUserhostItem->setLabel( i18n("AutoUserhost") );
  addItem( mAutoUserhostItem, TQString::fromLatin1( "AutoUserhost" ) );
  mUseSpacingItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "UseSpacing" ), mUseSpacing, false );
  mUseSpacingItem->setLabel( i18n("UseSpacing") );
  addItem( mUseSpacingItem, TQString::fromLatin1( "UseSpacing" ) );
  mSpacingItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "Spacing" ), mSpacing, KDialog::spacingHint() );
  mSpacingItem->setLabel( i18n("Spacing") );
  addItem( mSpacingItem, TQString::fromLatin1( "Spacing" ) );
  mMarginItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "Margin" ), mMargin, KDialog::marginHint() );
  mMarginItem->setLabel( i18n("Margin") );
  addItem( mMarginItem, TQString::fromLatin1( "Margin" ) );
  mUseParagraphSpacingItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "UseParagraphSpacing" ), mUseParagraphSpacing, false );
  mUseParagraphSpacingItem->setLabel( i18n("UseParagraphSpacing") );
  addItem( mUseParagraphSpacingItem, TQString::fromLatin1( "UseParagraphSpacing" ) );
  mParagraphSpacingItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "ParagraphSpacing" ), mParagraphSpacing, 2 );
  mParagraphSpacingItem->setMinValue(0);
  mParagraphSpacingItem->setLabel( i18n("ParagraphSpacing") );
  addItem( mParagraphSpacingItem, TQString::fromLatin1( "ParagraphSpacing" ) );
  TQValueList<int> defaultChannelSplitterSizes;

  mChannelSplitterSizesItem = new TDEConfigSkeleton::ItemIntList( currentGroup(), TQString::fromLatin1( "ChannelSplitterSizes" ), mChannelSplitterSizes, defaultChannelSplitterSizes );
  mChannelSplitterSizesItem->setLabel( i18n("ChannelSplitterSizes") );
  addItem( mChannelSplitterSizesItem, TQString::fromLatin1( "ChannelSplitterSizes" ) );
  mBackgroundImageItem = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "BackgroundImage" ), mBackgroundImage );
  mBackgroundImageItem->setLabel( i18n("BackgroundImage") );
  addItem( mBackgroundImageItem, TQString::fromLatin1( "BackgroundImage" ) );
  mIrcColorCodeItem[0] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "IrcColorCode0" ), mIrcColorCode[0], TQColor( "#ffffff" ) );
  mIrcColorCodeItem[0]->setLabel( i18n("IrcColorCodeIrcColorCode$(colorNumber)") );
  addItem( mIrcColorCodeItem[0], TQString::fromLatin1( "IrcColorCode0" ) );
  mIrcColorCodeItem[1] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "IrcColorCode1" ), mIrcColorCode[1], TQColor( "#000000" ) );
  mIrcColorCodeItem[1]->setLabel( i18n("IrcColorCodeIrcColorCode$(colorNumber)") );
  addItem( mIrcColorCodeItem[1], TQString::fromLatin1( "IrcColorCode1" ) );
  mIrcColorCodeItem[2] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "IrcColorCode2" ), mIrcColorCode[2], TQColor( "#000080" ) );
  mIrcColorCodeItem[2]->setLabel( i18n("IrcColorCodeIrcColorCode$(colorNumber)") );
  addItem( mIrcColorCodeItem[2], TQString::fromLatin1( "IrcColorCode2" ) );
  mIrcColorCodeItem[3] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "IrcColorCode3" ), mIrcColorCode[3], TQColor( "#008000" ) );
  mIrcColorCodeItem[3]->setLabel( i18n("IrcColorCodeIrcColorCode$(colorNumber)") );
  addItem( mIrcColorCodeItem[3], TQString::fromLatin1( "IrcColorCode3" ) );
  mIrcColorCodeItem[4] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "IrcColorCode4" ), mIrcColorCode[4], TQColor( "#ff0000" ) );
  mIrcColorCodeItem[4]->setLabel( i18n("IrcColorCodeIrcColorCode$(colorNumber)") );
  addItem( mIrcColorCodeItem[4], TQString::fromLatin1( "IrcColorCode4" ) );
  mIrcColorCodeItem[5] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "IrcColorCode5" ), mIrcColorCode[5], TQColor( "#a52a2a" ) );
  mIrcColorCodeItem[5]->setLabel( i18n("IrcColorCodeIrcColorCode$(colorNumber)") );
  addItem( mIrcColorCodeItem[5], TQString::fromLatin1( "IrcColorCode5" ) );
  mIrcColorCodeItem[6] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "IrcColorCode6" ), mIrcColorCode[6], TQColor( "#800080" ) );
  mIrcColorCodeItem[6]->setLabel( i18n("IrcColorCodeIrcColorCode$(colorNumber)") );
  addItem( mIrcColorCodeItem[6], TQString::fromLatin1( "IrcColorCode6" ) );
  mIrcColorCodeItem[7] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "IrcColorCode7" ), mIrcColorCode[7], TQColor( "#ff8000" ) );
  mIrcColorCodeItem[7]->setLabel( i18n("IrcColorCodeIrcColorCode$(colorNumber)") );
  addItem( mIrcColorCodeItem[7], TQString::fromLatin1( "IrcColorCode7" ) );
  mIrcColorCodeItem[8] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "IrcColorCode8" ), mIrcColorCode[8], TQColor( "#808000" ) );
  mIrcColorCodeItem[8]->setLabel( i18n("IrcColorCodeIrcColorCode$(colorNumber)") );
  addItem( mIrcColorCodeItem[8], TQString::fromLatin1( "IrcColorCode8" ) );
  mIrcColorCodeItem[9] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "IrcColorCode9" ), mIrcColorCode[9], TQColor( "#00ff00" ) );
  mIrcColorCodeItem[9]->setLabel( i18n("IrcColorCodeIrcColorCode$(colorNumber)") );
  addItem( mIrcColorCodeItem[9], TQString::fromLatin1( "IrcColorCode9" ) );
  mIrcColorCodeItem[10] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "IrcColorCode10" ), mIrcColorCode[10], TQColor( "#008080" ) );
  mIrcColorCodeItem[10]->setLabel( i18n("IrcColorCodeIrcColorCode$(colorNumber)") );
  addItem( mIrcColorCodeItem[10], TQString::fromLatin1( "IrcColorCode10" ) );
  mIrcColorCodeItem[11] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "IrcColorCode11" ), mIrcColorCode[11], TQColor( "#00ffff" ) );
  mIrcColorCodeItem[11]->setLabel( i18n("IrcColorCodeIrcColorCode$(colorNumber)") );
  addItem( mIrcColorCodeItem[11], TQString::fromLatin1( "IrcColorCode11" ) );
  mIrcColorCodeItem[12] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "IrcColorCode12" ), mIrcColorCode[12], TQColor( "#0000ff" ) );
  mIrcColorCodeItem[12]->setLabel( i18n("IrcColorCodeIrcColorCode$(colorNumber)") );
  addItem( mIrcColorCodeItem[12], TQString::fromLatin1( "IrcColorCode12" ) );
  mIrcColorCodeItem[13] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "IrcColorCode13" ), mIrcColorCode[13], TQColor( "#ffc0cb" ) );
  mIrcColorCodeItem[13]->setLabel( i18n("IrcColorCodeIrcColorCode$(colorNumber)") );
  addItem( mIrcColorCodeItem[13], TQString::fromLatin1( "IrcColorCode13" ) );
  mIrcColorCodeItem[14] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "IrcColorCode14" ), mIrcColorCode[14], TQColor( "#a0a0a0" ) );
  mIrcColorCodeItem[14]->setLabel( i18n("IrcColorCodeIrcColorCode$(colorNumber)") );
  addItem( mIrcColorCodeItem[14], TQString::fromLatin1( "IrcColorCode14" ) );
  mIrcColorCodeItem[15] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "IrcColorCode15" ), mIrcColorCode[15], TQColor( "#c0c0c0" ) );
  mIrcColorCodeItem[15]->setLabel( i18n("IrcColorCodeIrcColorCode$(colorNumber)") );
  addItem( mIrcColorCodeItem[15], TQString::fromLatin1( "IrcColorCode15" ) );
  mAllowColorCodesItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "AllowColorCodes" ), mAllowColorCodes, true );
  mAllowColorCodesItem->setLabel( i18n("AllowColorCodes") );
  addItem( mAllowColorCodesItem, TQString::fromLatin1( "AllowColorCodes" ) );
  mNickColorItem[0] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "NickColor0" ), mNickColor[0], TQColor( "#E90E7F" ) );
  mNickColorItem[0]->setLabel( i18n("NickColorNickColor$(nickNumber)") );
  addItem( mNickColorItem[0], TQString::fromLatin1( "NickColor0" ) );
  mNickColorItem[1] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "NickColor1" ), mNickColor[1], TQColor( "#8E55E9" ) );
  mNickColorItem[1]->setLabel( i18n("NickColorNickColor$(nickNumber)") );
  addItem( mNickColorItem[1], TQString::fromLatin1( "NickColor1" ) );
  mNickColorItem[2] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "NickColor2" ), mNickColor[2], TQColor( "#B30E0E" ) );
  mNickColorItem[2]->setLabel( i18n("NickColorNickColor$(nickNumber)") );
  addItem( mNickColorItem[2], TQString::fromLatin1( "NickColor2" ) );
  mNickColorItem[3] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "NickColor3" ), mNickColor[3], TQColor( "#18B33C" ) );
  mNickColorItem[3]->setLabel( i18n("NickColorNickColor$(nickNumber)") );
  addItem( mNickColorItem[3], TQString::fromLatin1( "NickColor3" ) );
  mNickColorItem[4] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "NickColor4" ), mNickColor[4], TQColor( "#58ADB3" ) );
  mNickColorItem[4]->setLabel( i18n("NickColorNickColor$(nickNumber)") );
  addItem( mNickColorItem[4], TQString::fromLatin1( "NickColor4" ) );
  mNickColorItem[5] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "NickColor5" ), mNickColor[5], TQColor( "#9E54B3" ) );
  mNickColorItem[5]->setLabel( i18n("NickColorNickColor$(nickNumber)") );
  addItem( mNickColorItem[5], TQString::fromLatin1( "NickColor5" ) );
  mNickColorItem[6] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "NickColor6" ), mNickColor[6], TQColor( "#B39875" ) );
  mNickColorItem[6]->setLabel( i18n("NickColorNickColor$(nickNumber)") );
  addItem( mNickColorItem[6], TQString::fromLatin1( "NickColor6" ) );
  mNickColorItem[7] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "NickColor7" ), mNickColor[7], TQColor( "#3176B3" ) );
  mNickColorItem[7]->setLabel( i18n("NickColorNickColor$(nickNumber)") );
  addItem( mNickColorItem[7], TQString::fromLatin1( "NickColor7" ) );
  mNickColorItem[8] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "NickColor8" ), mNickColor[8], TQColor( "#000001" ) );
  mNickColorItem[8]->setLabel( i18n("NickColorNickColor$(nickNumber)") );
  addItem( mNickColorItem[8], TQString::fromLatin1( "NickColor8" ) );
  mNickColorItem[9] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "NickColor9" ), mNickColor[9], TQColor(128, 128, 128) );
  mNickColorItem[9]->setLabel( i18n("NickColorNickColor$(nickNumber)") );
  addItem( mNickColorItem[9], TQString::fromLatin1( "NickColor9" ) );
  mUseColoredNicksItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "UseColoredNicks" ), mUseColoredNicks, true );
  mUseColoredNicksItem->setLabel( i18n("UseColoredNicks") );
  addItem( mUseColoredNicksItem, TQString::fromLatin1( "UseColoredNicks" ) );
  mShowTabBarCloseButtonItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowTabBarCloseButton" ), mShowTabBarCloseButton, true );
  mShowTabBarCloseButtonItem->setLabel( i18n("ShowTabBarCloseButton") );
  addItem( mShowTabBarCloseButtonItem, TQString::fromLatin1( "ShowTabBarCloseButton" ) );
  mShowTopicItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowTopic" ), mShowTopic, true );
  mShowTopicItem->setLabel( i18n("ShowTopic") );
  addItem( mShowTopicItem, TQString::fromLatin1( "ShowTopic" ) );
  mShowNicknameBoxItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowNicknameBox" ), mShowNicknameBox, true );
  mShowNicknameBoxItem->setLabel( i18n("ShowNicknameBox") );
  addItem( mShowNicknameBoxItem, TQString::fromLatin1( "ShowNicknameBox" ) );
  mUseBoldNicksItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "UseBoldNicks" ), mUseBoldNicks, false );
  mUseBoldNicksItem->setLabel( i18n("UseBoldNicks") );
  addItem( mUseBoldNicksItem, TQString::fromLatin1( "UseBoldNicks" ) );
  mUseLiteralModesItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "UseLiteralModes" ), mUseLiteralModes, false );
  mUseLiteralModesItem->setLabel( i18n("UseLiteralModes") );
  addItem( mUseLiteralModesItem, TQString::fromLatin1( "UseLiteralModes" ) );
  mFocusNewQueriesItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "FocusNewQueries" ), mFocusNewQueries, true );
  mFocusNewQueriesItem->setLabel( i18n("FocusNewQueries") );
  addItem( mFocusNewQueriesItem, TQString::fromLatin1( "FocusNewQueries" ) );
  mShowIRCViewScrollBarItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowIRCViewScrollBar" ), mShowIRCViewScrollBar, true );
  mShowIRCViewScrollBarItem->setLabel( i18n("Hide the scrollbar") );
  addItem( mShowIRCViewScrollBarItem, TQString::fromLatin1( "ShowIRCViewScrollBar" ) );

  setCurrentGroup( TQString::fromLatin1( "General Options" ) );

  mSpellCheckingItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "SpellChecking" ), mSpellChecking, false );
  mSpellCheckingItem->setLabel( i18n("SpellChecking") );
  mSpellCheckingItem->setWhatsThis( i18n("Enable if you want all the IRC input lines to check your spelling as you type") );
  addItem( mSpellCheckingItem, TQString::fromLatin1( "SpellChecking" ) );
  mCustomVersionReplyEnabledItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "CustomVersionReplyEnabled" ), mCustomVersionReplyEnabled, false );
  mCustomVersionReplyEnabledItem->setLabel( i18n("CustomVersionReplyEnabled") );
  addItem( mCustomVersionReplyEnabledItem, TQString::fromLatin1( "CustomVersionReplyEnabled" ) );
  mCustomVersionReplyItem = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "CustomVersionReply" ), mCustomVersionReply );
  mCustomVersionReplyItem->setLabel( i18n("CustomVersionReply") );
  addItem( mCustomVersionReplyItem, TQString::fromLatin1( "CustomVersionReply" ) );
  mUseMultiRowInputBoxItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "UseMultiRowInputBox" ), mUseMultiRowInputBox, false );
  mUseMultiRowInputBoxItem->setLabel( i18n("UseMultiRowInputBox") );
  mUseMultiRowInputBoxItem->setWhatsThis( i18n("Enabling this will cause the input box to grow vertically when it fills up.") );
  addItem( mUseMultiRowInputBoxItem, TQString::fromLatin1( "UseMultiRowInputBox" ) );
  mCommandCharItem = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "CommandChar" ), mCommandChar, TQString::fromLatin1( "/" ) );
  mCommandCharItem->setLabel( i18n("CommandChar") );
  addItem( mCommandCharItem, TQString::fromLatin1( "CommandChar" ) );
  mPreShellCommandItem = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "PreShellCommand" ), mPreShellCommand );
  mPreShellCommandItem->setLabel( i18n("PreShellCommand") );
  addItem( mPreShellCommandItem, TQString::fromLatin1( "PreShellCommand" ) );
  mShowTrayIconItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowTrayIcon" ), mShowTrayIcon, false );
  mShowTrayIconItem->setLabel( i18n("ShowTrayIcon") );
  addItem( mShowTrayIconItem, TQString::fromLatin1( "ShowTrayIcon" ) );
  mTrayNotifyItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "TrayNotify" ), mTrayNotify, false );
  mTrayNotifyItem->setLabel( i18n("TrayNotify") );
  addItem( mTrayNotifyItem, TQString::fromLatin1( "TrayNotify" ) );
  mTrayNotifyOnlyOwnNickItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "TrayNotifyOnlyOwnNick" ), mTrayNotifyOnlyOwnNick, false );
  mTrayNotifyOnlyOwnNickItem->setLabel( i18n("TrayNotifyOnlyOwnNick") );
  addItem( mTrayNotifyOnlyOwnNickItem, TQString::fromLatin1( "TrayNotifyOnlyOwnNick" ) );
  mTrayNotifyBlinkItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "TrayNotifyBlink" ), mTrayNotifyBlink, true );
  mTrayNotifyBlinkItem->setLabel( i18n("TrayNotifyBlink") );
  addItem( mTrayNotifyBlinkItem, TQString::fromLatin1( "TrayNotifyBlink" ) );
  mHiddenToTrayItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "HiddenToTray" ), mHiddenToTray, false );
  mHiddenToTrayItem->setLabel( i18n("Hidden to system tray") );
  addItem( mHiddenToTrayItem, TQString::fromLatin1( "HiddenToTray" ) );
  mHideToTrayOnStartupItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "HideToTrayOnStartup" ), mHideToTrayOnStartup, false );
  mHideToTrayOnStartupItem->setLabel( i18n("Start with hidden mainwindow") );
  addItem( mHideToTrayOnStartupItem, TQString::fromLatin1( "HideToTrayOnStartup" ) );
  mShowBackgroundImageItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowBackgroundImage" ), mShowBackgroundImage, false );
  mShowBackgroundImageItem->setLabel( i18n("ShowBackgroundImage") );
  addItem( mShowBackgroundImageItem, TQString::fromLatin1( "ShowBackgroundImage" ) );
  mNicksOnlineSizeItem = new TDEConfigSkeleton::ItemSize( currentGroup(), TQString::fromLatin1( "NicksOnlineGeometry" ), mNicksOnlineSize );
  mNicksOnlineSizeItem->setLabel( i18n("NicksOnlineGeometry") );
  addItem( mNicksOnlineSizeItem, TQString::fromLatin1( "NicksOnlineSize" ) );
  mNicknameSizeItem = new TDEConfigSkeleton::ItemSize( currentGroup(), TQString::fromLatin1( "NicknameGeometry" ), mNicknameSize );
  mNicknameSizeItem->setLabel( i18n("NicknameGeometry") );
  addItem( mNicknameSizeItem, TQString::fromLatin1( "NicknameSize" ) );
  mLogfileReaderSizeItem = new TDEConfigSkeleton::ItemSize( currentGroup(), TQString::fromLatin1( "LogfileReaderGeometry" ), mLogfileReaderSize, TQSize(400, 200) );
  mLogfileReaderSizeItem->setLabel( i18n("LogfileReaderGeometry") );
  addItem( mLogfileReaderSizeItem, TQString::fromLatin1( "LogfileReaderSize" ) );
  mMultilineEditSizeItem = new TDEConfigSkeleton::ItemSize( currentGroup(), TQString::fromLatin1( "MultilineEditGeometry" ), mMultilineEditSize );
  mMultilineEditSizeItem->setLabel( i18n("MultilineEditGeometry") );
  addItem( mMultilineEditSizeItem, TQString::fromLatin1( "MultilineEditSize" ) );
  mLogfileBufferSizeItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "LogfileBufferSize" ), mLogfileBufferSize, 100 );
  mLogfileBufferSizeItem->setLabel( i18n("LogfileBufferSize") );
  addItem( mLogfileBufferSizeItem, TQString::fromLatin1( "LogfileBufferSize" ) );
  mScrollbackMaxItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "ScrollbackMax" ), mScrollbackMax, 1000 );
  mScrollbackMaxItem->setLabel( i18n("ScrollbackMax") );
  addItem( mScrollbackMaxItem, TQString::fromLatin1( "ScrollbackMax" ) );
  mAutoWhoNicksLimitItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "AutoWhoNicksLimit" ), mAutoWhoNicksLimit, 200 );
  mAutoWhoNicksLimitItem->setLabel( i18n("AutoWhoNicksLimit") );
  addItem( mAutoWhoNicksLimitItem, TQString::fromLatin1( "AutoWhoNicksLimit" ) );
  mAutoWhoContinuousEnabledItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "AutoWhoContinuousEnabled" ), mAutoWhoContinuousEnabled, true );
  mAutoWhoContinuousEnabledItem->setLabel( i18n("AutoWhoContinuousEnabled") );
  addItem( mAutoWhoContinuousEnabledItem, TQString::fromLatin1( "AutoWhoContinuousEnabled" ) );
  mAutoWhoContinuousIntervalItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "AutoWhoContinuousInterval" ), mAutoWhoContinuousInterval, 90 );
  mAutoWhoContinuousIntervalItem->setLabel( i18n("AutoWhoContinuousInterval") );
  addItem( mAutoWhoContinuousIntervalItem, TQString::fromLatin1( "AutoWhoContinuousInterval" ) );
  mShowRealNamesItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowRealNames" ), mShowRealNames, false );
  mShowRealNamesItem->setLabel( i18n("&Show real names next to nicknames") );
  addItem( mShowRealNamesItem, TQString::fromLatin1( "ShowRealNames" ) );
  mChannelDoubleClickActionItem = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "ChannelDoubleClickAction" ), mChannelDoubleClickAction, TQString::fromLatin1( "/QUERY %u%n" ) );
  mChannelDoubleClickActionItem->setLabel( i18n("ChannelDoubleClickAction") );
  addItem( mChannelDoubleClickActionItem, TQString::fromLatin1( "ChannelDoubleClickAction" ) );
  mNotifyDoubleClickActionItem = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "NotifyDoubleClickAction" ), mNotifyDoubleClickAction, TQString::fromLatin1( "/QUERY %u%n" ) );
  mNotifyDoubleClickActionItem->setLabel( i18n("NotifyDoubleClickAction") );
  addItem( mNotifyDoubleClickActionItem, TQString::fromLatin1( "NotifyDoubleClickAction" ) );
  mBeepItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "Beep" ), mBeep, false );
  mBeepItem->setLabel( i18n("Beep") );
  addItem( mBeepItem, TQString::fromLatin1( "Beep" ) );
  mRawLogItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "RawLog" ), mRawLog, false );
  mRawLogItem->setLabel( i18n("RawLog") );
  addItem( mRawLogItem, TQString::fromLatin1( "RawLog" ) );
  mVersionReplyItem = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "VersionReply" ), mVersionReply );
  mVersionReplyItem->setLabel( i18n("VersionReply") );
  addItem( mVersionReplyItem, TQString::fromLatin1( "VersionReply" ) );
  mMaximumLagTimeItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "MaximumLag" ), mMaximumLagTime, 180 );
  mMaximumLagTimeItem->setLabel( i18n("MaximumLag") );
  addItem( mMaximumLagTimeItem, TQString::fromLatin1( "MaximumLagTime" ) );
  mRedirectServerAndAppMsgToStatusPaneItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "RedirectServerAndAppMsgToStatusPane" ), mRedirectServerAndAppMsgToStatusPane, false );
  mRedirectServerAndAppMsgToStatusPaneItem->setLabel( i18n("RedirectServerAndAppMsgToStatusPane") );
  addItem( mRedirectServerAndAppMsgToStatusPaneItem, TQString::fromLatin1( "RedirectServerAndAppMsgToStatusPane" ) );
  mDisableNotifyWhileAwayItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "DisableNotifyWhileAway" ), mDisableNotifyWhileAway, false );
  mDisableNotifyWhileAwayItem->setLabel( i18n("DisableNotifyWhileAway") );
  addItem( mDisableNotifyWhileAwayItem, TQString::fromLatin1( "DisableNotifyWhileAway" ) );
  mAutoAwayPollIntervalItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "AutoAwayPollInterval" ), mAutoAwayPollInterval, 10 );
  mAutoAwayPollIntervalItem->setMinValue(10);
  mAutoAwayPollIntervalItem->setLabel( i18n("AutoAwayPollInterval") );
  addItem( mAutoAwayPollIntervalItem, TQString::fromLatin1( "AutoAwayPollInterval" ) );
  mAutomaticRememberLineItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "AutomaticRememberLine" ), mAutomaticRememberLine, false );
  mAutomaticRememberLineItem->setLabel( i18n("AutomaticRememberLine") );
  addItem( mAutomaticRememberLineItem, TQString::fromLatin1( "AutomaticRememberLine" ) );
  mAutomaticRememberLineOnlyOnTextChangeItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "AutomaticRememberLineOnlyOnTextChange" ), mAutomaticRememberLineOnlyOnTextChange, true );
  mAutomaticRememberLineOnlyOnTextChangeItem->setLabel( i18n("AutomaticRememberLineOnlyOnTextChange") );
  addItem( mAutomaticRememberLineOnlyOnTextChangeItem, TQString::fromLatin1( "AutomaticRememberLineOnlyOnTextChange" ) );
  mMarkerLineInAllViewsItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "MarkerLineInAllViews" ), mMarkerLineInAllViews, false );
  mMarkerLineInAllViewsItem->setLabel( i18n("MarkerLineInAllViews") );
  addItem( mMarkerLineInAllViewsItem, TQString::fromLatin1( "MarkerLineInAllViews" ) );

  setCurrentGroup( TQString::fromLatin1( "Sort Nicknames" ) );

  mSortByStatusItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "SortByStatus" ), mSortByStatus, false );
  mSortByStatusItem->setLabel( i18n("SortByStatus") );
  addItem( mSortByStatusItem, TQString::fromLatin1( "SortByStatus" ) );
  mSortByActivityItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "SortByActivity" ), mSortByActivity, false );
  mSortByActivityItem->setLabel( i18n("SortByActivity") );
  addItem( mSortByActivityItem, TQString::fromLatin1( "SortByActivity" ) );
  mSortCaseInsensitiveItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "SortCaseInsensitive" ), mSortCaseInsensitive, true );
  mSortCaseInsensitiveItem->setLabel( i18n("SortCaseInsensitive") );
  addItem( mSortCaseInsensitiveItem, TQString::fromLatin1( "SortCaseInsensitive" ) );

  setCurrentGroup( TQString::fromLatin1( "OSD" ) );

  mUseOSDItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "UseOSD" ), mUseOSD, false );
  mUseOSDItem->setLabel( i18n("UseOSD") );
  addItem( mUseOSDItem, TQString::fromLatin1( "UseOSD" ) );
  mOSDShowOwnNickItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowOwnNick" ), mOSDShowOwnNick, false );
  mOSDShowOwnNickItem->setLabel( i18n("ShowOwnNick") );
  addItem( mOSDShowOwnNickItem, TQString::fromLatin1( "OSDShowOwnNick" ) );
  mOSDShowChannelItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowChannel" ), mOSDShowChannel, false );
  mOSDShowChannelItem->setLabel( i18n("ShowChannel") );
  addItem( mOSDShowChannelItem, TQString::fromLatin1( "OSDShowChannel" ) );
  mOSDShowQueryItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowQuery" ), mOSDShowQuery, false );
  mOSDShowQueryItem->setLabel( i18n("ShowQuery") );
  addItem( mOSDShowQueryItem, TQString::fromLatin1( "OSDShowQuery" ) );
  mOSDShowChannelEventItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowChannelEvent" ), mOSDShowChannelEvent, false );
  mOSDShowChannelEventItem->setLabel( i18n("ShowChannelEvent") );
  addItem( mOSDShowChannelEventItem, TQString::fromLatin1( "OSDShowChannelEvent" ) );
  mOSDFontItem = new TDEConfigSkeleton::ItemFont( currentGroup(), TQString::fromLatin1( "OSDFont" ), mOSDFont, TDEGlobalSettings::generalFont() );
  mOSDFontItem->setLabel( i18n("OSDFont") );
  addItem( mOSDFontItem, TQString::fromLatin1( "OSDFont" ) );
  mOSDUseCustomColorsItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "OSDUseCustomColors" ), mOSDUseCustomColors, false );
  mOSDUseCustomColorsItem->setLabel( i18n("OSDUseCustomColors") );
  addItem( mOSDUseCustomColorsItem, TQString::fromLatin1( "OSDUseCustomColors" ) );
  mOSDDurationItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "OSDDuration" ), mOSDDuration, 3000 );
  mOSDDurationItem->setLabel( i18n("OSDDuration") );
  addItem( mOSDDurationItem, TQString::fromLatin1( "OSDDuration" ) );
  mOSDScreenItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "OSDScreen" ), mOSDScreen, 0 );
  mOSDScreenItem->setLabel( i18n("OSDScreen") );
  addItem( mOSDScreenItem, TQString::fromLatin1( "OSDScreen" ) );
  mOSDDrawShadowItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "OSDDrawShadow" ), mOSDDrawShadow, false );
  mOSDDrawShadowItem->setLabel( i18n("OSDDrawShadow") );
  addItem( mOSDDrawShadowItem, TQString::fromLatin1( "OSDDrawShadow" ) );
  mOSDOffsetXItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "OffsetX" ), mOSDOffsetX, 30 );
  mOSDOffsetXItem->setLabel( i18n("OffsetX") );
  addItem( mOSDOffsetXItem, TQString::fromLatin1( "OSDOffsetX" ) );
  mOSDOffsetYItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "OffsetY" ), mOSDOffsetY, 50 );
  mOSDOffsetYItem->setLabel( i18n("OffsetY") );
  addItem( mOSDOffsetYItem, TQString::fromLatin1( "OSDOffsetY" ) );
  mOSDAlignmentItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "Alignment" ), mOSDAlignment, 0 );
  mOSDAlignmentItem->setLabel( i18n("Alignment") );
  addItem( mOSDAlignmentItem, TQString::fromLatin1( "OSDAlignment" ) );
  mOSDTextColorItem = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "OSDTextColor" ), mOSDTextColor, TQColor( "#ffffff" ) );
  mOSDTextColorItem->setLabel( i18n("OSDTextColor") );
  addItem( mOSDTextColorItem, TQString::fromLatin1( "OSDTextColor" ) );
  mOSDBackgroundColorItem = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "OSDBackgroundColor" ), mOSDBackgroundColor );
  mOSDBackgroundColorItem->setLabel( i18n("OSDBackgroundColor") );
  addItem( mOSDBackgroundColorItem, TQString::fromLatin1( "OSDBackgroundColor" ) );
  mOSDCheckDesktopLockItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "OSDCheckDesktopLock" ), mOSDCheckDesktopLock, true );
  mOSDCheckDesktopLockItem->setLabel( i18n("OSDCheckDesktopLock") );
  addItem( mOSDCheckDesktopLockItem, TQString::fromLatin1( "OSDCheckDesktopLock" ) );

  setCurrentGroup( TQString::fromLatin1( "Notify List" ) );

  mNotifyDelayItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "NotifyDelay" ), mNotifyDelay, 20 );
  mNotifyDelayItem->setLabel( i18n("NotifyDelay") );
  addItem( mNotifyDelayItem, TQString::fromLatin1( "NotifyDelay" ) );
  mUseNotifyItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "UseNotify" ), mUseNotify, true );
  mUseNotifyItem->setLabel( i18n("UseNotify") );
  addItem( mUseNotifyItem, TQString::fromLatin1( "UseNotify" ) );
  mOpenWatchedNicksAtStartupItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "OnStartup" ), mOpenWatchedNicksAtStartup, false );
  mOpenWatchedNicksAtStartupItem->setLabel( i18n("Open Watched Nicks tab at application startup") );
  addItem( mOpenWatchedNicksAtStartupItem, TQString::fromLatin1( "OpenWatchedNicksAtStartup" ) );

  setCurrentGroup( TQString::fromLatin1( "Highlight List" ) );

  mHighlightSoundsEnabledItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "HighlightSoundsEnabled" ), mHighlightSoundsEnabled, false );
  mHighlightSoundsEnabledItem->setLabel( i18n("HighlightSoundsEnabled") );
  addItem( mHighlightSoundsEnabledItem, TQString::fromLatin1( "HighlightSoundsEnabled" ) );
  mHighlightNickItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "HighlightNick" ), mHighlightNick, true );
  mHighlightNickItem->setLabel( i18n("HighlightNick") );
  addItem( mHighlightNickItem, TQString::fromLatin1( "HighlightNick" ) );
  mHighlightNickColorItem = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "HighlightNickColor" ), mHighlightNickColor, TQColor( "#FF0000" ) );
  mHighlightNickColorItem->setLabel( i18n("HighlightNickColor") );
  addItem( mHighlightNickColorItem, TQString::fromLatin1( "HighlightNickColor" ) );
  mHighlightOwnLinesItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "HighlightOwnLines" ), mHighlightOwnLines, false );
  mHighlightOwnLinesItem->setLabel( i18n("HighlightOwnLines") );
  addItem( mHighlightOwnLinesItem, TQString::fromLatin1( "HighlightOwnLines" ) );
  mHighlightOwnLinesColorItem = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "HighlightOwnLinesColor" ), mHighlightOwnLinesColor, TQColor( "#ff0000" ) );
  mHighlightOwnLinesColorItem->setLabel( i18n("HighlightOwnLinesColor") );
  addItem( mHighlightOwnLinesColorItem, TQString::fromLatin1( "HighlightOwnLinesColor" ) );
  mHighlightItem = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "Highlight" ), mHighlight );
  mHighlightItem->setLabel( i18n("Highlight") );
  addItem( mHighlightItem, TQString::fromLatin1( "Highlight" ) );

  setCurrentGroup( TQString::fromLatin1( "Aliases" ) );

  mAliasListItem = new TDEConfigSkeleton::ItemStringList( currentGroup(), TQString::fromLatin1( "AliasList" ), mAliasList );
  mAliasListItem->setLabel( i18n("AliasList") );
  addItem( mAliasListItem, TQString::fromLatin1( "AliasList" ) );

  setCurrentGroup( TQString::fromLatin1( "Nick Completion" ) );

  mNickCompletionModeItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "Mode" ), mNickCompletionMode, 2 );
  mNickCompletionModeItem->setLabel( i18n("Mode") );
  addItem( mNickCompletionModeItem, TQString::fromLatin1( "NickCompletionMode" ) );
  mNickCompleteSuffixStartItem = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "SuffixStart" ), mNickCompleteSuffixStart, TQString::fromLatin1( ": " ) );
  mNickCompleteSuffixStartItem->setLabel( i18n("SuffixStart") );
  addItem( mNickCompleteSuffixStartItem, TQString::fromLatin1( "NickCompleteSuffixStart" ) );
  mNickCompleteSuffixMiddleItem = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "SuffixMiddle" ), mNickCompleteSuffixMiddle );
  mNickCompleteSuffixMiddleItem->setLabel( i18n("SuffixMiddle") );
  addItem( mNickCompleteSuffixMiddleItem, TQString::fromLatin1( "NickCompleteSuffixMiddle" ) );
  mPrefixCharacterItem = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "PrefixCharacter" ), mPrefixCharacter );
  mPrefixCharacterItem->setLabel( i18n("PrefixCharacter") );
  addItem( mPrefixCharacterItem, TQString::fromLatin1( "PrefixCharacter" ) );
  mNickCompletionCaseSensitiveItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "CaseSensitive" ), mNickCompletionCaseSensitive, false );
  mNickCompletionCaseSensitiveItem->setLabel( i18n("CaseSensitive") );
  addItem( mNickCompletionCaseSensitiveItem, TQString::fromLatin1( "NickCompletionCaseSensitive" ) );

  setCurrentGroup( TQString::fromLatin1( "DCC Settings" ) );

  mDccBufferSizeItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "BufferSize" ), mDccBufferSize, 8192 );
  mDccBufferSizeItem->setLabel( i18n("BufferSize") );
  addItem( mDccBufferSizeItem, TQString::fromLatin1( "DccBufferSize" ) );
  mDccMethodToGetOwnIpItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "MethodToGetOwnIp" ), mDccMethodToGetOwnIp, 1 );
  mDccMethodToGetOwnIpItem->setLabel( i18n("MethodToGetOwnIp") );
  addItem( mDccMethodToGetOwnIpItem, TQString::fromLatin1( "DccMethodToGetOwnIp" ) );
  mDccSpecificOwnIpItem = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "SpecificOwnIp" ), mDccSpecificOwnIp, TQString::fromLatin1( "0.0.0.0" ) );
  mDccSpecificOwnIpItem->setLabel( i18n("SpecificOwnIp") );
  addItem( mDccSpecificOwnIpItem, TQString::fromLatin1( "DccSpecificOwnIp" ) );
  mDccSpecificSendPortsItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "SpecificSendPorts" ), mDccSpecificSendPorts, true );
  mDccSpecificSendPortsItem->setLabel( i18n("SpecificSendPorts") );
  addItem( mDccSpecificSendPortsItem, TQString::fromLatin1( "DccSpecificSendPorts" ) );
  mDccSendPortsFirstItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "SendPortsFirst" ), mDccSendPortsFirst, 1026 );
  mDccSendPortsFirstItem->setLabel( i18n("SendPortsFirst") );
  addItem( mDccSendPortsFirstItem, TQString::fromLatin1( "DccSendPortsFirst" ) );
  mDccSendPortsLastItem = new TDEConfigSkeleton::ItemUInt( currentGroup(), TQString::fromLatin1( "SendPortsLast" ), mDccSendPortsLast, 7000 );
  mDccSendPortsLastItem->setLabel( i18n("SendPortsLast") );
  addItem( mDccSendPortsLastItem, TQString::fromLatin1( "DccSendPortsLast" ) );
  mDccSpecificChatPortsItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "SpecificChatPorts" ), mDccSpecificChatPorts, true );
  mDccSpecificChatPortsItem->setLabel( i18n("SpecificChatPorts") );
  addItem( mDccSpecificChatPortsItem, TQString::fromLatin1( "DccSpecificChatPorts" ) );
  mDccChatPortsFirstItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "ChatPortsFirst" ), mDccChatPortsFirst, 1026 );
  mDccChatPortsFirstItem->setLabel( i18n("ChatPortsFirst") );
  addItem( mDccChatPortsFirstItem, TQString::fromLatin1( "DccChatPortsFirst" ) );
  mDccChatPortsLastItem = new TDEConfigSkeleton::ItemUInt( currentGroup(), TQString::fromLatin1( "ChatPortsLast" ), mDccChatPortsLast, 7000 );
  mDccChatPortsLastItem->setLabel( i18n("ChatPortsLast") );
  addItem( mDccChatPortsLastItem, TQString::fromLatin1( "DccChatPortsLast" ) );
  mDccAddPartnerItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "AddPartner" ), mDccAddPartner, false );
  mDccAddPartnerItem->setLabel( i18n("AddPartner") );
  addItem( mDccAddPartnerItem, TQString::fromLatin1( "DccAddPartner" ) );
  mDccCreateFolderItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "CreateFolder" ), mDccCreateFolder, false );
  mDccCreateFolderItem->setLabel( i18n("CreateFolder") );
  addItem( mDccCreateFolderItem, TQString::fromLatin1( "DccCreateFolder" ) );
  mDccSpaceToUnderscoreItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "SpaceToUnderscore" ), mDccSpaceToUnderscore, true );
  mDccSpaceToUnderscoreItem->setLabel( i18n("SpaceToUnderscore") );
  addItem( mDccSpaceToUnderscoreItem, TQString::fromLatin1( "DccSpaceToUnderscore" ) );
  mDccAutoGetItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "AutoGet" ), mDccAutoGet, false );
  mDccAutoGetItem->setLabel( i18n("AutoGet") );
  addItem( mDccAutoGetItem, TQString::fromLatin1( "DccAutoGet" ) );
  mDccAutoResumeItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "AutoResume" ), mDccAutoResume, true );
  mDccAutoResumeItem->setLabel( i18n("AutoResume") );
  addItem( mDccAutoResumeItem, TQString::fromLatin1( "DccAutoResume" ) );
  mDccFastSendItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "FastSend" ), mDccFastSend, true );
  mDccFastSendItem->setLabel( i18n("FastSend") );
  addItem( mDccFastSendItem, TQString::fromLatin1( "DccFastSend" ) );
  mDccSendTimeoutItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "SendTimeout" ), mDccSendTimeout, 180 );
  mDccSendTimeoutItem->setLabel( i18n("SendTimeout") );
  addItem( mDccSendTimeoutItem, TQString::fromLatin1( "DccSendTimeout" ) );
  mDccIPv4FallbackItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "IPv4Fallback" ), mDccIPv4Fallback, false );
  mDccIPv4FallbackItem->setLabel( i18n("IPv4Fallback") );
  addItem( mDccIPv4FallbackItem, TQString::fromLatin1( "DccIPv4Fallback" ) );
  mDccIPv4FallbackIfaceItem = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "IPv4FallbackIface" ), mDccIPv4FallbackIface, TQString::fromLatin1( "eth0" ) );
  mDccIPv4FallbackIfaceItem->setLabel( i18n("IPv4FallbackIface") );
  addItem( mDccIPv4FallbackIfaceItem, TQString::fromLatin1( "DccIPv4FallbackIface" ) );
  mDccPassiveSendItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "PassiveSend" ), mDccPassiveSend, false );
  mDccPassiveSendItem->setLabel( i18n("PassiveSend") );
  addItem( mDccPassiveSendItem, TQString::fromLatin1( "DccPassiveSend" ) );
  TQValueList<int> defaultDccColumnWidths;
  defaultDccColumnWidths.append( 16 );
  defaultDccColumnWidths.append( 90 );
  defaultDccColumnWidths.append( 80 );
  defaultDccColumnWidths.append( 150 );
  defaultDccColumnWidths.append( 70 );
  defaultDccColumnWidths.append( 90 );
  defaultDccColumnWidths.append( 120 );
  defaultDccColumnWidths.append( 80 );
  defaultDccColumnWidths.append( 70 );
  defaultDccColumnWidths.append( 120 );

  mDccColumnWidthsItem = new TDEConfigSkeleton::ItemIntList( currentGroup(), TQString::fromLatin1( "ColumnWidths" ), mDccColumnWidths, defaultDccColumnWidths );
  mDccColumnWidthsItem->setLabel( i18n("ColumnWidths") );
  addItem( mDccColumnWidthsItem, TQString::fromLatin1( "DccColumnWidths" ) );

  setCurrentGroup( TQString::fromLatin1( "Path Settings" ) );

  mLogfilePathItem = new TDEConfigSkeleton::ItemPath( currentGroup(), TQString::fromLatin1( "LogfilePath" ), mLogfilePath, KUser(KUser::UseRealUserID).homeDir()+"/logs" );
  mLogfilePathItem->setLabel( i18n("LogfilePath") );
  addItem( mLogfilePathItem, TQString::fromLatin1( "LogfilePath" ) );
  mDccPathItem = new TDEConfigSkeleton::ItemPath( currentGroup(), TQString::fromLatin1( "DccPath" ), mDccPath, KUser(KUser::UseRealUserID).homeDir()+"/dccrecv" );
  mDccPathItem->setLabel( i18n("DccPath") );
  addItem( mDccPathItem, TQString::fromLatin1( "DccPath" ) );

  setCurrentGroup( TQString::fromLatin1( "Flags" ) );

  mLogItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "Log" ), mLog, true );
  mLogItem->setLabel( i18n("Log") );
  addItem( mLogItem, TQString::fromLatin1( "Log" ) );
  mLowerLogItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "LowerLog" ), mLowerLog, true );
  mLowerLogItem->setLabel( i18n("LowerLog") );
  addItem( mLowerLogItem, TQString::fromLatin1( "LowerLog" ) );
  mAddHostnameToLogItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "AddHostnameToLog" ), mAddHostnameToLog, false );
  mAddHostnameToLogItem->setLabel( i18n("AddHostnameToLog") );
  addItem( mAddHostnameToLogItem, TQString::fromLatin1( "AddHostnameToLog" ) );
  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesTabPlacement;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Top" );
    valuesTabPlacement.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Bottom" );
    valuesTabPlacement.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Left" );
    valuesTabPlacement.append( choice );
  }
  mTabPlacementItem = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "TabPlacement" ), mTabPlacement, valuesTabPlacement, Bottom );
  mTabPlacementItem->setLabel( i18n("TabPlacement") );
  addItem( mTabPlacementItem, TQString::fromLatin1( "TabPlacement" ) );
  mMiddleClickCloseItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "MiddleClickClose" ), mMiddleClickClose, false );
  mMiddleClickCloseItem->setLabel( i18n("MiddleClickClose") );
  addItem( mMiddleClickCloseItem, TQString::fromLatin1( "MiddleClickClose" ) );
  mUseClickableNicksItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "UseClickableNicks" ), mUseClickableNicks, true );
  mUseClickableNicksItem->setLabel( i18n("UseClickableNicks") );
  addItem( mUseClickableNicksItem, TQString::fromLatin1( "UseClickableNicks" ) );
  mBringToFrontItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "BringToFront" ), mBringToFront, false );
  mBringToFrontItem->setLabel( i18n("BringToFront") );
  addItem( mBringToFrontItem, TQString::fromLatin1( "BringToFront" ) );
  mHideUnimportantEventsItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "HideUnimportantEvents" ), mHideUnimportantEvents, false );
  mHideUnimportantEventsItem->setLabel( i18n("HideUnimportantEvents") );
  addItem( mHideUnimportantEventsItem, TQString::fromLatin1( "HideUnimportantEvents" ) );
  mDisableExpansionItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "DisableExpansion" ), mDisableExpansion, false );
  mDisableExpansionItem->setLabel( i18n("DisableExpansion") );
  addItem( mDisableExpansionItem, TQString::fromLatin1( "DisableExpansion" ) );
  mAutoReconnectItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "AutoReconnect" ), mAutoReconnect, true );
  mAutoReconnectItem->setLabel( i18n("AutoReconnect") );
  addItem( mAutoReconnectItem, TQString::fromLatin1( "AutoReconnect" ) );
  mReconnectDelayItem = new TDEConfigSkeleton::ItemUInt( currentGroup(), TQString::fromLatin1( "ReconnectDelay" ), mReconnectDelay, 10 );
  mReconnectDelayItem->setLabel( i18n("ReconnectDelay") );
  addItem( mReconnectDelayItem, TQString::fromLatin1( "ReconnectDelay" ) );
  mReconnectCountItem = new TDEConfigSkeleton::ItemUInt( currentGroup(), TQString::fromLatin1( "ReconnectCount" ), mReconnectCount, 0 );
  mReconnectCountItem->setLabel( i18n("ReconnectCount") );
  addItem( mReconnectCountItem, TQString::fromLatin1( "ReconnectCount" ) );
  mFixedMOTDItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "FixedMOTD" ), mFixedMOTD, true );
  mFixedMOTDItem->setLabel( i18n("FixedMOTD") );
  addItem( mFixedMOTDItem, TQString::fromLatin1( "FixedMOTD" ) );
  mSkipMOTDItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "SkipMOTD" ), mSkipMOTD, false );
  mSkipMOTDItem->setLabel( i18n("SkipMOTD") );
  addItem( mSkipMOTDItem, TQString::fromLatin1( "SkipMOTD" ) );
  mShowServerListItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowServerList" ), mShowServerList, true );
  mShowServerListItem->setLabel( i18n("ShowServerList") );
  addItem( mShowServerListItem, TQString::fromLatin1( "ShowServerList" ) );
  mInputFieldsBackgroundColorItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "InputFieldsBackgroundColor" ), mInputFieldsBackgroundColor, false );
  mInputFieldsBackgroundColorItem->setLabel( i18n("InputFieldsBackgroundColor") );
  addItem( mInputFieldsBackgroundColorItem, TQString::fromLatin1( "InputFieldsBackgroundColor" ) );

  setCurrentGroup( TQString::fromLatin1( "Web Browser Settings" ) );

  mUseCustomBrowserItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "UseCustomBrowser" ), mUseCustomBrowser, false );
  mUseCustomBrowserItem->setLabel( i18n("UseCustomBrowser") );
  addItem( mUseCustomBrowserItem, TQString::fromLatin1( "UseCustomBrowser" ) );
  mWebBrowserCmdItem = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "WebBrowserCmd" ), mWebBrowserCmd, TQString::fromLatin1( "firefox '%u'" ) );
  mWebBrowserCmdItem->setLabel( i18n("WebBrowserCmd") );
  addItem( mWebBrowserCmdItem, TQString::fromLatin1( "WebBrowserCmd" ) );

  setCurrentGroup( TQString::fromLatin1( "Themes" ) );

  mIconThemeItem = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "IconTheme" ), mIconTheme, TQString::fromLatin1( "default" ) );
  mIconThemeItem->setLabel( i18n("IconTheme") );
  addItem( mIconThemeItem, TQString::fromLatin1( "IconTheme" ) );
  mEnableEmotIconsItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "EnableEmotIcons" ), mEnableEmotIcons, false );
  mEnableEmotIconsItem->setLabel( i18n("Enable emoticons") );
  addItem( mEnableEmotIconsItem, TQString::fromLatin1( "EnableEmotIcons" ) );
  mEmotIconThemeItem = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "EmotIconTheme" ), mEmotIconTheme, TQString::fromLatin1( "Default" ) );
  mEmotIconThemeItem->setLabel( i18n("Emoticons theme") );
  addItem( mEmotIconThemeItem, TQString::fromLatin1( "EmotIconTheme" ) );

  setCurrentGroup( TQString::fromLatin1( "PreferencesDialog" ) );

  mPreferencesDialogSizeItem = new TDEConfigSkeleton::ItemSize( currentGroup(), TQString::fromLatin1( "Size" ), mPreferencesDialogSize );
  mPreferencesDialogSizeItem->setLabel( i18n("Size") );
  addItem( mPreferencesDialogSizeItem, TQString::fromLatin1( "PreferencesDialogSize" ) );
  mLastActiveModuleItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "LastActiveModule" ), mLastActiveModule );
  mLastActiveModuleItem->setLabel( i18n("LastActiveModule") );
  addItem( mLastActiveModuleItem, TQString::fromLatin1( "LastActiveModule" ) );

  setCurrentGroup( TQString::fromLatin1( "ServerListDialog" ) );

  mServerListDialogSizeItem = new TDEConfigSkeleton::ItemSize( currentGroup(), TQString::fromLatin1( "Size" ), mServerListDialogSize );
  mServerListDialogSizeItem->setLabel( i18n("Size") );
  addItem( mServerListDialogSizeItem, TQString::fromLatin1( "ServerListDialogSize" ) );

  setCurrentGroup( TQString::fromLatin1( "Message Text Colors" ) );

  mColorItem[0] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "ActionMessage" ), mColor[0], TQColor( "#0000ff" ) );
  mColorItem[0]->setLabel( i18n("$(colorName)Color") );
  addItem( mColorItem[0], TQString::fromLatin1( "ActionMessageColor" ) );
  mColorItem[1] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "BacklogMessage" ), mColor[1], TQColor( "#aaaaaa" ) );
  mColorItem[1]->setLabel( i18n("$(colorName)Color") );
  addItem( mColorItem[1], TQString::fromLatin1( "BacklogMessageColor" ) );
  mColorItem[2] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "ChannelMessage" ), mColor[2], TQColor( "#000000" ) );
  mColorItem[2]->setLabel( i18n("$(colorName)Color") );
  addItem( mColorItem[2], TQString::fromLatin1( "ChannelMessageColor" ) );
  mColorItem[3] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "CommandMessage" ), mColor[3], TQColor( "#960096" ) );
  mColorItem[3]->setLabel( i18n("$(colorName)Color") );
  addItem( mColorItem[3], TQString::fromLatin1( "CommandMessageColor" ) );
  mColorItem[4] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "QueryMessage" ), mColor[4], TQColor( "#000000" ) );
  mColorItem[4]->setLabel( i18n("$(colorName)Color") );
  addItem( mColorItem[4], TQString::fromLatin1( "QueryMessageColor" ) );
  mColorItem[5] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "ServerMessage" ), mColor[5], TQColor( "#91640a" ) );
  mColorItem[5]->setLabel( i18n("$(colorName)Color") );
  addItem( mColorItem[5], TQString::fromLatin1( "ServerMessageColor" ) );
  mColorItem[6] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "Time" ), mColor[6], TQColor( "#709070" ) );
  mColorItem[6]->setLabel( i18n("$(colorName)Color") );
  addItem( mColorItem[6], TQString::fromLatin1( "TimeColor" ) );
  mColorItem[7] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "Action" ), mColor[7], TQColor( "#0000ff" ) );
  mColorItem[7]->setLabel( i18n("$(colorName)Color") );
  addItem( mColorItem[7], TQString::fromLatin1( "ActionColor" ) );
  mColorItem[8] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "TextViewBackground" ), mColor[8], TQColor( "#ffffff" ) );
  mColorItem[8]->setLabel( i18n("$(colorName)Color") );
  addItem( mColorItem[8], TQString::fromLatin1( "TextViewBackgroundColor" ) );
  mColorItem[9] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "AlternateBackground" ), mColor[9], TQColor( "#EDF4F9" ) );
  mColorItem[9]->setLabel( i18n("$(colorName)Color") );
  addItem( mColorItem[9], TQString::fromLatin1( "AlternateBackgroundColor" ) );
  mColorItem[10] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "Hyperlink" ), mColor[10], TQColor( "#0000ff" ) );
  mColorItem[10]->setLabel( i18n("$(colorName)Color") );
  addItem( mColorItem[10], TQString::fromLatin1( "HyperlinkColor" ) );

  setCurrentGroup( TQString::fromLatin1( "Tab Notifications" ) );

  mTabNotificationsTextItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "TabNotificationsText" ), mTabNotificationsText, true );
  mTabNotificationsTextItem->setLabel( i18n("TabNotificationsText") );
  addItem( mTabNotificationsTextItem, TQString::fromLatin1( "TabNotificationsText" ) );
  mTabNotificationsLedsItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "TabNotificationsLeds" ), mTabNotificationsLeds, false );
  mTabNotificationsLedsItem->setLabel( i18n("TabNotificationsLeds") );
  addItem( mTabNotificationsLedsItem, TQString::fromLatin1( "TabNotificationsLeds" ) );
  mTabNotificationsSystemItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "TabNotificationsSystem" ), mTabNotificationsSystem, true );
  mTabNotificationsSystemItem->setLabel( i18n("TabNotificationsSystem") );
  addItem( mTabNotificationsSystemItem, TQString::fromLatin1( "TabNotificationsSystem" ) );
  mTabNotificationsSystemColorItem = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "TabNotificationsSystemColor" ), mTabNotificationsSystemColor, TQColor( "#C3C300" ) );
  mTabNotificationsSystemColorItem->setLabel( i18n("TabNotificationsSystemColor") );
  addItem( mTabNotificationsSystemColorItem, TQString::fromLatin1( "TabNotificationsSystemColor" ) );
  mTabNotificationsMsgsItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "TabNotificationsMsgs" ), mTabNotificationsMsgs, true );
  mTabNotificationsMsgsItem->setLabel( i18n("TabNotificationsMsgs") );
  addItem( mTabNotificationsMsgsItem, TQString::fromLatin1( "TabNotificationsMsgs" ) );
  mTabNotificationsMsgsColorItem = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "TabNotificationsMsgsColor" ), mTabNotificationsMsgsColor, TQColor( "#008000" ) );
  mTabNotificationsMsgsColorItem->setLabel( i18n("TabNotificationsMsgsColor") );
  addItem( mTabNotificationsMsgsColorItem, TQString::fromLatin1( "TabNotificationsMsgsColor" ) );
  mTabNotificationsPrivateItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "TabNotificationsPrivate" ), mTabNotificationsPrivate, true );
  mTabNotificationsPrivateItem->setLabel( i18n("TabNotificationsPrivate") );
  addItem( mTabNotificationsPrivateItem, TQString::fromLatin1( "TabNotificationsPrivate" ) );
  mTabNotificationsPrivateColorItem = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "TabNotificationsPrivateColor" ), mTabNotificationsPrivateColor, TQColor( "#800000" ) );
  mTabNotificationsPrivateColorItem->setLabel( i18n("TabNotificationsPrivateColor") );
  addItem( mTabNotificationsPrivateColorItem, TQString::fromLatin1( "TabNotificationsPrivateColor" ) );
  mTabNotificationsEventsItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "TabNotificationsEvents" ), mTabNotificationsEvents, false );
  mTabNotificationsEventsItem->setLabel( i18n("TabNotificationsEvents") );
  addItem( mTabNotificationsEventsItem, TQString::fromLatin1( "TabNotificationsEvents" ) );
  mTabNotificationsEventsColorItem = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "TabNotificationsEventsColor" ), mTabNotificationsEventsColor, TQColor( "#008000" ) );
  mTabNotificationsEventsColorItem->setLabel( i18n("TabNotificationsEventsColor") );
  addItem( mTabNotificationsEventsColorItem, TQString::fromLatin1( "TabNotificationsEventsColor" ) );
  mTabNotificationsNickItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "TabNotificationsNick" ), mTabNotificationsNick, true );
  mTabNotificationsNickItem->setLabel( i18n("TabNotificationsNick") );
  addItem( mTabNotificationsNickItem, TQString::fromLatin1( "TabNotificationsNick" ) );
  mTabNotificationsNickColorItem = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "TabNotificationsNickColor" ), mTabNotificationsNickColor, TQColor( "#FF0000" ) );
  mTabNotificationsNickColorItem->setLabel( i18n("TabNotificationsNickColor") );
  addItem( mTabNotificationsNickColorItem, TQString::fromLatin1( "TabNotificationsNickColor" ) );
  mTabNotificationsHighlightsItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "TabNotificationsHighlights" ), mTabNotificationsHighlights, true );
  mTabNotificationsHighlightsItem->setLabel( i18n("TabNotificationsHighlights") );
  addItem( mTabNotificationsHighlightsItem, TQString::fromLatin1( "TabNotificationsHighlights" ) );
  mTabNotificationsHighlightsColorItem = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "TabNotificationsHighlightsColor" ), mTabNotificationsHighlightsColor, TQColor( "#FF0000" ) );
  mTabNotificationsHighlightsColorItem->setLabel( i18n("TabNotificationsHighlightsColor") );
  addItem( mTabNotificationsHighlightsColorItem, TQString::fromLatin1( "TabNotificationsHighlightsColor" ) );
  mTabNotificationsOverrideItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "TabNotificationsOverride" ), mTabNotificationsOverride, false );
  mTabNotificationsOverrideItem->setLabel( i18n("TabNotificationsOverride") );
  addItem( mTabNotificationsOverrideItem, TQString::fromLatin1( "TabNotificationsOverride" ) );

  setCurrentGroup( TQString::fromLatin1( "Sort Nicknames" ) );

  mSortOrderItem = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "SortOrder" ), mSortOrder, TQString::fromLatin1( "qpohv-" ) );
  mSortOrderItem->setLabel( i18n("SortOrder") );
  addItem( mSortOrderItem, TQString::fromLatin1( "SortOrder" ) );

  setCurrentGroup( TQString::fromLatin1( "QueueRates" ) );

  TQValueList< TQValueList<int> > defaultRate;
  TQValueList< TQValueList<int> >::iterator defaultRateInitIter;

  defaultRateInitIter = defaultRate.append(TQValueList<int>());
  (*defaultRateInitIter).append( 15 );
  (*defaultRateInitIter).append( 60 );
  (*defaultRateInitIter).append( 0 );

  defaultRateInitIter = defaultRate.append(TQValueList<int>());
  (*defaultRateInitIter).append( 40 );
  (*defaultRateInitIter).append( 60 );
  (*defaultRateInitIter).append( 0 );

  defaultRateInitIter = defaultRate.append(TQValueList<int>());
  (*defaultRateInitIter).append( 1 );
  (*defaultRateInitIter).append( 1 );
  (*defaultRateInitIter).append( 0 );

  if (0) //tdeconfig_compiler generates invalid code for int lists
  TQValueList<int> defaultqueueRate;

  mQueueRateItem[0] = new TDEConfigSkeleton::ItemIntList( currentGroup(), TQString::fromLatin1( "EmptyingRate 0" ), mQueueRate[0], defaultRate[0] );
  mQueueRateItem[0]->setLabel( i18n("EmptyingRate queueRate$(QueueIndex)") );
  addItem( mQueueRateItem[0], TQString::fromLatin1( "queueRate0" ) );
  mQueueRateItem[1] = new TDEConfigSkeleton::ItemIntList( currentGroup(), TQString::fromLatin1( "EmptyingRate 1" ), mQueueRate[1], defaultRate[1] );
  mQueueRateItem[1]->setLabel( i18n("EmptyingRate queueRate$(QueueIndex)") );
  addItem( mQueueRateItem[1], TQString::fromLatin1( "queueRate1" ) );
  mQueueRateItem[2] = new TDEConfigSkeleton::ItemIntList( currentGroup(), TQString::fromLatin1( "EmptyingRate 2" ), mQueueRate[2], defaultRate[2] );
  mQueueRateItem[2]->setLabel( i18n("EmptyingRate queueRate$(QueueIndex)") );
  addItem( mQueueRateItem[2], TQString::fromLatin1( "queueRate2" ) );
  mShowQueueTunerItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowQueueTuner" ), mShowQueueTuner, false );
  mShowQueueTunerItem->setLabel( i18n("ShowQueueTuner") );
  addItem( mShowQueueTunerItem, TQString::fromLatin1( "ShowQueueTuner" ) );
}

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

