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

lokalize

  • sources
  • kde-4.12
  • kdesdk
  • lokalize
  • src
  • prefs
prefs_lokalize.h
Go to the documentation of this file.
1 // This file is generated by kconfig_compiler from lokalize.kcfg.
2 // All changes you do to this file will be lost.
3 #ifndef SETTINGS_H
4 #define SETTINGS_H
5 
6 #include <kconfigskeleton.h>
7 #include <kdebug.h>
8 
9 #include <kglobalsettings.h>
10 #include <klocale.h>
11 #include <kemailsettings.h>
12 #include <kde-i18n-lists.h>
13 class Settings : public KConfigSkeleton
14 {
15  public:
16 
17  static Settings *self();
18  ~Settings();
19 
20 
24  static
25  QString authorName()
26  {
27  return self()->mAuthorName;
28  }
29 
33  ItemString *authorNameItem()
34  {
35  return mAuthorNameItem;
36  }
37 
38 
42  static
43  QString authorLocalizedName()
44  {
45  return self()->mAuthorLocalizedName;
46  }
47 
51  ItemString *authorLocalizedNameItem()
52  {
53  return mAuthorLocalizedNameItem;
54  }
55 
56 
60  static
61  QString authorEmail()
62  {
63  return self()->mAuthorEmail;
64  }
65 
69  ItemString *authorEmailItem()
70  {
71  return mAuthorEmailItem;
72  }
73 
74 
78  static
79  QString defaultLangCode()
80  {
81  return self()->mDefaultLangCode;
82  }
83 
87  ItemString *defaultLangCodeItem()
88  {
89  return mDefaultLangCodeItem;
90  }
91 
92 
96  static
97  QString defaultMailingList()
98  {
99  return self()->mDefaultMailingList;
100  }
101 
105  ItemString *defaultMailingListItem()
106  {
107  return mDefaultMailingListItem;
108  }
109 
110 
114  static
115  QColor addColor()
116  {
117  return self()->mAddColor;
118  }
119 
123  ItemColor *addColorItem()
124  {
125  return mAddColorItem;
126  }
127 
128 
132  static
133  QColor delColor()
134  {
135  return self()->mDelColor;
136  }
137 
141  ItemColor *delColorItem()
142  {
143  return mDelColorItem;
144  }
145 
146 
150  static
151  bool highlightSpaces()
152  {
153  return self()->mHighlightSpaces;
154  }
155 
159  ItemBool *highlightSpacesItem()
160  {
161  return mHighlightSpacesItem;
162  }
163 
164 
168  static
169  QFont msgFont()
170  {
171  return self()->mMsgFont;
172  }
173 
177  ItemFont *msgFontItem()
178  {
179  return mMsgFontItem;
180  }
181 
185  static
186  void setLeds( bool v )
187  {
188  if (!self()->isImmutable( QString::fromLatin1( "Leds" ) ))
189  self()->mLeds = v;
190  }
191 
195  static
196  bool leds()
197  {
198  return self()->mLeds;
199  }
200 
204  ItemBool *ledsItem()
205  {
206  return mLedsItem;
207  }
208 
209 
213  static
214  bool autoApprove()
215  {
216  return self()->mAutoApprove;
217  }
218 
222  ItemBool *autoApproveItem()
223  {
224  return mAutoApproveItem;
225  }
226 
230  static
231  void setAutoSpellcheck( bool v )
232  {
233  if (!self()->isImmutable( QString::fromLatin1( "AutoSpellcheck" ) ))
234  self()->mAutoSpellcheck = v;
235  }
236 
240  static
241  bool autoSpellcheck()
242  {
243  return self()->mAutoSpellcheck;
244  }
245 
249  ItemBool *autoSpellcheckItem()
250  {
251  return mAutoSpellcheckItem;
252  }
253 
254 
258  static
259  bool mouseWheelGo()
260  {
261  return self()->mMouseWheelGo;
262  }
263 
267  ItemBool *mouseWheelGoItem()
268  {
269  return mMouseWheelGoItem;
270  }
271 
272 
276  static
277  int wordCompletionLength()
278  {
279  return self()->mWordCompletionLength;
280  }
281 
285  ItemInt *wordCompletionLengthItem()
286  {
287  return mWordCompletionLengthItem;
288  }
289 
290 
294  static
295  bool prefetchTM()
296  {
297  return self()->mPrefetchTM;
298  }
299 
303  ItemBool *prefetchTMItem()
304  {
305  return mPrefetchTMItem;
306  }
307 
308 
312  static
313  int suggCount()
314  {
315  return self()->mSuggCount;
316  }
317 
321  ItemInt *suggCountItem()
322  {
323  return mSuggCountItem;
324  }
325 
326 
330  static
331  bool autoaddTM()
332  {
333  return self()->mAutoaddTM;
334  }
335 
339  ItemBool *autoaddTMItem()
340  {
341  return mAutoaddTMItem;
342  }
343 
344 
348  static
349  bool scanToTMOnOpen()
350  {
351  return self()->mScanToTMOnOpen;
352  }
353 
357  ItemBool *scanToTMOnOpenItem()
358  {
359  return mScanToTMOnOpenItem;
360  }
361 
362  protected:
363  Settings();
364  friend class SettingsHelper;
365 
366 
367  // Identity
368  QString mAuthorName;
369  QString mAuthorLocalizedName;
370  QString mAuthorEmail;
371  QString mDefaultLangCode;
372  QString mDefaultMailingList;
373 
374  // Appearance
375  QColor mAddColor;
376  QColor mDelColor;
377  bool mHighlightSpaces;
378  QFont mMsgFont;
379  bool mLeds;
380 
381  // Editor
382  bool mAutoApprove;
383  bool mAutoSpellcheck;
384  bool mMouseWheelGo;
385  int mWordCompletionLength;
386 
387  // TM
388  bool mPrefetchTM;
389  int mSuggCount;
390  bool mAutoaddTM;
391  bool mScanToTMOnOpen;
392 
393  private:
394  ItemString *mAuthorNameItem;
395  ItemString *mAuthorLocalizedNameItem;
396  ItemString *mAuthorEmailItem;
397  ItemString *mDefaultLangCodeItem;
398  ItemString *mDefaultMailingListItem;
399  ItemColor *mAddColorItem;
400  ItemColor *mDelColorItem;
401  ItemBool *mHighlightSpacesItem;
402  ItemFont *mMsgFontItem;
403  ItemBool *mLedsItem;
404  ItemBool *mAutoApproveItem;
405  ItemBool *mAutoSpellcheckItem;
406  ItemBool *mMouseWheelGoItem;
407  ItemInt *mWordCompletionLengthItem;
408  ItemBool *mPrefetchTMItem;
409  ItemInt *mSuggCountItem;
410  ItemBool *mAutoaddTMItem;
411  ItemBool *mScanToTMOnOpenItem;
412 };
413 
414 #endif
415 
Settings::delColorItem
ItemColor * delColorItem()
Get Item object corresponding to DelColor()
Definition: prefs_lokalize.h:141
Settings::leds
static bool leds()
Get Leds.
Definition: prefs_lokalize.h:196
Settings::authorNameItem
ItemString * authorNameItem()
Get Item object corresponding to authorName()
Definition: prefs_lokalize.h:33
Settings::mMouseWheelGo
bool mMouseWheelGo
Definition: prefs_lokalize.h:384
Settings::ledsItem
ItemBool * ledsItem()
Get Item object corresponding to Leds()
Definition: prefs_lokalize.h:204
Settings::mDefaultLangCode
QString mDefaultLangCode
Definition: prefs_lokalize.h:371
Settings::~Settings
~Settings()
Definition: prefs_lokalize.cpp:101
Settings::authorLocalizedName
static QString authorLocalizedName()
Get authorLocalizedName.
Definition: prefs_lokalize.h:43
Settings::mouseWheelGoItem
ItemBool * mouseWheelGoItem()
Get Item object corresponding to MouseWheelGo()
Definition: prefs_lokalize.h:267
Settings::wordCompletionLengthItem
ItemInt * wordCompletionLengthItem()
Get Item object corresponding to WordCompletionLength()
Definition: prefs_lokalize.h:285
kde-i18n-lists.h
Settings::mouseWheelGo
static bool mouseWheelGo()
Get MouseWheelGo.
Definition: prefs_lokalize.h:259
Settings::autoSpellcheckItem
ItemBool * autoSpellcheckItem()
Get Item object corresponding to AutoSpellcheck()
Definition: prefs_lokalize.h:249
Settings::defaultLangCode
static QString defaultLangCode()
Get DefaultLangCode.
Definition: prefs_lokalize.h:79
Settings::authorEmail
static QString authorEmail()
Get authorEmail.
Definition: prefs_lokalize.h:61
Settings::msgFont
static QFont msgFont()
Get MsgFont.
Definition: prefs_lokalize.h:169
Settings::prefetchTMItem
ItemBool * prefetchTMItem()
Get Item object corresponding to PrefetchTM()
Definition: prefs_lokalize.h:303
KConfigSkeleton
Settings::highlightSpacesItem
ItemBool * highlightSpacesItem()
Get Item object corresponding to HighlightSpaces()
Definition: prefs_lokalize.h:159
Settings::delColor
static QColor delColor()
Get DelColor.
Definition: prefs_lokalize.h:133
Settings::wordCompletionLength
static int wordCompletionLength()
Get WordCompletionLength.
Definition: prefs_lokalize.h:277
Settings::autoaddTM
static bool autoaddTM()
Get AutoaddTM.
Definition: prefs_lokalize.h:331
Settings::mScanToTMOnOpen
bool mScanToTMOnOpen
Definition: prefs_lokalize.h:391
Settings::mAddColor
QColor mAddColor
Definition: prefs_lokalize.h:375
Settings::authorName
static QString authorName()
Get authorName.
Definition: prefs_lokalize.h:25
Settings::defaultLangCodeItem
ItemString * defaultLangCodeItem()
Get Item object corresponding to DefaultLangCode()
Definition: prefs_lokalize.h:87
Settings::mDefaultMailingList
QString mDefaultMailingList
Definition: prefs_lokalize.h:372
Settings::mAuthorLocalizedName
QString mAuthorLocalizedName
Definition: prefs_lokalize.h:369
Settings::authorEmailItem
ItemString * authorEmailItem()
Get Item object corresponding to authorEmail()
Definition: prefs_lokalize.h:69
Settings::defaultMailingList
static QString defaultMailingList()
Get DefaultMailingList.
Definition: prefs_lokalize.h:97
Settings::scanToTMOnOpenItem
ItemBool * scanToTMOnOpenItem()
Get Item object corresponding to ScanToTMOnOpen()
Definition: prefs_lokalize.h:357
Settings::defaultMailingListItem
ItemString * defaultMailingListItem()
Get Item object corresponding to DefaultMailingList()
Definition: prefs_lokalize.h:105
Settings::addColor
static QColor addColor()
Get AddColor.
Definition: prefs_lokalize.h:115
Settings::mAutoaddTM
bool mAutoaddTM
Definition: prefs_lokalize.h:390
Settings::mAutoSpellcheck
bool mAutoSpellcheck
Definition: prefs_lokalize.h:383
Settings::Settings
Settings()
Definition: prefs_lokalize.cpp:29
Settings::setLeds
static void setLeds(bool v)
Set Leds.
Definition: prefs_lokalize.h:186
Settings::autoaddTMItem
ItemBool * autoaddTMItem()
Get Item object corresponding to AutoaddTM()
Definition: prefs_lokalize.h:339
Settings::mWordCompletionLength
int mWordCompletionLength
Definition: prefs_lokalize.h:385
Settings::autoApprove
static bool autoApprove()
Get AutoApprove.
Definition: prefs_lokalize.h:214
Settings::mDelColor
QColor mDelColor
Definition: prefs_lokalize.h:376
Settings::suggCount
static int suggCount()
Get SuggCount.
Definition: prefs_lokalize.h:313
Settings
Definition: prefs_lokalize.h:13
Settings::addColorItem
ItemColor * addColorItem()
Get Item object corresponding to AddColor()
Definition: prefs_lokalize.h:123
Settings::suggCountItem
ItemInt * suggCountItem()
Get Item object corresponding to SuggCount()
Definition: prefs_lokalize.h:321
Settings::authorLocalizedNameItem
ItemString * authorLocalizedNameItem()
Get Item object corresponding to authorLocalizedName()
Definition: prefs_lokalize.h:51
Settings::scanToTMOnOpen
static bool scanToTMOnOpen()
Get ScanToTMOnOpen.
Definition: prefs_lokalize.h:349
Settings::mPrefetchTM
bool mPrefetchTM
Definition: prefs_lokalize.h:388
Settings::highlightSpaces
static bool highlightSpaces()
Get HighlightSpaces.
Definition: prefs_lokalize.h:151
Settings::mAutoApprove
bool mAutoApprove
Definition: prefs_lokalize.h:382
Settings::SettingsHelper
friend class SettingsHelper
Definition: prefs_lokalize.h:364
Settings::mHighlightSpaces
bool mHighlightSpaces
Definition: prefs_lokalize.h:377
Settings::mSuggCount
int mSuggCount
Definition: prefs_lokalize.h:389
Settings::setAutoSpellcheck
static void setAutoSpellcheck(bool v)
Set AutoSpellcheck.
Definition: prefs_lokalize.h:231
Settings::mMsgFont
QFont mMsgFont
Definition: prefs_lokalize.h:378
Settings::mAuthorName
QString mAuthorName
Definition: prefs_lokalize.h:368
Settings::autoApproveItem
ItemBool * autoApproveItem()
Get Item object corresponding to AutoApprove()
Definition: prefs_lokalize.h:222
Settings::mAuthorEmail
QString mAuthorEmail
Definition: prefs_lokalize.h:370
Settings::msgFontItem
ItemFont * msgFontItem()
Get Item object corresponding to MsgFont()
Definition: prefs_lokalize.h:177
Settings::mLeds
bool mLeds
Definition: prefs_lokalize.h:379
Settings::autoSpellcheck
static bool autoSpellcheck()
Get AutoSpellcheck.
Definition: prefs_lokalize.h:241
Settings::prefetchTM
static bool prefetchTM()
Get PrefetchTM.
Definition: prefs_lokalize.h:295
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:03:45 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

lokalize

Skip menu "lokalize"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

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