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

knotes

  • sources
  • kde-4.12
  • kdepim
  • knotes
  • settings
knoteconfig.h
Go to the documentation of this file.
1 // This file is generated by kconfig_compiler from knoteconfig.kcfg.
2 // All changes you do to this file will be lost.
3 #ifndef KNOTECONFIG_H
4 #define KNOTECONFIG_H
5 
6 #include <knotes_export.h>
7 
8 #include <kglobal.h>
9 #include <kconfigskeleton.h>
10 #include <kdebug.h>
11 
12 #include <kglobalsettings.h>
13 class KNOTES_EXPORT KNoteConfig : public KConfigSkeleton
14 {
15  public:
16 
17  KNoteConfig( KSharedConfig::Ptr config = KGlobal::config() );
18  ~KNoteConfig();
19 
23  void setBgColor( const QColor & v )
24  {
25  if (!isImmutable( QString::fromLatin1( "BgColor" ) ))
26  mBgColor = v;
27  }
28 
32  QColor bgColor() const
33  {
34  return mBgColor;
35  }
36 
40  void setFgColor( const QColor & v )
41  {
42  if (!isImmutable( QString::fromLatin1( "FgColor" ) ))
43  mFgColor = v;
44  }
45 
49  QColor fgColor() const
50  {
51  return mFgColor;
52  }
53 
57  void setWidth( uint v )
58  {
59  if (!isImmutable( QString::fromLatin1( "Width" ) ))
60  mWidth = v;
61  }
62 
66  uint width() const
67  {
68  return mWidth;
69  }
70 
74  void setHeight( uint v )
75  {
76  if (!isImmutable( QString::fromLatin1( "Height" ) ))
77  mHeight = v;
78  }
79 
83  uint height() const
84  {
85  return mHeight;
86  }
87 
91  void setRememberDesktop( bool v )
92  {
93  if (!isImmutable( QString::fromLatin1( "RememberDesktop" ) ))
94  mRememberDesktop = v;
95  }
96 
100  bool rememberDesktop() const
101  {
102  return mRememberDesktop;
103  }
104 
108  void setFont( const QFont & v )
109  {
110  if (!isImmutable( QString::fromLatin1( "Font" ) ))
111  mFont = v;
112  }
113 
117  QFont font() const
118  {
119  return mFont;
120  }
121 
125  void setTitleFont( const QFont & v )
126  {
127  if (!isImmutable( QString::fromLatin1( "TitleFont" ) ))
128  mTitleFont = v;
129  }
130 
134  QFont titleFont() const
135  {
136  return mTitleFont;
137  }
138 
142  void setAutoIndent( bool v )
143  {
144  if (!isImmutable( QString::fromLatin1( "AutoIndent" ) ))
145  mAutoIndent = v;
146  }
147 
151  bool autoIndent() const
152  {
153  return mAutoIndent;
154  }
155 
159  void setRichText( bool v )
160  {
161  if (!isImmutable( QString::fromLatin1( "RichText" ) ))
162  mRichText = v;
163  }
164 
168  bool richText() const
169  {
170  return mRichText;
171  }
172 
176  void setTabSize( uint v )
177  {
178  if (!isImmutable( QString::fromLatin1( "TabSize" ) ))
179  mTabSize = v;
180  }
181 
185  uint tabSize() const
186  {
187  return mTabSize;
188  }
189 
193  void setReadOnly( bool v )
194  {
195  if (!isImmutable( QString::fromLatin1( "ReadOnly" ) ))
196  mReadOnly = v;
197  }
198 
202  bool readOnly() const
203  {
204  return mReadOnly;
205  }
206 
210  void setVersion( const QString & v )
211  {
212  if (!isImmutable( QString::fromLatin1( "Version" ) ))
213  mVersion = v;
214  }
215 
219  QString version() const
220  {
221  return mVersion;
222  }
223 
227  void setDesktop( int v )
228  {
229  if (!isImmutable( QString::fromLatin1( "Desktop" ) ))
230  mDesktop = v;
231  }
232 
236  int desktop() const
237  {
238  return mDesktop;
239  }
240 
244  void setHideNote( bool v )
245  {
246  if (!isImmutable( QString::fromLatin1( "HideNote" ) ))
247  mHideNote = v;
248  }
249 
253  bool hideNote() const
254  {
255  return mHideNote;
256  }
257 
261  void setPosition( const QPoint & v )
262  {
263  if (!isImmutable( QString::fromLatin1( "Position" ) ))
264  mPosition = v;
265  }
266 
270  QPoint position() const
271  {
272  return mPosition;
273  }
274 
278  void setShowInTaskbar( bool v )
279  {
280  if (!isImmutable( QString::fromLatin1( "ShowInTaskbar" ) ))
281  mShowInTaskbar = v;
282  }
283 
287  bool showInTaskbar() const
288  {
289  return mShowInTaskbar;
290  }
291 
295  void setKeepAbove( bool v )
296  {
297  if (!isImmutable( QString::fromLatin1( "KeepAbove" ) ))
298  mKeepAbove = v;
299  }
300 
304  bool keepAbove() const
305  {
306  return mKeepAbove;
307  }
308 
312  void setKeepBelow( bool v )
313  {
314  if (!isImmutable( QString::fromLatin1( "KeepBelow" ) ))
315  mKeepBelow = v;
316  }
317 
321  bool keepBelow() const
322  {
323  return mKeepBelow;
324  }
325 
326  protected:
327 
328  // Display
329  QColor mBgColor;
330  QColor mFgColor;
331  uint mWidth;
332  uint mHeight;
333  bool mRememberDesktop;
334 
335  // Editor
336  QFont mFont;
337  QFont mTitleFont;
338  bool mAutoIndent;
339  bool mRichText;
340  uint mTabSize;
341  bool mReadOnly;
342 
343  // General
344  QString mVersion;
345 
346  // WindowDisplay
347  int mDesktop;
348  bool mHideNote;
349  QPoint mPosition;
350  bool mShowInTaskbar;
351  bool mKeepAbove;
352  bool mKeepBelow;
353 
354  private:
355 };
356 
357 #endif
358 
KNoteConfig::mRichText
bool mRichText
Definition: knoteconfig.h:339
KNoteConfig::version
QString version() const
Get version.
Definition: knoteconfig.h:219
KNoteConfig::rememberDesktop
bool rememberDesktop() const
Get RememberDesktop.
Definition: knoteconfig.h:100
KNoteConfig::mShowInTaskbar
bool mShowInTaskbar
Definition: knoteconfig.h:350
KNoteConfig::mAutoIndent
bool mAutoIndent
Definition: knoteconfig.h:338
KNoteConfig::setKeepAbove
void setKeepAbove(bool v)
Set KeepAbove.
Definition: knoteconfig.h:295
KNoteConfig::desktop
int desktop() const
Get desktop.
Definition: knoteconfig.h:236
KNoteConfig::setBgColor
void setBgColor(const QColor &v)
Set bgcolor.
Definition: knoteconfig.h:23
KNoteConfig
Definition: knoteconfig.h:13
KNoteConfig::mHeight
uint mHeight
Definition: knoteconfig.h:332
KNoteConfig::mFgColor
QColor mFgColor
Definition: knoteconfig.h:330
KNoteConfig::mPosition
QPoint mPosition
Definition: knoteconfig.h:349
KNoteConfig::setShowInTaskbar
void setShowInTaskbar(bool v)
Set ShowInTaskbar.
Definition: knoteconfig.h:278
KNoteConfig::mBgColor
QColor mBgColor
Definition: knoteconfig.h:329
KNoteConfig::setRememberDesktop
void setRememberDesktop(bool v)
Set RememberDesktop.
Definition: knoteconfig.h:91
KNoteConfig::setTabSize
void setTabSize(uint v)
Set tabsize.
Definition: knoteconfig.h:176
KNoteConfig::setReadOnly
void setReadOnly(bool v)
Set ReadOnly.
Definition: knoteconfig.h:193
KNoteConfig::mDesktop
int mDesktop
Definition: knoteconfig.h:347
KConfigSkeleton
KNoteConfig::showInTaskbar
bool showInTaskbar() const
Get ShowInTaskbar.
Definition: knoteconfig.h:287
KNoteConfig::mTitleFont
QFont mTitleFont
Definition: knoteconfig.h:337
KNoteConfig::mFont
QFont mFont
Definition: knoteconfig.h:336
KNoteConfig::autoIndent
bool autoIndent() const
Get autoindent.
Definition: knoteconfig.h:151
KNoteConfig::mReadOnly
bool mReadOnly
Definition: knoteconfig.h:341
KNoteConfig::height
uint height() const
Get height.
Definition: knoteconfig.h:83
KNoteConfig::bgColor
QColor bgColor() const
Get bgcolor.
Definition: knoteconfig.h:32
KNoteConfig::mKeepAbove
bool mKeepAbove
Definition: knoteconfig.h:351
KNOTES_EXPORT
#define KNOTES_EXPORT
Definition: knotes_export.h:35
KNoteConfig::mWidth
uint mWidth
Definition: knoteconfig.h:331
KNoteConfig::setPosition
void setPosition(const QPoint &v)
Set position.
Definition: knoteconfig.h:261
KNoteConfig::titleFont
QFont titleFont() const
Get titlefont.
Definition: knoteconfig.h:134
KNoteConfig::setVersion
void setVersion(const QString &v)
Set version.
Definition: knoteconfig.h:210
KNoteConfig::tabSize
uint tabSize() const
Get tabsize.
Definition: knoteconfig.h:185
KNoteConfig::mVersion
QString mVersion
Definition: knoteconfig.h:344
KNoteConfig::setHideNote
void setHideNote(bool v)
Set HideNote.
Definition: knoteconfig.h:244
KNoteConfig::mKeepBelow
bool mKeepBelow
Definition: knoteconfig.h:352
KNoteConfig::setRichText
void setRichText(bool v)
Set richtext.
Definition: knoteconfig.h:159
KNoteConfig::setAutoIndent
void setAutoIndent(bool v)
Set autoindent.
Definition: knoteconfig.h:142
KNoteConfig::mRememberDesktop
bool mRememberDesktop
Definition: knoteconfig.h:333
KNoteConfig::fgColor
QColor fgColor() const
Get fgcolor.
Definition: knoteconfig.h:49
KNoteConfig::setHeight
void setHeight(uint v)
Set height.
Definition: knoteconfig.h:74
KNoteConfig::setFont
void setFont(const QFont &v)
Set font.
Definition: knoteconfig.h:108
KNoteConfig::font
QFont font() const
Get font.
Definition: knoteconfig.h:117
knotes_export.h
KNoteConfig::hideNote
bool hideNote() const
Get HideNote.
Definition: knoteconfig.h:253
KNoteConfig::mTabSize
uint mTabSize
Definition: knoteconfig.h:340
KNoteConfig::richText
bool richText() const
Get richtext.
Definition: knoteconfig.h:168
KNoteConfig::mHideNote
bool mHideNote
Definition: knoteconfig.h:348
KNoteConfig::setDesktop
void setDesktop(int v)
Set desktop.
Definition: knoteconfig.h:227
KNoteConfig::setFgColor
void setFgColor(const QColor &v)
Set fgcolor.
Definition: knoteconfig.h:40
KNoteConfig::width
uint width() const
Get width.
Definition: knoteconfig.h:66
KNoteConfig::setWidth
void setWidth(uint v)
Set width.
Definition: knoteconfig.h:57
KNoteConfig::position
QPoint position() const
Get position.
Definition: knoteconfig.h:270
KNoteConfig::keepAbove
bool keepAbove() const
Get KeepAbove.
Definition: knoteconfig.h:304
KNoteConfig::readOnly
bool readOnly() const
Get ReadOnly.
Definition: knoteconfig.h:202
KNoteConfig::setTitleFont
void setTitleFont(const QFont &v)
Set titlefont.
Definition: knoteconfig.h:125
KNoteConfig::setKeepBelow
void setKeepBelow(bool v)
Set KeepBelow.
Definition: knoteconfig.h:312
KNoteConfig::keepBelow
bool keepBelow() const
Get KeepBelow.
Definition: knoteconfig.h:321
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:33 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

knotes

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

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