00001
00002
00003
#ifndef KNOTECONFIG_H
00004
#define KNOTECONFIG_H
00005
00006
#include <kconfigskeleton.h>
00007
00008
class KNoteConfig :
public KConfigSkeleton
00009 {
00010
public:
00011
00012 KNoteConfig( KSharedConfig::Ptr config );
00013 ~KNoteConfig();
00014
00018
void setBgColor(
const QColor & v )
00019 {
00020
if (!isImmutable(
"BgColor" ))
00021 mBgColor = v;
00022 }
00023
00027
QColor bgColor()
const
00028
{
00029
return mBgColor;
00030 }
00031
00035
void setFgColor(
const QColor & v )
00036 {
00037
if (!isImmutable(
"FgColor" ))
00038 mFgColor = v;
00039 }
00040
00044
QColor fgColor()
const
00045
{
00046
return mFgColor;
00047 }
00048
00052
void setWidth( uint v )
00053 {
00054
if (!isImmutable(
"Width" ))
00055 mWidth = v;
00056 }
00057
00061 uint width()
const
00062
{
00063
return mWidth;
00064 }
00065
00069
void setHeight( uint v )
00070 {
00071
if (!isImmutable(
"Height" ))
00072 mHeight = v;
00073 }
00074
00078 uint height()
const
00079
{
00080
return mHeight;
00081 }
00082
00086
void setFont(
const QFont & v )
00087 {
00088
if (!isImmutable(
"Font" ))
00089 mFont = v;
00090 }
00091
00095
QFont font()
const
00096
{
00097
return mFont;
00098 }
00099
00103
void setTitleFont(
const QFont & v )
00104 {
00105
if (!isImmutable(
"TitleFont" ))
00106 mTitleFont = v;
00107 }
00108
00112
QFont titleFont()
const
00113
{
00114
return mTitleFont;
00115 }
00116
00120
void setAutoIndent(
bool v )
00121 {
00122
if (!isImmutable(
"AutoIndent" ))
00123 mAutoIndent = v;
00124 }
00125
00129
bool autoIndent()
const
00130
{
00131
return mAutoIndent;
00132 }
00133
00137
void setRichText(
bool v )
00138 {
00139
if (!isImmutable(
"RichText" ))
00140 mRichText = v;
00141 }
00142
00146
bool richText()
const
00147
{
00148
return mRichText;
00149 }
00150
00154
void setTabSize( uint v )
00155 {
00156
if (!isImmutable(
"TabSize" ))
00157 mTabSize = v;
00158 }
00159
00163 uint tabSize()
const
00164
{
00165
return mTabSize;
00166 }
00167
00171
void setVersion(
double v )
00172 {
00173
if (!isImmutable(
"Version" ))
00174 mVersion = v;
00175 }
00176
00180
double version()
const
00181
{
00182
return mVersion;
00183 }
00184
00188
void setDesktop(
int v )
00189 {
00190
if (!isImmutable(
"Desktop" ))
00191 mDesktop = v;
00192 }
00193
00197
int desktop()
const
00198
{
00199
return mDesktop;
00200 }
00201
00205
void setPosition(
const QPoint & v )
00206 {
00207
if (!isImmutable(
"Position" ))
00208 mPosition = v;
00209 }
00210
00214
QPoint position()
const
00215
{
00216
return mPosition;
00217 }
00218
00222
void setShowInTaskbar(
bool v )
00223 {
00224
if (!isImmutable(
"ShowInTaskbar" ))
00225 mShowInTaskbar = v;
00226 }
00227
00231
bool showInTaskbar()
const
00232
{
00233
return mShowInTaskbar;
00234 }
00235
00239
void setKeepAbove(
bool v )
00240 {
00241
if (!isImmutable(
"KeepAbove" ))
00242 mKeepAbove = v;
00243 }
00244
00248
bool keepAbove()
const
00249
{
00250
return mKeepAbove;
00251 }
00252
00256
void setKeepBelow(
bool v )
00257 {
00258
if (!isImmutable(
"KeepBelow" ))
00259 mKeepBelow = v;
00260 }
00261
00265
bool keepBelow()
const
00266
{
00267
return mKeepBelow;
00268 }
00269
00270
protected:
00271
00272
00273
QColor mBgColor;
00274
QColor mFgColor;
00275 uint mWidth;
00276 uint mHeight;
00277
00278
00279
QFont mFont;
00280
QFont mTitleFont;
00281
bool mAutoIndent;
00282
bool mRichText;
00283 uint mTabSize;
00284
00285
00286
double mVersion;
00287
00288
00289
int mDesktop;
00290
QPoint mPosition;
00291
bool mShowInTaskbar;
00292
bool mKeepAbove;
00293
bool mKeepBelow;
00294
00295
private:
00296
00297
#include "knoteconfig_addons.h"
00298 };
00299
00300
#endif
00301