• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

knode

  • sources
  • kde-4.12
  • kdepim
  • knode
settings_base.cpp
Go to the documentation of this file.
1 // This file is generated by kconfig_compiler from knode.kcfg.
2 // All changes you do to this file will be lost.
3 
4 #include "settings_base.h"
5 
6 #include <klocale.h>
7 
8 using namespace KNode;
9 
10 SettingsBase::SettingsBase( )
11  : KConfigSkeleton( QLatin1String( "knoderc" ) )
12 {
13  setCurrentGroup( QLatin1String( "IDENTITY" ) );
14 
15  mIdentityItem = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "identity" ), mIdentity, -1 );
16  mIdentityItem->setLabel( i18n("identity") );
17  addItem( mIdentityItem, QLatin1String( "identity" ) );
18 
19  setCurrentGroup( QLatin1String( "READNEWS" ) );
20 
21  mAutoCheckGroupsItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "autoCheck" ), mAutoCheckGroups, true );
22  mAutoCheckGroupsItem->setLabel( i18n("Check for new articles automatically") );
23  addItem( mAutoCheckGroupsItem, QLatin1String( "autoCheckGroups" ) );
24  mMaxToFetchItem = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "maxFetch" ), mMaxToFetch, 1000 );
25  mMaxToFetchItem->setLabel( i18n("Maximum number of articles to fetch") );
26  addItem( mMaxToFetchItem, QLatin1String( "maxToFetch" ) );
27  mAutoMarkItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "autoMark" ), mAutoMark, true );
28  mAutoMarkItem->setLabel( i18n("Automatically mark articles as read") );
29  addItem( mAutoMarkItem, QLatin1String( "autoMark" ) );
30  mAutoMarkSecondsItem = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "markSecs" ), mAutoMarkSeconds, 0 );
31  mAutoMarkSecondsItem->setLabel( i18n("Mark article as read after") );
32  addItem( mAutoMarkSecondsItem, QLatin1String( "autoMarkSeconds" ) );
33  mMarkCrosspostsItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "markCrossposts" ), mMarkCrossposts, true );
34  mMarkCrosspostsItem->setLabel( i18n("Mark crossposted articles as read") );
35  addItem( mMarkCrosspostsItem, QLatin1String( "markCrossposts" ) );
36  mSmartScrollingItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "smartScrolling" ), mSmartScrolling, true );
37  mSmartScrollingItem->setLabel( i18n("Smart scrolling") );
38  addItem( mSmartScrollingItem, QLatin1String( "smartScrolling" ) );
39  mTotalExpandThreadsItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "totalExpand" ), mTotalExpandThreads, true );
40  mTotalExpandThreadsItem->setLabel( i18n("Show whole thread on expanding") );
41  addItem( mTotalExpandThreadsItem, QLatin1String( "totalExpandThreads" ) );
42  mDefaultToExpandedThreadsItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "defaultExpand" ), mDefaultToExpandedThreads, false );
43  mDefaultToExpandedThreadsItem->setLabel( i18n("Default to expanded threads") );
44  addItem( mDefaultToExpandedThreadsItem, QLatin1String( "defaultToExpandedThreads" ) );
45  mShowLinesItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "showLines3" ), mShowLines, true );
46  mShowLinesItem->setLabel( i18n("Show line count column") );
47  addItem( mShowLinesItem, QLatin1String( "showLines" ) );
48  mShowScoreItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "showScore3" ), mShowScore, true );
49  mShowScoreItem->setLabel( i18n("Show score column") );
50  addItem( mShowScoreItem, QLatin1String( "showScore" ) );
51  mShowUnreadItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "showUnread" ), mShowUnread, true );
52  mShowUnreadItem->setLabel( i18n("Show unread count in thread") );
53  addItem( mShowUnreadItem, QLatin1String( "showUnread" ) );
54  mShowThreadsItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "showThreads" ), mShowThreads, true );
55  mShowThreadsItem->setLabel( i18n("Show Threads") );
56  addItem( mShowThreadsItem, QLatin1String( "showThreads" ) );
57  QList<KConfigSkeleton::ItemEnum::Choice2> valuesdateFormat;
58  {
59  KConfigSkeleton::ItemEnum::Choice2 choice;
60  choice.name = QLatin1String("CTime");
61  choice.label = i18n("Standard format");
62  valuesdateFormat.append( choice );
63  }
64  {
65  KConfigSkeleton::ItemEnum::Choice2 choice;
66  choice.name = QLatin1String("Localized");
67  choice.label = i18n("Localized format");
68  valuesdateFormat.append( choice );
69  }
70  {
71  KConfigSkeleton::ItemEnum::Choice2 choice;
72  choice.name = QLatin1String("Fancy");
73  choice.label = i18n("Fancy format");
74  valuesdateFormat.append( choice );
75  }
76  {
77  KConfigSkeleton::ItemEnum::Choice2 choice;
78  choice.name = QLatin1String("Iso");
79  choice.label = i18n("ISO format");
80  valuesdateFormat.append( choice );
81  }
82  {
83  KConfigSkeleton::ItemEnum::Choice2 choice;
84  choice.name = QLatin1String("Custom");
85  choice.label = i18n("Custom format");
86  valuesdateFormat.append( choice );
87  }
88  mDateFormatItem = new KConfigSkeleton::ItemEnum( currentGroup(), QLatin1String( "dateFormat" ), mDateFormat, valuesdateFormat, KMime::DateFormatter::Localized );
89  mDateFormatItem->setLabel( i18n("Date format") );
90  addItem( mDateFormatItem, QLatin1String( "dateFormat" ) );
91  mCustomDateFormatItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "customDateFormat" ), mCustomDateFormat );
92  mCustomDateFormatItem->setLabel( i18n("Custom date format") );
93  mCustomDateFormatItem->setWhatsThis( i18n("\n"
94 "<qt><p><strong>These expressions may be used for the date:</strong></p>\n"
95 "<ul>\n"
96 "<li>d - the day as a number without a leading zero (1-31)</li>\n"
97 "<li>dd - the day as a number with a leading zero (01-31)</li>\n"
98 "<li>ddd - the abbreviated day name (Mon - Sun)</li>\n"
99 "<li>dddd - the long day name (Monday - Sunday)</li>\n"
100 "<li>M - the month as a number without a leading zero (1-12)</li>\n"
101 "<li>MM - the month as a number with a leading zero (01-12)</li>\n"
102 "<li>MMM - the abbreviated month name (Jan - Dec)</li>\n"
103 "<li>MMMM - the long month name (January - December)</li>\n"
104 "<li>yy - the year as a two digit number (00-99)</li>\n"
105 "<li>yyyy - the year as a four digit number (0000-9999)</li>\n"
106 "</ul>\n"
107 "<p><strong>These expressions may be used for the time:</strong></p>\n"
108 "<ul>\n"
109 "<li>h - the hour without a leading zero (0-23 or 1-12 if AM/PM display)</li>\n"
110 "<li>hh - the hour with a leading zero (00-23 or 01-12 if AM/PM display)</li>\n"
111 "<li>m - the minutes without a leading zero (0-59)</li>\n"
112 "<li>mm - the minutes with a leading zero (00-59)</li>\n"
113 "<li>s - the seconds without a leading zero (0-59)</li>\n"
114 "<li>ss - the seconds with a leading zero (00-59)</li>\n"
115 "<li>z - the milliseconds without leading zeroes (0-999)</li>\n"
116 "<li>zzz - the milliseconds with leading zeroes (000-999)</li>\n"
117 "<li>AP - switch to AM/PM display. AP will be replaced by either \"AM\" or \"PM\".</li>\n"
118 "<li>ap - switch to AM/PM display. ap will be replaced by either \"am\" or \"pm\".</li>\n"
119 "<li>Z - time zone in numeric form (-0500)</li>\n"
120 "</ul>\n"
121 "<p><strong>All other input characters will be ignored.</strong></p></qt>\n"
122 " ") );
123  addItem( mCustomDateFormatItem, QLatin1String( "customDateFormat" ) );
124  mRewrapBodyItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "rewrapBody" ), mRewrapBody, true );
125  mRewrapBodyItem->setLabel( i18n("Rewrap text when necessary") );
126  addItem( mRewrapBodyItem, QLatin1String( "rewrapBody" ) );
127  mRemoveTrailingNewlinesItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "removeTrailingNewlines" ), mRemoveTrailingNewlines, true );
128  mRemoveTrailingNewlinesItem->setLabel( i18n("Remove trailing empty lines") );
129  addItem( mRemoveTrailingNewlinesItem, QLatin1String( "removeTrailingNewlines" ) );
130  mShowSignatureItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "showSig" ), mShowSignature, true );
131  mShowSignatureItem->setLabel( i18n("Show signature") );
132  addItem( mShowSignatureItem, QLatin1String( "showSignature" ) );
133  mInterpretFormatTagsItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "interpretFormatTags" ), mInterpretFormatTags, true );
134  mInterpretFormatTagsItem->setLabel( i18n("Interpret emoticons and other formatting") );
135  addItem( mInterpretFormatTagsItem, QLatin1String( "interpretFormatTags" ) );
136  mQuoteCharactersItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "quoteCharacters" ), mQuoteCharacters, QLatin1String( ">:" ) );
137  mQuoteCharactersItem->setLabel( i18n("Recognized quote characters") );
138  addItem( mQuoteCharactersItem, QLatin1String( "quoteCharacters" ) );
139  mOpenAttachmentsOnClickItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "openAtt" ), mOpenAttachmentsOnClick, false );
140  mOpenAttachmentsOnClickItem->setLabel( i18n("Open attachments on click") );
141  addItem( mOpenAttachmentsOnClickItem, QLatin1String( "openAttachmentsOnClick" ) );
142  mShowAlternativeContentsItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "showAlts" ), mShowAlternativeContents, false );
143  mShowAlternativeContentsItem->setLabel( i18n("Show alternative contents as attachments") );
144  addItem( mShowAlternativeContentsItem, QLatin1String( "showAlternativeContents" ) );
145  mUseFixedFontItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "articleBodyFixedFont" ), mUseFixedFont, false );
146  mUseFixedFontItem->setLabel( i18n("Use fixed font") );
147  addItem( mUseFixedFontItem, QLatin1String( "useFixedFont" ) );
148  mShowRefBarItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "showRefBar" ), mShowRefBar, true );
149  mShowRefBarItem->setLabel( i18n("Show reference bar") );
150  addItem( mShowRefBarItem, QLatin1String( "showRefBar" ) );
151  mAlwaysShowHTMLItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "alwaysShowHTML" ), mAlwaysShowHTML, false );
152  mAlwaysShowHTMLItem->setLabel( i18n("Prefer HTML to plain text") );
153  addItem( mAlwaysShowHTMLItem, QLatin1String( "alwaysShowHTML" ) );
154  mAllowExternalReferencesItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "allowExternalReferences" ), mAllowExternalReferences, false );
155  mAllowExternalReferencesItem->setLabel( i18n("Allow external references in HTML") );
156  addItem( mAllowExternalReferencesItem, QLatin1String( "allowExternalReferences" ) );
157 
158  setCurrentGroup( QLatin1String( "READNEWS_NAVIGATION" ) );
159 
160  mMarkAllReadGoNextItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "markAllReadGoNext" ), mMarkAllReadGoNext, false );
161  mMarkAllReadGoNextItem->setLabel( i18n("Mark group as read goes to next group") );
162  addItem( mMarkAllReadGoNextItem, QLatin1String( "markAllReadGoNext" ) );
163  mMarkThreadReadGoNextItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "markThreadReadGoNext" ), mMarkThreadReadGoNext, false );
164  mMarkThreadReadGoNextItem->setLabel( i18n("Mark thread as read goes to next unread thread") );
165  addItem( mMarkThreadReadGoNextItem, QLatin1String( "markThreadReadGoNext" ) );
166  mMarkThreadReadCloseThreadItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "markThreadReadCloseThread" ), mMarkThreadReadCloseThread, false );
167  mMarkThreadReadCloseThreadItem->setLabel( i18n("Mark thread as read closes the current thread") );
168  addItem( mMarkThreadReadCloseThreadItem, QLatin1String( "markThreadReadCloseThread" ) );
169  mIgnoreThreadGoNextItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ignoreThreadGoNext" ), mIgnoreThreadGoNext, false );
170  mIgnoreThreadGoNextItem->setLabel( i18n("Ignore thread goes to the next unread thread") );
171  addItem( mIgnoreThreadGoNextItem, QLatin1String( "ignoreThreadGoNext" ) );
172  mIgnoreThreadCloseThreadItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ignoreThreadCloseThread" ), mIgnoreThreadCloseThread, false );
173  mIgnoreThreadCloseThreadItem->setLabel( i18n("Ignore thread closes the current thread") );
174  addItem( mIgnoreThreadCloseThreadItem, QLatin1String( "ignoreThreadCloseThread" ) );
175  mLeaveGroupMarkAsReadItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "leaveGroupMarkAsRead" ), mLeaveGroupMarkAsRead, false );
176  mLeaveGroupMarkAsReadItem->setLabel( i18n("Leaving a group marks all articles as read") );
177  addItem( mLeaveGroupMarkAsReadItem, QLatin1String( "leaveGroupMarkAsRead" ) );
178 
179  setCurrentGroup( QLatin1String( "SCORING" ) );
180 
181  mIgnoredThresholdItem = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "ignoredThreshold" ), mIgnoredThreshold, -100 );
182  mIgnoredThresholdItem->setLabel( i18n("Default score for ignored threads") );
183  addItem( mIgnoredThresholdItem, QLatin1String( "ignoredThreshold" ) );
184  mWatchedThresholdItem = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "watchedThreshold" ), mWatchedThreshold, 100 );
185  mWatchedThresholdItem->setLabel( i18n("Default score for watched threads") );
186  addItem( mWatchedThresholdItem, QLatin1String( "watchedThreshold" ) );
187 
188  setCurrentGroup( QLatin1String( "CACHE" ) );
189 
190  mCollCacheSizeItem = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "collMemSize" ), mCollCacheSize, 2048 );
191  mCollCacheSizeItem->setLabel( i18n("Cache size for headers") );
192  addItem( mCollCacheSizeItem, QLatin1String( "collCacheSize" ) );
193  mArtCacheSizeItem = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "artMemSize" ), mArtCacheSize, 1024 );
194  mArtCacheSizeItem->setLabel( i18n("Cache size for articles") );
195  addItem( mArtCacheSizeItem, QLatin1String( "artCacheSize" ) );
196 
197  setCurrentGroup( QLatin1String( "POSTNEWS" ) );
198 
199  mUseOwnCharsetItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "UseOwnCharset" ), mUseOwnCharset, true );
200  mUseOwnCharsetItem->setLabel( i18n("Use own default charset when replying") );
201  addItem( mUseOwnCharsetItem, QLatin1String( "UseOwnCharset" ) );
202  mHostnameItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "MIdhost" ), mHostname );
203  mHostnameItem->setLabel( i18n("Host name used to generate the message ID.") );
204  addItem( mHostnameItem, QLatin1String( "hostname" ) );
205  mGenerateMessageIDItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "generateMId" ), mGenerateMessageID, false );
206  mGenerateMessageIDItem->setLabel( i18n("Generate message-id") );
207  addItem( mGenerateMessageIDItem, QLatin1String( "generateMessageID" ) );
208  mNoUserAgentItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "dontIncludeUA" ), mNoUserAgent, false );
209  mNoUserAgentItem->setLabel( i18n("Do not add the \"User-Agent\" identification header") );
210  addItem( mNoUserAgentItem, QLatin1String( "noUserAgent" ) );
211  mUseExternalMailerItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "useExternalMailer" ), mUseExternalMailer, false );
212  mUseExternalMailerItem->setLabel( i18n("Use external mailer") );
213  addItem( mUseExternalMailerItem, QLatin1String( "useExternalMailer" ) );
214  mAllow8BitBodyItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "8BitEncoding" ), mAllow8BitBody, true );
215  mAllow8BitBodyItem->setLabel( i18n("Allow 8-bit encoding") );
216  addItem( mAllow8BitBodyItem, QLatin1String( "allow8BitBody" ) );
217  mCharsetItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "Charset" ), mCharset );
218  mCharsetItem->setLabel( i18n("Charset") );
219  addItem( mCharsetItem, QLatin1String( "Charset" ) );
220  mWordWrapItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "wordWrap" ), mWordWrap, true );
221  mWordWrapItem->setLabel( i18n("Word wrap at column") );
222  addItem( mWordWrapItem, QLatin1String( "wordWrap" ) );
223  mAutoSpellCheckingItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "autoSpellChecking" ), mAutoSpellChecking, true );
224  mAutoSpellCheckingItem->setLabel( i18n("Automatic Spellchecking") );
225  addItem( mAutoSpellCheckingItem, QLatin1String( "autoSpellChecking" ) );
226  mMaxLineLengthItem = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "maxLength" ), mMaxLineLength, 76 );
227  mMaxLineLengthItem->setLabel( i18n("Maximum line length if word wrap is enabled") );
228  addItem( mMaxLineLengthItem, QLatin1String( "maxLineLength" ) );
229  mAppendOwnSignatureItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "appSig" ), mAppendOwnSignature, true );
230  mAppendOwnSignatureItem->setLabel( i18n("Append own signature automatically") );
231  addItem( mAppendOwnSignatureItem, QLatin1String( "appendOwnSignature" ) );
232  mRewrapItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "rewrap" ), mRewrap, true );
233  mRewrapItem->setLabel( i18n("Rewrap quoted text automatically") );
234  addItem( mRewrapItem, QLatin1String( "rewrap" ) );
235  mIncludeSignatureItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "incSig" ), mIncludeSignature, false );
236  mIncludeSignatureItem->setLabel( i18n("Include the original author's signature in replies") );
237  addItem( mIncludeSignatureItem, QLatin1String( "includeSignature" ) );
238  mCursorOnTopItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "cursorOnTop" ), mCursorOnTop, false );
239  mCursorOnTopItem->setLabel( i18n("Put the cursor below the introduction phrase") );
240  addItem( mCursorOnTopItem, QLatin1String( "cursorOnTop" ) );
241  mUseExternalEditorItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "useExternalEditor" ), mUseExternalEditor, false );
242  mUseExternalEditorItem->setLabel( i18n("Start external editor automatically") );
243  addItem( mUseExternalEditorItem, QLatin1String( "useExternalEditor" ) );
244  mIntroItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "Intro" ), mIntro, QLatin1String( "%NAME wrote:" ) );
245  mIntroItem->setLabel( i18n("Introduction phrase") );
246  addItem( mIntroItem, QLatin1String( "Intro" ) );
247  mExternalEditorItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "externalEditor" ), mExternalEditor, QLatin1String( "kwrite %f" ) );
248  mExternalEditorItem->setLabel( i18n("Path to external editor") );
249  addItem( mExternalEditorItem, QLatin1String( "externalEditor" ) );
250 
251  setCurrentGroup( QLatin1String( "VISUAL_APPEARANCE" ) );
252 
253  mUseCustomColorsItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "customColors" ), mUseCustomColors, false );
254  mUseCustomColorsItem->setLabel( i18n("Use custom colors") );
255  addItem( mUseCustomColorsItem, QLatin1String( "useCustomColors" ) );
256  mBackgroundColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "backgroundColor" ), mBackgroundColor, KColorScheme(QPalette::Active, KColorScheme::View).background().color() );
257  mBackgroundColorItem->setLabel( i18n("Background") );
258  addItem( mBackgroundColorItem, QLatin1String( "backgroundColor" ) );
259  mAlternateBackgroundColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "alternateBackgroundColor" ), mAlternateBackgroundColor, KColorScheme(QPalette::Active, KColorScheme::View).background(KColorScheme::AlternateBackground).color() );
260  mAlternateBackgroundColorItem->setLabel( i18n("Alternate Background") );
261  addItem( mAlternateBackgroundColorItem, QLatin1String( "alternateBackgroundColor" ) );
262  mTextColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "textColor" ), mTextColor, KColorScheme(QPalette::Active, KColorScheme::View).foreground().color() );
263  mTextColorItem->setLabel( i18n("Normal Text") );
264  addItem( mTextColorItem, QLatin1String( "textColor" ) );
265  mQuoteColorItem[0] = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "quote0Color" ), mQuoteColor[0], QColor( "#008000" ) );
266  mQuoteColorItem[0]->setLabel( i18n("quotequote$(ColorIndex)ColorColor") );
267  addItem( mQuoteColorItem[0], QLatin1String( "quote0Color" ) );
268  mQuoteColorItem[1] = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "quote1Color" ), mQuoteColor[1], QColor( "#007000" ) );
269  mQuoteColorItem[1]->setLabel( i18n("quotequote$(ColorIndex)ColorColor") );
270  addItem( mQuoteColorItem[1], QLatin1String( "quote1Color" ) );
271  mQuoteColorItem[2] = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "quote2Color" ), mQuoteColor[2], QColor( "#006000" ) );
272  mQuoteColorItem[2]->setLabel( i18n("quotequote$(ColorIndex)ColorColor") );
273  addItem( mQuoteColorItem[2], QLatin1String( "quote2Color" ) );
274  mLinkColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "URLColor" ), mLinkColor, KColorScheme(QPalette::Active, KColorScheme::View).foreground(KColorScheme::LinkText).color() );
275  mLinkColorItem->setLabel( i18n("Link") );
276  addItem( mLinkColorItem, QLatin1String( "linkColor" ) );
277  mReadThreadColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "readThreadColor" ), mReadThreadColor, KColorScheme( QPalette::Disabled, KColorScheme::View ).foreground( KColorScheme::InactiveText ).color() );
278  mReadThreadColorItem->setLabel( i18n("Read Thread") );
279  addItem( mReadThreadColorItem, QLatin1String( "readThreadColor" ) );
280  mUnreadThreadColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "unreadThreadColor" ), mUnreadThreadColor, KColorScheme(QPalette::Active, KColorScheme::View).foreground().color() );
281  mUnreadThreadColorItem->setLabel( i18n("Unread Thread") );
282  addItem( mUnreadThreadColorItem, QLatin1String( "unreadThreadColor" ) );
283  mReadArticleColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "readArtColor" ), mReadArticleColor, QColor( "#888888" ) );
284  mReadArticleColorItem->setLabel( i18n("Read Article") );
285  addItem( mReadArticleColorItem, QLatin1String( "readArticleColor" ) );
286  mUnreadArticleColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "unreadArtColor" ), mUnreadArticleColor, QColor( "#b7a90b" ) );
287  mUnreadArticleColorItem->setLabel( i18n("Unread Article") );
288  addItem( mUnreadArticleColorItem, QLatin1String( "unreadArticleColor" ) );
289  mSignOkKeyOkColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "signOkKeyOk" ), mSignOkKeyOkColor, QColor( "#40ff00" ) );
290  mSignOkKeyOkColorItem->setLabel( i18n("Valid Signature with Trusted Key") );
291  addItem( mSignOkKeyOkColorItem, QLatin1String( "signOkKeyOkColor" ) );
292  mSignOkKeyBadColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "signOkKeyBad" ), mSignOkKeyBadColor, QColor( "#ffff40" ) );
293  mSignOkKeyBadColorItem->setLabel( i18n("Valid Signature with Untrusted Key") );
294  addItem( mSignOkKeyBadColorItem, QLatin1String( "signOkKeyBadColor" ) );
295  mSignWarnColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "signWarn" ), mSignWarnColor, QColor( "#ffff40" ) );
296  mSignWarnColorItem->setLabel( i18n("Unchecked Signature") );
297  addItem( mSignWarnColorItem, QLatin1String( "signWarnColor" ) );
298  mSignErrColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "signErr" ), mSignErrColor, QColor( "#ff0000" ) );
299  mSignErrColorItem->setLabel( i18n("Bad Signature") );
300  addItem( mSignErrColorItem, QLatin1String( "signErrColor" ) );
301  mHtmlWarningColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "htmlWarning" ), mHtmlWarningColor, QColor( "#ff4040" ) );
302  mHtmlWarningColorItem->setLabel( i18n("HTML Message Warning") );
303  addItem( mHtmlWarningColorItem, QLatin1String( "htmlWarningColor" ) );
304  mUseCustomFontsItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "customFonts" ), mUseCustomFonts, false );
305  mUseCustomFontsItem->setLabel( i18n("Use custom fonts") );
306  addItem( mUseCustomFontsItem, QLatin1String( "useCustomFonts" ) );
307  mArticleFontItem = new KConfigSkeleton::ItemFont( currentGroup(), QLatin1String( "articleFont" ), mArticleFont );
308  mArticleFontItem->setLabel( i18n("Article Body") );
309  addItem( mArticleFontItem, QLatin1String( "articleFont" ) );
310  mArticleFixedFontItem = new KConfigSkeleton::ItemFont( currentGroup(), QLatin1String( "articleFixedFont" ), mArticleFixedFont, KGlobalSettings::fixedFont() );
311  mArticleFixedFontItem->setLabel( i18n("Article Body (Fixed)") );
312  addItem( mArticleFixedFontItem, QLatin1String( "articleFixedFont" ) );
313  mComposerFontItem = new KConfigSkeleton::ItemFont( currentGroup(), QLatin1String( "composerFont" ), mComposerFont, KGlobalSettings::fixedFont() );
314  mComposerFontItem->setLabel( i18n("Composer") );
315  addItem( mComposerFontItem, QLatin1String( "composerFont" ) );
316  mGroupListFontItem = new KConfigSkeleton::ItemFont( currentGroup(), QLatin1String( "groupListFont" ), mGroupListFont );
317  mGroupListFontItem->setLabel( i18n("Group List") );
318  addItem( mGroupListFontItem, QLatin1String( "groupListFont" ) );
319  mArticleListFontItem = new KConfigSkeleton::ItemFont( currentGroup(), QLatin1String( "articleListFont" ), mArticleListFont );
320  mArticleListFontItem->setLabel( i18n("Article List") );
321  addItem( mArticleListFontItem, QLatin1String( "articleListFont" ) );
322 }
323 
324 SettingsBase::~SettingsBase()
325 {
326 }
327 
settings_base.h
KNode::SettingsBase::mOpenAttachmentsOnClick
bool mOpenAttachmentsOnClick
Definition: settings_base.h:1900
KNode::SettingsBase::mReadThreadColor
QColor mReadThreadColor
Definition: settings_base.h:1949
KNode::SettingsBase::mLinkColor
QColor mLinkColor
Definition: settings_base.h:1948
KNode::SettingsBase::mMaxToFetch
int mMaxToFetch
Definition: settings_base.h:1882
KNode::SettingsBase::mShowUnread
bool mShowUnread
Definition: settings_base.h:1891
KNode::SettingsBase::mMarkThreadReadGoNext
bool mMarkThreadReadGoNext
Definition: settings_base.h:1909
KNode::SettingsBase::mQuoteCharacters
QString mQuoteCharacters
Definition: settings_base.h:1899
KNode::SettingsBase::mAutoMark
bool mAutoMark
Definition: settings_base.h:1883
KNode::SettingsBase::mCursorOnTop
bool mCursorOnTop
Definition: settings_base.h:1937
KNode::SettingsBase::mInterpretFormatTags
bool mInterpretFormatTags
Definition: settings_base.h:1898
KNode::SettingsBase::mShowSignature
bool mShowSignature
Definition: settings_base.h:1897
KNode::SettingsBase::mQuoteColor
QColor mQuoteColor[3]
Definition: settings_base.h:1947
KNode::SettingsBase::mUnreadArticleColor
QColor mUnreadArticleColor
Definition: settings_base.h:1952
KNode::SettingsBase::mBackgroundColor
QColor mBackgroundColor
Definition: settings_base.h:1944
KNode::SettingsBase::mIncludeSignature
bool mIncludeSignature
Definition: settings_base.h:1936
KNode::SettingsBase::mSignOkKeyOkColor
QColor mSignOkKeyOkColor
Definition: settings_base.h:1953
KNode::SettingsBase::mHostname
QString mHostname
Definition: settings_base.h:1925
KNode::SettingsBase::mShowAlternativeContents
bool mShowAlternativeContents
Definition: settings_base.h:1901
KNode::SettingsBase::mSmartScrolling
bool mSmartScrolling
Definition: settings_base.h:1886
KConfigSkeleton
KNode::SettingsBase::mUseCustomColors
bool mUseCustomColors
Definition: settings_base.h:1943
KNode::SettingsBase::mWatchedThreshold
int mWatchedThreshold
Definition: settings_base.h:1917
KNode::SettingsBase::mTextColor
QColor mTextColor
Definition: settings_base.h:1946
KNode::SettingsBase::mUseCustomFonts
bool mUseCustomFonts
Definition: settings_base.h:1958
KNode::SettingsBase::mShowScore
bool mShowScore
Definition: settings_base.h:1890
KNode::SettingsBase::mMarkCrossposts
bool mMarkCrossposts
Definition: settings_base.h:1885
KNode::SettingsBase::mDefaultToExpandedThreads
bool mDefaultToExpandedThreads
Definition: settings_base.h:1888
KNode::SettingsBase::mReadArticleColor
QColor mReadArticleColor
Definition: settings_base.h:1951
KNode::SettingsBase::mMarkAllReadGoNext
bool mMarkAllReadGoNext
Definition: settings_base.h:1908
KNode::SettingsBase::mAutoCheckGroups
bool mAutoCheckGroups
Definition: settings_base.h:1881
KNode::SettingsBase::mDateFormat
int mDateFormat
Definition: settings_base.h:1893
KNode::SettingsBase::mShowRefBar
bool mShowRefBar
Definition: settings_base.h:1903
KNode::SettingsBase::mCollCacheSize
int mCollCacheSize
Definition: settings_base.h:1920
KNode::SettingsBase::mSignWarnColor
QColor mSignWarnColor
Definition: settings_base.h:1955
KNode::SettingsBase::mArtCacheSize
int mArtCacheSize
Definition: settings_base.h:1921
KNode::SettingsBase::mAllowExternalReferences
bool mAllowExternalReferences
Definition: settings_base.h:1905
KNode::SettingsBase::mIdentity
int mIdentity
Definition: settings_base.h:1878
KNode::SettingsBase::mMaxLineLength
int mMaxLineLength
Definition: settings_base.h:1933
KNode::SettingsBase::mAlwaysShowHTML
bool mAlwaysShowHTML
Definition: settings_base.h:1904
KNode::SettingsBase::mExternalEditor
QString mExternalEditor
Definition: settings_base.h:1940
KNode::SettingsBase::mMarkThreadReadCloseThread
bool mMarkThreadReadCloseThread
Definition: settings_base.h:1910
KNode::SettingsBase::mUseExternalMailer
bool mUseExternalMailer
Definition: settings_base.h:1928
KNode::SettingsBase::~SettingsBase
~SettingsBase()
Definition: settings_base.cpp:324
KNode::SettingsBase::mSignOkKeyBadColor
QColor mSignOkKeyBadColor
Definition: settings_base.h:1954
KNode::SettingsBase::mRewrap
bool mRewrap
Definition: settings_base.h:1935
KNode::SettingsBase::mShowLines
bool mShowLines
Definition: settings_base.h:1889
KNode::SettingsBase::SettingsBase
SettingsBase()
Definition: settings_base.cpp:10
KNode::SettingsBase::mAutoSpellChecking
bool mAutoSpellChecking
Definition: settings_base.h:1932
KNode::SettingsBase::mGroupListFont
QFont mGroupListFont
Definition: settings_base.h:1962
KNode::SettingsBase::mLeaveGroupMarkAsRead
bool mLeaveGroupMarkAsRead
Definition: settings_base.h:1913
KNode::SettingsBase::mRewrapBody
bool mRewrapBody
Definition: settings_base.h:1895
KNode::SettingsBase::mWordWrap
bool mWordWrap
Definition: settings_base.h:1931
KNode::SettingsBase::mComposerFont
QFont mComposerFont
Definition: settings_base.h:1961
KNode::SettingsBase::mArticleFixedFont
QFont mArticleFixedFont
Definition: settings_base.h:1960
KNode::SettingsBase::mIgnoreThreadCloseThread
bool mIgnoreThreadCloseThread
Definition: settings_base.h:1912
KNode::SettingsBase::mUseOwnCharset
bool mUseOwnCharset
Definition: settings_base.h:1924
KNode::SettingsBase::mSignErrColor
QColor mSignErrColor
Definition: settings_base.h:1956
KNode::SettingsBase::mAppendOwnSignature
bool mAppendOwnSignature
Definition: settings_base.h:1934
KNode::SettingsBase::mShowThreads
bool mShowThreads
Definition: settings_base.h:1892
KNode::SettingsBase::mAllow8BitBody
bool mAllow8BitBody
Definition: settings_base.h:1929
KNode::SettingsBase::mAutoMarkSeconds
int mAutoMarkSeconds
Definition: settings_base.h:1884
KNode::SettingsBase::mRemoveTrailingNewlines
bool mRemoveTrailingNewlines
Definition: settings_base.h:1896
KNode::SettingsBase::mTotalExpandThreads
bool mTotalExpandThreads
Definition: settings_base.h:1887
KNode::SettingsBase::mArticleListFont
QFont mArticleListFont
Definition: settings_base.h:1963
KNode::SettingsBase::mArticleFont
QFont mArticleFont
Definition: settings_base.h:1959
KNode::SettingsBase::mGenerateMessageID
bool mGenerateMessageID
Definition: settings_base.h:1926
KNode::SettingsBase::mIgnoreThreadGoNext
bool mIgnoreThreadGoNext
Definition: settings_base.h:1911
KNode::SettingsBase::mHtmlWarningColor
QColor mHtmlWarningColor
Definition: settings_base.h:1957
KNode::SettingsBase::mIntro
QString mIntro
Definition: settings_base.h:1939
KNode::SettingsBase::mNoUserAgent
bool mNoUserAgent
Definition: settings_base.h:1927
KNode::SettingsBase::mUnreadThreadColor
QColor mUnreadThreadColor
Definition: settings_base.h:1950
KNode::SettingsBase::mUseFixedFont
bool mUseFixedFont
Definition: settings_base.h:1902
KNode::SettingsBase::mAlternateBackgroundColor
QColor mAlternateBackgroundColor
Definition: settings_base.h:1945
KNode::SettingsBase::mUseExternalEditor
bool mUseExternalEditor
Definition: settings_base.h:1938
KNode::SettingsBase::mCustomDateFormat
QString mCustomDateFormat
Definition: settings_base.h:1894
KNode::SettingsBase::mCharset
QString mCharset
Definition: settings_base.h:1930
QList
KNode::SettingsBase::mIgnoredThreshold
int mIgnoredThreshold
Definition: settings_base.h:1916
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

knode

Skip menu "knode"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal