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

kjots

  • sources
  • kde-4.12
  • kdepim
  • kjots
KJotsSettings.h
Go to the documentation of this file.
1 // This file is generated by kconfig_compiler from kjots.kcfg.
2 // All changes you do to this file will be lost.
3 #ifndef KJOTSSETTINGS_H
4 #define KJOTSSETTINGS_H
5 
6 #include <kconfigskeleton.h>
7 #include <kdebug.h>
8 
9 #include <kglobalsettings.h>
10 class KJotsSettings : public KConfigSkeleton
11 {
12  public:
13 
14  static KJotsSettings *self();
15  ~KJotsSettings();
16 
20  static
21  void setSplitterSizes( const QList<int> & v )
22  {
23  if (!self()->isImmutable( QString::fromLatin1( "SplitterSizes" ) ))
24  self()->mSplitterSizes = v;
25  }
26 
30  static
31  QList<int> splitterSizes()
32  {
33  return self()->mSplitterSizes;
34  }
35 
39  static
40  void setCurrentSelection( quint64 v )
41  {
42  if (!self()->isImmutable( QString::fromLatin1( "CurrentSelection" ) ))
43  self()->mCurrentSelection = v;
44  }
45 
49  static
50  quint64 currentSelection()
51  {
52  return self()->mCurrentSelection;
53  }
54 
55 
59  static
60  QFont font()
61  {
62  return self()->mFont;
63  }
64 
65 
69  static
70  bool autoSave()
71  {
72  return self()->mAutoSave;
73  }
74 
75 
79  static
80  bool unicode()
81  {
82  return self()->mUnicode;
83  }
84 
85 
89  static
90  int autoSaveInterval()
91  {
92  return self()->mAutoSaveInterval;
93  }
94 
98  static
99  void setLastId( quint64 v )
100  {
101  if (!self()->isImmutable( QString::fromLatin1( "LastId" ) ))
102  self()->mLastId = v;
103  }
104 
108  static
109  quint64 lastId()
110  {
111  return self()->mLastId;
112  }
113 
117  static
118  void setBookshelfOrder( const QString & v )
119  {
120  if (!self()->isImmutable( QString::fromLatin1( "BookshelfOrder" ) ))
121  self()->mBookshelfOrder = v;
122  }
123 
127  static
128  QString bookshelfOrder()
129  {
130  return self()->mBookshelfOrder;
131  }
132 
133 
137  static
138  bool pageNamePrompt()
139  {
140  return self()->mPageNamePrompt;
141  }
142 
143  protected:
144  KJotsSettings();
145  friend class KJotsSettingsHelper;
146 
147 
148  // kjots
149  QList<int> mSplitterSizes;
150  quint64 mCurrentSelection;
151  QFont mFont;
152  bool mAutoSave;
153  bool mUnicode;
154  int mAutoSaveInterval;
155  quint64 mLastId;
156  QString mBookshelfOrder;
157  bool mPageNamePrompt;
158 
159  private:
160 };
161 
162 #endif
163 
KJotsSettings::autoSaveInterval
static int autoSaveInterval()
Get The interval in minutes at which books should be saved automatically.
Definition: KJotsSettings.h:90
KJotsSettings::mPageNamePrompt
bool mPageNamePrompt
Definition: KJotsSettings.h:157
KJotsSettings::mBookshelfOrder
QString mBookshelfOrder
Definition: KJotsSettings.h:156
KJotsSettings::pageNamePrompt
static bool pageNamePrompt()
Get Ask for a name when creating a new page?
Definition: KJotsSettings.h:138
KJotsSettings
Definition: KJotsSettings.h:10
KJotsSettings::mCurrentSelection
quint64 mCurrentSelection
Definition: KJotsSettings.h:150
KJotsSettings::mFont
QFont mFont
Definition: KJotsSettings.h:151
KJotsSettings::bookshelfOrder
static QString bookshelfOrder()
Get The IDs of the books in the bookshelf.
Definition: KJotsSettings.h:128
KConfigSkeleton
KJotsSettings::mAutoSave
bool mAutoSave
Definition: KJotsSettings.h:152
KJotsSettings::KJotsSettingsHelper
friend class KJotsSettingsHelper
Definition: KJotsSettings.h:145
KJotsSettings::mUnicode
bool mUnicode
Definition: KJotsSettings.h:153
KJotsSettings::splitterSizes
static QList< int > splitterSizes()
Get How the main window is divided.
Definition: KJotsSettings.h:31
KJotsSettings::~KJotsSettings
~KJotsSettings()
Definition: KJotsSettings.cpp:65
KJotsSettings::setCurrentSelection
static void setCurrentSelection(quint64 v)
Set The book or page that is currently active.
Definition: KJotsSettings.h:40
KJotsSettings::setLastId
static void setLastId(quint64 v)
Set The last ID that was used for a book or page.
Definition: KJotsSettings.h:99
KJotsSettings::setSplitterSizes
static void setSplitterSizes(const QList< int > &v)
Set How the main window is divided.
Definition: KJotsSettings.h:21
KJotsSettings::KJotsSettings
KJotsSettings()
Definition: KJotsSettings.cpp:27
KJotsSettings::unicode
static bool unicode()
Get Whether UTF-8 encoding should be forced for saving and loading.
Definition: KJotsSettings.h:80
KJotsSettings::currentSelection
static quint64 currentSelection()
Get The book or page that is currently active.
Definition: KJotsSettings.h:50
KJotsSettings::setBookshelfOrder
static void setBookshelfOrder(const QString &v)
Set The IDs of the books in the bookshelf.
Definition: KJotsSettings.h:118
KJotsSettings::mSplitterSizes
QList< int > mSplitterSizes
Definition: KJotsSettings.h:149
KJotsSettings::autoSave
static bool autoSave()
Get Whether books should be saved automatically.
Definition: KJotsSettings.h:70
KJotsSettings::mLastId
quint64 mLastId
Definition: KJotsSettings.h:155
KJotsSettings::font
static QFont font()
Get The font used to display the contents of books.
Definition: KJotsSettings.h:60
KJotsSettings::mAutoSaveInterval
int mAutoSaveInterval
Definition: KJotsSettings.h:154
KJotsSettings::lastId
static quint64 lastId()
Get The last ID that was used for a book or page.
Definition: KJotsSettings.h:109
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kjots

Skip menu "kjots"
  • Main Page
  • Namespace List
  • 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