// This file is generated by kconfig_compiler from tellico_config.kcfg. // All changes you do to this file will be lost. #include "tellico_config.h" #include using namespace Tellico; Config *Config::mSelf = 0; static KStaticDeleter staticConfigDeleter; Config *Config::self() { if ( !mSelf ) { staticConfigDeleter.setObject( mSelf, new Config() ); mSelf->readConfig(); } return mSelf; } Config::Config( ) : KConfigSkeleton( TQString::tqfromLatin1( "tellicorc" ) ) { mSelf = this; setCurrentGroup( TQString::tqfromLatin1( "TipOfDay" ) ); KConfigSkeleton::ItemBool *itemShowTipOfDay; itemShowTipOfDay = new KConfigSkeleton::ItemBool( currentGroup(), TQString::tqfromLatin1( "RunOnStart" ), mShowTipOfDay, true ); addItem( itemShowTipOfDay, TQString::tqfromLatin1( "showTipOfDay" ) ); setCurrentGroup( TQString::tqfromLatin1( "Main Window Options" ) ); TQValueList defaultMainSplitterSizes; KConfigSkeleton::ItemIntList *itemMainSplitterSizes; itemMainSplitterSizes = new KConfigSkeleton::ItemIntList( currentGroup(), TQString::tqfromLatin1( "Main Splitter Sizes" ), mMainSplitterSizes, defaultMainSplitterSizes ); addItem( itemMainSplitterSizes, TQString::tqfromLatin1( "MainSplitterSizes" ) ); TQValueList defaultSecondarySplitterSizes; KConfigSkeleton::ItemIntList *itemSecondarySplitterSizes; itemSecondarySplitterSizes = new KConfigSkeleton::ItemIntList( currentGroup(), TQString::tqfromLatin1( "Secondary Splitter Sizes" ), mSecondarySplitterSizes, defaultSecondarySplitterSizes ); addItem( itemSecondarySplitterSizes, TQString::tqfromLatin1( "SecondarySplitterSizes" ) ); setCurrentGroup( TQString::tqfromLatin1( "Detailed View Options" ) ); KConfigSkeleton::ItemInt *itemMaxPixmapWidth; itemMaxPixmapWidth = new KConfigSkeleton::ItemInt( currentGroup(), TQString::tqfromLatin1( "MaxPixmapWidth" ), mMaxPixmapWidth, 50 ); addItem( itemMaxPixmapWidth, TQString::tqfromLatin1( "MaxPixmapWidth" ) ); KConfigSkeleton::ItemInt *itemMaxPixmapHeight; itemMaxPixmapHeight = new KConfigSkeleton::ItemInt( currentGroup(), TQString::tqfromLatin1( "MaxPixmapHeight" ), mMaxPixmapHeight, 50 ); addItem( itemMaxPixmapHeight, TQString::tqfromLatin1( "MaxPixmapHeight" ) ); setCurrentGroup( TQString::tqfromLatin1( "Group View Options" ) ); KConfigSkeleton::ItemInt *itemGroupViewSortColumn; itemGroupViewSortColumn = new KConfigSkeleton::ItemInt( currentGroup(), TQString::tqfromLatin1( "SortColumn" ), mGroupViewSortColumn, 0 ); addItem( itemGroupViewSortColumn, TQString::tqfromLatin1( "groupViewSortColumn" ) ); KConfigSkeleton::ItemBool *itemGroupViewSortAscending; itemGroupViewSortAscending = new KConfigSkeleton::ItemBool( currentGroup(), TQString::tqfromLatin1( "SortAscending" ), mGroupViewSortAscending, true ); addItem( itemGroupViewSortAscending, TQString::tqfromLatin1( "groupViewSortAscending" ) ); setCurrentGroup( TQString::tqfromLatin1( "Filter View Options" ) ); KConfigSkeleton::ItemInt *itemFilterViewSortColumn; itemFilterViewSortColumn = new KConfigSkeleton::ItemInt( currentGroup(), TQString::tqfromLatin1( "SortColumn" ), mFilterViewSortColumn, 0 ); addItem( itemFilterViewSortColumn, TQString::tqfromLatin1( "filterViewSortColumn" ) ); KConfigSkeleton::ItemBool *itemFilterViewSortAscending; itemFilterViewSortAscending = new KConfigSkeleton::ItemBool( currentGroup(), TQString::tqfromLatin1( "SortAscending" ), mFilterViewSortAscending, true ); addItem( itemFilterViewSortAscending, TQString::tqfromLatin1( "filterViewSortAscending" ) ); setCurrentGroup( TQString::tqfromLatin1( "Loan View Options" ) ); KConfigSkeleton::ItemInt *itemLoanViewSortColumn; itemLoanViewSortColumn = new KConfigSkeleton::ItemInt( currentGroup(), TQString::tqfromLatin1( "SortColumn" ), mLoanViewSortColumn, 0 ); addItem( itemLoanViewSortColumn, TQString::tqfromLatin1( "loanViewSortColumn" ) ); KConfigSkeleton::ItemBool *itemLoanViewSortAscending; itemLoanViewSortAscending = new KConfigSkeleton::ItemBool( currentGroup(), TQString::tqfromLatin1( "SortAscending" ), mLoanViewSortAscending, true ); addItem( itemLoanViewSortAscending, TQString::tqfromLatin1( "loanViewSortAscending" ) ); setCurrentGroup( TQString::tqfromLatin1( "Export Options - Bibtex" ) ); KConfigSkeleton::ItemBool *itemUseBraces; itemUseBraces = new KConfigSkeleton::ItemBool( currentGroup(), TQString::tqfromLatin1( "Use Braces" ), mUseBraces, true ); addItem( itemUseBraces, TQString::tqfromLatin1( "UseBraces" ) ); setCurrentGroup( TQString::tqfromLatin1( "General Options" ) ); KConfigSkeleton::ItemBool *itemShowGroupWidget; itemShowGroupWidget = new KConfigSkeleton::ItemBool( currentGroup(), TQString::tqfromLatin1( "Show Group Widget" ), mShowGroupWidget, true ); addItem( itemShowGroupWidget, TQString::tqfromLatin1( "ShowGroupWidget" ) ); KConfigSkeleton::ItemBool *itemShowEditWidget; itemShowEditWidget = new KConfigSkeleton::ItemBool( currentGroup(), TQString::tqfromLatin1( "Show Edit Widget" ), mShowEditWidget, false ); addItem( itemShowEditWidget, TQString::tqfromLatin1( "ShowEditWidget" ) ); KConfigSkeleton::ItemBool *itemShowEntryView; itemShowEntryView = new KConfigSkeleton::ItemBool( currentGroup(), TQString::tqfromLatin1( "Show Entry View" ), mShowEntryView, true ); addItem( itemShowEntryView, TQString::tqfromLatin1( "ShowEntryView" ) ); TQValueList valuesImageLocation; { KConfigSkeleton::ItemEnum::Choice choice; choice.name = TQString::tqfromLatin1( "ImagesInFile" ); valuesImageLocation.append( choice ); } { KConfigSkeleton::ItemEnum::Choice choice; choice.name = TQString::tqfromLatin1( "ImagesInAppDir" ); valuesImageLocation.append( choice ); } { KConfigSkeleton::ItemEnum::Choice choice; choice.name = TQString::tqfromLatin1( "ImagesInLocalDir" ); valuesImageLocation.append( choice ); } KConfigSkeleton::ItemEnum *itemImageLocation; itemImageLocation = new KConfigSkeleton::ItemEnum( currentGroup(), TQString::tqfromLatin1( "Image Location" ), mImageLocation, valuesImageLocation, ImagesInFile ); addItem( itemImageLocation, TQString::tqfromLatin1( "ImageLocation" ) ); KConfigSkeleton::ItemBool *itemAskWriteImagesInFile; itemAskWriteImagesInFile = new KConfigSkeleton::ItemBool( currentGroup(), TQString::tqfromLatin1( "Ask Write Images In File" ), mAskWriteImagesInFile, true ); addItem( itemAskWriteImagesInFile, TQString::tqfromLatin1( "AskWriteImagesInFile" ) ); KConfigSkeleton::ItemBool *itemReopenLastFile; itemReopenLastFile = new KConfigSkeleton::ItemBool( currentGroup(), TQString::tqfromLatin1( "Reopen Last File" ), mReopenLastFile, true ); addItem( itemReopenLastFile, TQString::tqfromLatin1( "ReopenLastFile" ) ); KConfigSkeleton::ItemBool *itemAutoCapitalization; itemAutoCapitalization = new KConfigSkeleton::ItemBool( currentGroup(), TQString::tqfromLatin1( "Auto Capitalization" ), mAutoCapitalization, true ); addItem( itemAutoCapitalization, TQString::tqfromLatin1( "AutoCapitalization" ) ); KConfigSkeleton::ItemBool *itemAutoFormat; itemAutoFormat = new KConfigSkeleton::ItemBool( currentGroup(), TQString::tqfromLatin1( "Auto Format" ), mAutoFormat, true ); addItem( itemAutoFormat, TQString::tqfromLatin1( "AutoFormat" ) ); KConfigSkeleton::ItemString *itemLastOpenFile; itemLastOpenFile = new KConfigSkeleton::ItemString( currentGroup(), TQString::tqfromLatin1( "Last Open File" ), mLastOpenFile ); addItem( itemLastOpenFile, TQString::tqfromLatin1( "LastOpenFile" ) ); KConfigSkeleton::ItemString *itemNoCapitalizationString; itemNoCapitalizationString = new KConfigSkeleton::ItemString( currentGroup(), TQString::tqfromLatin1( "No Capitalization" ), mNoCapitalizationString, i18n("a,an,and,as,at,but,by,for,from,in,into,nor,of,off,on,onto,or,out,over,the,to,up,with") ); addItem( itemNoCapitalizationString, TQString::tqfromLatin1( "noCapitalizationString" ) ); KConfigSkeleton::ItemString *itemArticlesString; itemArticlesString = new KConfigSkeleton::ItemString( currentGroup(), TQString::tqfromLatin1( "Articles" ), mArticlesString, i18n("the") ); addItem( itemArticlesString, TQString::tqfromLatin1( "articlesString" ) ); KConfigSkeleton::ItemString *itemNameSuffixesString; itemNameSuffixesString = new KConfigSkeleton::ItemString( currentGroup(), TQString::tqfromLatin1( "Name Suffixes" ), mNameSuffixesString, i18n("jr.,jr,iii,iv") ); addItem( itemNameSuffixesString, TQString::tqfromLatin1( "nameSuffixesString" ) ); KConfigSkeleton::ItemString *itemSurnamePrefixesString; itemSurnamePrefixesString = new KConfigSkeleton::ItemString( currentGroup(), TQString::tqfromLatin1( "Surname Prefixes" ), mSurnamePrefixesString, i18n("de,van,der,van der,von") ); addItem( itemSurnamePrefixesString, TQString::tqfromLatin1( "surnamePrefixesString" ) ); KConfigSkeleton::ItemInt *itemMaxIconSize; itemMaxIconSize = new KConfigSkeleton::ItemInt( currentGroup(), TQString::tqfromLatin1( "Max Icon Size" ), mMaxIconSize, 96 ); addItem( itemMaxIconSize, TQString::tqfromLatin1( "MaxIconSize" ) ); KConfigSkeleton::ItemInt *itemImageCacheSize; itemImageCacheSize = new KConfigSkeleton::ItemInt( currentGroup(), TQString::tqfromLatin1( "Image Cache Size" ), mImageCacheSize, (10 * 1024 * 1024) ); addItem( itemImageCacheSize, TQString::tqfromLatin1( "ImageCacheSize" ) ); KConfigSkeleton::ItemUInt *itemMaxCustomURLSettings; itemMaxCustomURLSettings = new KConfigSkeleton::ItemUInt( currentGroup(), TQString::tqfromLatin1( "Max Custom URL Settings" ), mMaxCustomURLSettings, 9 ); addItem( itemMaxCustomURLSettings, TQString::tqfromLatin1( "MaxCustomURLSettings" ) ); setCurrentGroup( TQString::tqfromLatin1( "Printing" ) ); KConfigSkeleton::ItemBool *itemPrintFieldHeaders; itemPrintFieldHeaders = new KConfigSkeleton::ItemBool( currentGroup(), TQString::tqfromLatin1( "Print Field Headers" ), mPrintFieldHeaders, true ); addItem( itemPrintFieldHeaders, TQString::tqfromLatin1( "PrintFieldHeaders" ) ); KConfigSkeleton::ItemBool *itemPrintFormatted; itemPrintFormatted = new KConfigSkeleton::ItemBool( currentGroup(), TQString::tqfromLatin1( "Print Formatted" ), mPrintFormatted, true ); addItem( itemPrintFormatted, TQString::tqfromLatin1( "PrintFormatted" ) ); KConfigSkeleton::ItemBool *itemPrintGrouped; itemPrintGrouped = new KConfigSkeleton::ItemBool( currentGroup(), TQString::tqfromLatin1( "Print Grouped" ), mPrintGrouped, true ); addItem( itemPrintGrouped, TQString::tqfromLatin1( "PrintGrouped" ) ); KConfigSkeleton::ItemInt *itemMaxImageWidth; itemMaxImageWidth = new KConfigSkeleton::ItemInt( currentGroup(), TQString::tqfromLatin1( "Max Image Width" ), mMaxImageWidth, 50 ); addItem( itemMaxImageWidth, TQString::tqfromLatin1( "MaxImageWidth" ) ); KConfigSkeleton::ItemInt *itemMaxImageHeight; itemMaxImageHeight = new KConfigSkeleton::ItemInt( currentGroup(), TQString::tqfromLatin1( "Max Image Height" ), mMaxImageHeight, 50 ); addItem( itemMaxImageHeight, TQString::tqfromLatin1( "MaxImageHeight" ) ); setCurrentGroup( TQString::tqfromLatin1( "Options - book" ) ); KConfigSkeleton::ItemString *itemTemplateBook; itemTemplateBook = new KConfigSkeleton::ItemString( currentGroup(), TQString::tqfromLatin1( "Entry Template" ), mTemplateBook, TQString::tqfromLatin1( "Fancy" ) ); addItem( itemTemplateBook, TQString::tqfromLatin1( "templateBook" ) ); KConfigSkeleton::ItemFont *itemFontBook; itemFontBook = new KConfigSkeleton::ItemFont( currentGroup(), TQString::tqfromLatin1( "Template Font" ), mFontBook, KGlobalSettings::generalFont() ); addItem( itemFontBook, TQString::tqfromLatin1( "fontBook" ) ); KConfigSkeleton::ItemColor *itemBaseColorBook; itemBaseColorBook = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Base Color" ), mBaseColorBook, KGlobalSettings::baseColor() ); addItem( itemBaseColorBook, TQString::tqfromLatin1( "baseColorBook" ) ); KConfigSkeleton::ItemColor *itemTextColorBook; itemTextColorBook = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Text Color" ), mTextColorBook, KGlobalSettings::textColor() ); addItem( itemTextColorBook, TQString::tqfromLatin1( "textColorBook" ) ); KConfigSkeleton::ItemColor *itemHighlightedBaseColorBook; itemHighlightedBaseColorBook = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Highlight Color" ), mHighlightedBaseColorBook, KGlobalSettings::highlightColor() ); addItem( itemHighlightedBaseColorBook, TQString::tqfromLatin1( "highlightedBaseColorBook" ) ); KConfigSkeleton::ItemColor *itemHighlightedTextColorBook; itemHighlightedTextColorBook = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Highlighted Text Color" ), mHighlightedTextColorBook, KGlobalSettings::highlightedTextColor() ); addItem( itemHighlightedTextColorBook, TQString::tqfromLatin1( "highlightedTextColorBook" ) ); setCurrentGroup( TQString::tqfromLatin1( "Options - video" ) ); KConfigSkeleton::ItemString *itemTemplateVideo; itemTemplateVideo = new KConfigSkeleton::ItemString( currentGroup(), TQString::tqfromLatin1( "Entry Template" ), mTemplateVideo, TQString::tqfromLatin1( "Video" ) ); addItem( itemTemplateVideo, TQString::tqfromLatin1( "templateVideo" ) ); KConfigSkeleton::ItemFont *itemFontVideo; itemFontVideo = new KConfigSkeleton::ItemFont( currentGroup(), TQString::tqfromLatin1( "Template Font" ), mFontVideo, KGlobalSettings::generalFont() ); addItem( itemFontVideo, TQString::tqfromLatin1( "fontVideo" ) ); KConfigSkeleton::ItemColor *itemBaseColorVideo; itemBaseColorVideo = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Base Color" ), mBaseColorVideo, KGlobalSettings::baseColor() ); addItem( itemBaseColorVideo, TQString::tqfromLatin1( "baseColorVideo" ) ); KConfigSkeleton::ItemColor *itemTextColorVideo; itemTextColorVideo = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Text Color" ), mTextColorVideo, KGlobalSettings::textColor() ); addItem( itemTextColorVideo, TQString::tqfromLatin1( "textColorVideo" ) ); KConfigSkeleton::ItemColor *itemHighlightedBaseColorVideo; itemHighlightedBaseColorVideo = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Highlight Color" ), mHighlightedBaseColorVideo, KGlobalSettings::highlightColor() ); addItem( itemHighlightedBaseColorVideo, TQString::tqfromLatin1( "highlightedBaseColorVideo" ) ); KConfigSkeleton::ItemColor *itemHighlightedTextColorVideo; itemHighlightedTextColorVideo = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Highlighted Text Color" ), mHighlightedTextColorVideo, KGlobalSettings::highlightedTextColor() ); addItem( itemHighlightedTextColorVideo, TQString::tqfromLatin1( "highlightedTextColorVideo" ) ); setCurrentGroup( TQString::tqfromLatin1( "Options - album" ) ); KConfigSkeleton::ItemString *itemTemplateAlbum; itemTemplateAlbum = new KConfigSkeleton::ItemString( currentGroup(), TQString::tqfromLatin1( "Entry Template" ), mTemplateAlbum, TQString::tqfromLatin1( "Album" ) ); addItem( itemTemplateAlbum, TQString::tqfromLatin1( "templateAlbum" ) ); KConfigSkeleton::ItemFont *itemFontAlbum; itemFontAlbum = new KConfigSkeleton::ItemFont( currentGroup(), TQString::tqfromLatin1( "Template Font" ), mFontAlbum, KGlobalSettings::generalFont() ); addItem( itemFontAlbum, TQString::tqfromLatin1( "fontAlbum" ) ); KConfigSkeleton::ItemColor *itemBaseColorAlbum; itemBaseColorAlbum = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Base Color" ), mBaseColorAlbum, KGlobalSettings::baseColor() ); addItem( itemBaseColorAlbum, TQString::tqfromLatin1( "baseColorAlbum" ) ); KConfigSkeleton::ItemColor *itemTextColorAlbum; itemTextColorAlbum = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Text Color" ), mTextColorAlbum, KGlobalSettings::textColor() ); addItem( itemTextColorAlbum, TQString::tqfromLatin1( "textColorAlbum" ) ); KConfigSkeleton::ItemColor *itemHighlightedBaseColorAlbum; itemHighlightedBaseColorAlbum = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Highlight Color" ), mHighlightedBaseColorAlbum, KGlobalSettings::highlightColor() ); addItem( itemHighlightedBaseColorAlbum, TQString::tqfromLatin1( "highlightedBaseColorAlbum" ) ); KConfigSkeleton::ItemColor *itemHighlightedTextColorAlbum; itemHighlightedTextColorAlbum = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Highlighted Text Color" ), mHighlightedTextColorAlbum, KGlobalSettings::highlightedTextColor() ); addItem( itemHighlightedTextColorAlbum, TQString::tqfromLatin1( "highlightedTextColorAlbum" ) ); setCurrentGroup( TQString::tqfromLatin1( "Options - bibtex" ) ); KConfigSkeleton::ItemPath *itemLyxpipe; itemLyxpipe = new KConfigSkeleton::ItemPath( currentGroup(), TQString::tqfromLatin1( "lyxpipe" ), mLyxpipe, TQString::tqfromLatin1( "$HOME/.lyx/lyxpipe" ) ); addItem( itemLyxpipe, TQString::tqfromLatin1( "lyxpipe" ) ); KConfigSkeleton::ItemString *itemTemplateBibtex; itemTemplateBibtex = new KConfigSkeleton::ItemString( currentGroup(), TQString::tqfromLatin1( "Entry Template" ), mTemplateBibtex, TQString::tqfromLatin1( "Fancy" ) ); addItem( itemTemplateBibtex, TQString::tqfromLatin1( "templateBibtex" ) ); KConfigSkeleton::ItemFont *itemFontBibtex; itemFontBibtex = new KConfigSkeleton::ItemFont( currentGroup(), TQString::tqfromLatin1( "Template Font" ), mFontBibtex, KGlobalSettings::generalFont() ); addItem( itemFontBibtex, TQString::tqfromLatin1( "fontBibtex" ) ); KConfigSkeleton::ItemColor *itemBaseColorBibtex; itemBaseColorBibtex = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Base Color" ), mBaseColorBibtex, KGlobalSettings::baseColor() ); addItem( itemBaseColorBibtex, TQString::tqfromLatin1( "baseColorBibtex" ) ); KConfigSkeleton::ItemColor *itemTextColorBibtex; itemTextColorBibtex = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Text Color" ), mTextColorBibtex, KGlobalSettings::textColor() ); addItem( itemTextColorBibtex, TQString::tqfromLatin1( "textColorBibtex" ) ); KConfigSkeleton::ItemColor *itemHighlightedBaseColorBibtex; itemHighlightedBaseColorBibtex = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Highlight Color" ), mHighlightedBaseColorBibtex, KGlobalSettings::highlightColor() ); addItem( itemHighlightedBaseColorBibtex, TQString::tqfromLatin1( "highlightedBaseColorBibtex" ) ); KConfigSkeleton::ItemColor *itemHighlightedTextColorBibtex; itemHighlightedTextColorBibtex = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Highlighted Text Color" ), mHighlightedTextColorBibtex, KGlobalSettings::highlightedTextColor() ); addItem( itemHighlightedTextColorBibtex, TQString::tqfromLatin1( "highlightedTextColorBibtex" ) ); setCurrentGroup( TQString::tqfromLatin1( "Options - comic" ) ); KConfigSkeleton::ItemString *itemTemplateComicBook; itemTemplateComicBook = new KConfigSkeleton::ItemString( currentGroup(), TQString::tqfromLatin1( "Entry Template" ), mTemplateComicBook, TQString::tqfromLatin1( "Fancy" ) ); addItem( itemTemplateComicBook, TQString::tqfromLatin1( "templateComicBook" ) ); KConfigSkeleton::ItemFont *itemFontComicBook; itemFontComicBook = new KConfigSkeleton::ItemFont( currentGroup(), TQString::tqfromLatin1( "Template Font" ), mFontComicBook, KGlobalSettings::generalFont() ); addItem( itemFontComicBook, TQString::tqfromLatin1( "fontComicBook" ) ); KConfigSkeleton::ItemColor *itemBaseColorComicBook; itemBaseColorComicBook = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Base Color" ), mBaseColorComicBook, KGlobalSettings::baseColor() ); addItem( itemBaseColorComicBook, TQString::tqfromLatin1( "baseColorComicBook" ) ); KConfigSkeleton::ItemColor *itemTextColorComicBook; itemTextColorComicBook = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Text Color" ), mTextColorComicBook, KGlobalSettings::textColor() ); addItem( itemTextColorComicBook, TQString::tqfromLatin1( "textColorComicBook" ) ); KConfigSkeleton::ItemColor *itemHighlightedBaseColorComicBook; itemHighlightedBaseColorComicBook = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Highlight Color" ), mHighlightedBaseColorComicBook, KGlobalSettings::highlightColor() ); addItem( itemHighlightedBaseColorComicBook, TQString::tqfromLatin1( "highlightedBaseColorComicBook" ) ); KConfigSkeleton::ItemColor *itemHighlightedTextColorComicBook; itemHighlightedTextColorComicBook = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Highlighted Text Color" ), mHighlightedTextColorComicBook, KGlobalSettings::highlightedTextColor() ); addItem( itemHighlightedTextColorComicBook, TQString::tqfromLatin1( "highlightedTextColorComicBook" ) ); setCurrentGroup( TQString::tqfromLatin1( "Options - wine" ) ); KConfigSkeleton::ItemString *itemTemplateWine; itemTemplateWine = new KConfigSkeleton::ItemString( currentGroup(), TQString::tqfromLatin1( "Entry Template" ), mTemplateWine, TQString::tqfromLatin1( "Fancy" ) ); addItem( itemTemplateWine, TQString::tqfromLatin1( "templateWine" ) ); KConfigSkeleton::ItemFont *itemFontWine; itemFontWine = new KConfigSkeleton::ItemFont( currentGroup(), TQString::tqfromLatin1( "Template Font" ), mFontWine, KGlobalSettings::generalFont() ); addItem( itemFontWine, TQString::tqfromLatin1( "fontWine" ) ); KConfigSkeleton::ItemColor *itemBaseColorWine; itemBaseColorWine = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Base Color" ), mBaseColorWine, KGlobalSettings::baseColor() ); addItem( itemBaseColorWine, TQString::tqfromLatin1( "baseColorWine" ) ); KConfigSkeleton::ItemColor *itemTextColorWine; itemTextColorWine = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Text Color" ), mTextColorWine, KGlobalSettings::textColor() ); addItem( itemTextColorWine, TQString::tqfromLatin1( "textColorWine" ) ); KConfigSkeleton::ItemColor *itemHighlightedBaseColorWine; itemHighlightedBaseColorWine = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Highlight Color" ), mHighlightedBaseColorWine, KGlobalSettings::highlightColor() ); addItem( itemHighlightedBaseColorWine, TQString::tqfromLatin1( "highlightedBaseColorWine" ) ); KConfigSkeleton::ItemColor *itemHighlightedTextColorWine; itemHighlightedTextColorWine = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Highlighted Text Color" ), mHighlightedTextColorWine, KGlobalSettings::highlightedTextColor() ); addItem( itemHighlightedTextColorWine, TQString::tqfromLatin1( "highlightedTextColorWine" ) ); setCurrentGroup( TQString::tqfromLatin1( "Options - coin" ) ); KConfigSkeleton::ItemString *itemTemplateCoin; itemTemplateCoin = new KConfigSkeleton::ItemString( currentGroup(), TQString::tqfromLatin1( "Entry Template" ), mTemplateCoin, TQString::tqfromLatin1( "Fancy" ) ); addItem( itemTemplateCoin, TQString::tqfromLatin1( "templateCoin" ) ); KConfigSkeleton::ItemFont *itemFontCoin; itemFontCoin = new KConfigSkeleton::ItemFont( currentGroup(), TQString::tqfromLatin1( "Template Font" ), mFontCoin, KGlobalSettings::generalFont() ); addItem( itemFontCoin, TQString::tqfromLatin1( "fontCoin" ) ); KConfigSkeleton::ItemColor *itemBaseColorCoin; itemBaseColorCoin = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Base Color" ), mBaseColorCoin, KGlobalSettings::baseColor() ); addItem( itemBaseColorCoin, TQString::tqfromLatin1( "baseColorCoin" ) ); KConfigSkeleton::ItemColor *itemTextColorCoin; itemTextColorCoin = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Text Color" ), mTextColorCoin, KGlobalSettings::textColor() ); addItem( itemTextColorCoin, TQString::tqfromLatin1( "textColorCoin" ) ); KConfigSkeleton::ItemColor *itemHighlightedBaseColorCoin; itemHighlightedBaseColorCoin = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Highlight Color" ), mHighlightedBaseColorCoin, KGlobalSettings::highlightColor() ); addItem( itemHighlightedBaseColorCoin, TQString::tqfromLatin1( "highlightedBaseColorCoin" ) ); KConfigSkeleton::ItemColor *itemHighlightedTextColorCoin; itemHighlightedTextColorCoin = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Highlighted Text Color" ), mHighlightedTextColorCoin, KGlobalSettings::highlightedTextColor() ); addItem( itemHighlightedTextColorCoin, TQString::tqfromLatin1( "highlightedTextColorCoin" ) ); setCurrentGroup( TQString::tqfromLatin1( "Options - stamp" ) ); KConfigSkeleton::ItemString *itemTemplateStamp; itemTemplateStamp = new KConfigSkeleton::ItemString( currentGroup(), TQString::tqfromLatin1( "Entry Template" ), mTemplateStamp, TQString::tqfromLatin1( "Fancy" ) ); addItem( itemTemplateStamp, TQString::tqfromLatin1( "templateStamp" ) ); KConfigSkeleton::ItemFont *itemFontStamp; itemFontStamp = new KConfigSkeleton::ItemFont( currentGroup(), TQString::tqfromLatin1( "Template Font" ), mFontStamp, KGlobalSettings::generalFont() ); addItem( itemFontStamp, TQString::tqfromLatin1( "fontStamp" ) ); KConfigSkeleton::ItemColor *itemBaseColorStamp; itemBaseColorStamp = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Base Color" ), mBaseColorStamp, KGlobalSettings::baseColor() ); addItem( itemBaseColorStamp, TQString::tqfromLatin1( "baseColorStamp" ) ); KConfigSkeleton::ItemColor *itemTextColorStamp; itemTextColorStamp = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Text Color" ), mTextColorStamp, KGlobalSettings::textColor() ); addItem( itemTextColorStamp, TQString::tqfromLatin1( "textColorStamp" ) ); KConfigSkeleton::ItemColor *itemHighlightedBaseColorStamp; itemHighlightedBaseColorStamp = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Highlight Color" ), mHighlightedBaseColorStamp, KGlobalSettings::highlightColor() ); addItem( itemHighlightedBaseColorStamp, TQString::tqfromLatin1( "highlightedBaseColorStamp" ) ); KConfigSkeleton::ItemColor *itemHighlightedTextColorStamp; itemHighlightedTextColorStamp = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Highlighted Text Color" ), mHighlightedTextColorStamp, KGlobalSettings::highlightedTextColor() ); addItem( itemHighlightedTextColorStamp, TQString::tqfromLatin1( "highlightedTextColorStamp" ) ); setCurrentGroup( TQString::tqfromLatin1( "Options - card" ) ); KConfigSkeleton::ItemString *itemTemplateCard; itemTemplateCard = new KConfigSkeleton::ItemString( currentGroup(), TQString::tqfromLatin1( "Entry Template" ), mTemplateCard, TQString::tqfromLatin1( "Fancy" ) ); addItem( itemTemplateCard, TQString::tqfromLatin1( "templateCard" ) ); KConfigSkeleton::ItemFont *itemFontCard; itemFontCard = new KConfigSkeleton::ItemFont( currentGroup(), TQString::tqfromLatin1( "Template Font" ), mFontCard, KGlobalSettings::generalFont() ); addItem( itemFontCard, TQString::tqfromLatin1( "fontCard" ) ); KConfigSkeleton::ItemColor *itemBaseColorCard; itemBaseColorCard = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Base Color" ), mBaseColorCard, KGlobalSettings::baseColor() ); addItem( itemBaseColorCard, TQString::tqfromLatin1( "baseColorCard" ) ); KConfigSkeleton::ItemColor *itemTextColorCard; itemTextColorCard = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Text Color" ), mTextColorCard, KGlobalSettings::textColor() ); addItem( itemTextColorCard, TQString::tqfromLatin1( "textColorCard" ) ); KConfigSkeleton::ItemColor *itemHighlightedBaseColorCard; itemHighlightedBaseColorCard = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Highlight Color" ), mHighlightedBaseColorCard, KGlobalSettings::highlightColor() ); addItem( itemHighlightedBaseColorCard, TQString::tqfromLatin1( "highlightedBaseColorCard" ) ); KConfigSkeleton::ItemColor *itemHighlightedTextColorCard; itemHighlightedTextColorCard = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Highlighted Text Color" ), mHighlightedTextColorCard, KGlobalSettings::highlightedTextColor() ); addItem( itemHighlightedTextColorCard, TQString::tqfromLatin1( "highlightedTextColorCard" ) ); setCurrentGroup( TQString::tqfromLatin1( "Options - game" ) ); KConfigSkeleton::ItemString *itemTemplateGame; itemTemplateGame = new KConfigSkeleton::ItemString( currentGroup(), TQString::tqfromLatin1( "Entry Template" ), mTemplateGame, TQString::tqfromLatin1( "Fancy" ) ); addItem( itemTemplateGame, TQString::tqfromLatin1( "templateGame" ) ); KConfigSkeleton::ItemFont *itemFontGame; itemFontGame = new KConfigSkeleton::ItemFont( currentGroup(), TQString::tqfromLatin1( "Template Font" ), mFontGame, KGlobalSettings::generalFont() ); addItem( itemFontGame, TQString::tqfromLatin1( "fontGame" ) ); KConfigSkeleton::ItemColor *itemBaseColorGame; itemBaseColorGame = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Base Color" ), mBaseColorGame, KGlobalSettings::baseColor() ); addItem( itemBaseColorGame, TQString::tqfromLatin1( "baseColorGame" ) ); KConfigSkeleton::ItemColor *itemTextColorGame; itemTextColorGame = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Text Color" ), mTextColorGame, KGlobalSettings::textColor() ); addItem( itemTextColorGame, TQString::tqfromLatin1( "textColorGame" ) ); KConfigSkeleton::ItemColor *itemHighlightedBaseColorGame; itemHighlightedBaseColorGame = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Highlight Color" ), mHighlightedBaseColorGame, KGlobalSettings::highlightColor() ); addItem( itemHighlightedBaseColorGame, TQString::tqfromLatin1( "highlightedBaseColorGame" ) ); KConfigSkeleton::ItemColor *itemHighlightedTextColorGame; itemHighlightedTextColorGame = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Highlighted Text Color" ), mHighlightedTextColorGame, KGlobalSettings::highlightedTextColor() ); addItem( itemHighlightedTextColorGame, TQString::tqfromLatin1( "highlightedTextColorGame" ) ); setCurrentGroup( TQString::tqfromLatin1( "Options - file" ) ); KConfigSkeleton::ItemString *itemTemplateFile; itemTemplateFile = new KConfigSkeleton::ItemString( currentGroup(), TQString::tqfromLatin1( "Entry Template" ), mTemplateFile, TQString::tqfromLatin1( "Fancy" ) ); addItem( itemTemplateFile, TQString::tqfromLatin1( "templateFile" ) ); KConfigSkeleton::ItemFont *itemFontFile; itemFontFile = new KConfigSkeleton::ItemFont( currentGroup(), TQString::tqfromLatin1( "Template Font" ), mFontFile, KGlobalSettings::generalFont() ); addItem( itemFontFile, TQString::tqfromLatin1( "fontFile" ) ); KConfigSkeleton::ItemColor *itemBaseColorFile; itemBaseColorFile = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Base Color" ), mBaseColorFile, KGlobalSettings::baseColor() ); addItem( itemBaseColorFile, TQString::tqfromLatin1( "baseColorFile" ) ); KConfigSkeleton::ItemColor *itemTextColorFile; itemTextColorFile = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Text Color" ), mTextColorFile, KGlobalSettings::textColor() ); addItem( itemTextColorFile, TQString::tqfromLatin1( "textColorFile" ) ); KConfigSkeleton::ItemColor *itemHighlightedBaseColorFile; itemHighlightedBaseColorFile = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Highlight Color" ), mHighlightedBaseColorFile, KGlobalSettings::highlightColor() ); addItem( itemHighlightedBaseColorFile, TQString::tqfromLatin1( "highlightedBaseColorFile" ) ); KConfigSkeleton::ItemColor *itemHighlightedTextColorFile; itemHighlightedTextColorFile = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Highlighted Text Color" ), mHighlightedTextColorFile, KGlobalSettings::highlightedTextColor() ); addItem( itemHighlightedTextColorFile, TQString::tqfromLatin1( "highlightedTextColorFile" ) ); setCurrentGroup( TQString::tqfromLatin1( "Options - boardgame" ) ); KConfigSkeleton::ItemString *itemTemplateBoardGame; itemTemplateBoardGame = new KConfigSkeleton::ItemString( currentGroup(), TQString::tqfromLatin1( "Entry Template" ), mTemplateBoardGame, TQString::tqfromLatin1( "Fancy" ) ); addItem( itemTemplateBoardGame, TQString::tqfromLatin1( "templateBoardGame" ) ); KConfigSkeleton::ItemFont *itemFontBoardGame; itemFontBoardGame = new KConfigSkeleton::ItemFont( currentGroup(), TQString::tqfromLatin1( "Template Font" ), mFontBoardGame, KGlobalSettings::generalFont() ); addItem( itemFontBoardGame, TQString::tqfromLatin1( "fontBoardGame" ) ); KConfigSkeleton::ItemColor *itemBaseColorBoardGame; itemBaseColorBoardGame = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Base Color" ), mBaseColorBoardGame, KGlobalSettings::baseColor() ); addItem( itemBaseColorBoardGame, TQString::tqfromLatin1( "baseColorBoardGame" ) ); KConfigSkeleton::ItemColor *itemTextColorBoardGame; itemTextColorBoardGame = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Text Color" ), mTextColorBoardGame, KGlobalSettings::textColor() ); addItem( itemTextColorBoardGame, TQString::tqfromLatin1( "textColorBoardGame" ) ); KConfigSkeleton::ItemColor *itemHighlightedBaseColorBoardGame; itemHighlightedBaseColorBoardGame = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Highlight Color" ), mHighlightedBaseColorBoardGame, KGlobalSettings::highlightColor() ); addItem( itemHighlightedBaseColorBoardGame, TQString::tqfromLatin1( "highlightedBaseColorBoardGame" ) ); KConfigSkeleton::ItemColor *itemHighlightedTextColorBoardGame; itemHighlightedTextColorBoardGame = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Highlighted Text Color" ), mHighlightedTextColorBoardGame, KGlobalSettings::highlightedTextColor() ); addItem( itemHighlightedTextColorBoardGame, TQString::tqfromLatin1( "highlightedTextColorBoardGame" ) ); setCurrentGroup( TQString::tqfromLatin1( "Options - entry" ) ); KConfigSkeleton::ItemString *itemTemplateBase; itemTemplateBase = new KConfigSkeleton::ItemString( currentGroup(), TQString::tqfromLatin1( "Entry Template" ), mTemplateBase, TQString::tqfromLatin1( "Fancy" ) ); addItem( itemTemplateBase, TQString::tqfromLatin1( "templateBase" ) ); KConfigSkeleton::ItemFont *itemFontBase; itemFontBase = new KConfigSkeleton::ItemFont( currentGroup(), TQString::tqfromLatin1( "Template Font" ), mFontBase, KGlobalSettings::generalFont() ); addItem( itemFontBase, TQString::tqfromLatin1( "fontBase" ) ); KConfigSkeleton::ItemColor *itemBaseColorBase; itemBaseColorBase = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Base Color" ), mBaseColorBase, KGlobalSettings::baseColor() ); addItem( itemBaseColorBase, TQString::tqfromLatin1( "baseColorBase" ) ); KConfigSkeleton::ItemColor *itemTextColorBase; itemTextColorBase = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Text Color" ), mTextColorBase, KGlobalSettings::textColor() ); addItem( itemTextColorBase, TQString::tqfromLatin1( "textColorBase" ) ); KConfigSkeleton::ItemColor *itemHighlightedBaseColorBase; itemHighlightedBaseColorBase = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Highlight Color" ), mHighlightedBaseColorBase, KGlobalSettings::highlightColor() ); addItem( itemHighlightedBaseColorBase, TQString::tqfromLatin1( "highlightedBaseColorBase" ) ); KConfigSkeleton::ItemColor *itemHighlightedTextColorBase; itemHighlightedTextColorBase = new KConfigSkeleton::ItemColor( currentGroup(), TQString::tqfromLatin1( "Template Highlighted Text Color" ), mHighlightedTextColorBase, KGlobalSettings::highlightedTextColor() ); addItem( itemHighlightedTextColorBase, TQString::tqfromLatin1( "highlightedTextColorBase" ) ); } Config::~Config() { if ( mSelf == this ) staticConfigDeleter.setObject( mSelf, 0, false ); }