knotes Library API Documentation

knoteconfig.h

00001 // This file is generated by kconfig_compiler from knoteconfig.kcfg.
00002 // All changes you do to this file will be lost.
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( QString::fromLatin1( "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( QString::fromLatin1( "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( QString::fromLatin1( "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( QString::fromLatin1( "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( QString::fromLatin1( "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( QString::fromLatin1( "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( QString::fromLatin1( "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( QString::fromLatin1( "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( QString::fromLatin1( "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( QString::fromLatin1( "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( QString::fromLatin1( "Desktop" ) ))
00191         mDesktop = v;
00192     }
00193 
00197     int desktop() const
00198     {
00199       return mDesktop;
00200     }
00201 
00205     void setHideNote( bool v )
00206     {
00207       if (!isImmutable( QString::fromLatin1( "HideNote" ) ))
00208         mHideNote = v;
00209     }
00210 
00214     bool hideNote() const
00215     {
00216       return mHideNote;
00217     }
00218 
00222     void setPosition( const QPoint & v )
00223     {
00224       if (!isImmutable( QString::fromLatin1( "Position" ) ))
00225         mPosition = v;
00226     }
00227 
00231     QPoint position() const
00232     {
00233       return mPosition;
00234     }
00235 
00239     void setShowInTaskbar( bool v )
00240     {
00241       if (!isImmutable( QString::fromLatin1( "ShowInTaskbar" ) ))
00242         mShowInTaskbar = v;
00243     }
00244 
00248     bool showInTaskbar() const
00249     {
00250       return mShowInTaskbar;
00251     }
00252 
00256     void setKeepAbove( bool v )
00257     {
00258       if (!isImmutable( QString::fromLatin1( "KeepAbove" ) ))
00259         mKeepAbove = v;
00260     }
00261 
00265     bool keepAbove() const
00266     {
00267       return mKeepAbove;
00268     }
00269 
00273     void setKeepBelow( bool v )
00274     {
00275       if (!isImmutable( QString::fromLatin1( "KeepBelow" ) ))
00276         mKeepBelow = v;
00277     }
00278 
00282     bool keepBelow() const
00283     {
00284       return mKeepBelow;
00285     }
00286 
00287   protected:
00288 
00289     // Display
00290     QColor mBgColor;
00291     QColor mFgColor;
00292     uint mWidth;
00293     uint mHeight;
00294 
00295     // Editor
00296     QFont mFont;
00297     QFont mTitleFont;
00298     bool mAutoIndent;
00299     bool mRichText;
00300     uint mTabSize;
00301 
00302     // General
00303     double mVersion;
00304 
00305     // WindowDisplay
00306     int mDesktop;
00307     bool mHideNote;
00308     QPoint mPosition;
00309     bool mShowInTaskbar;
00310     bool mKeepAbove;
00311     bool mKeepBelow;
00312 
00313   private:
00314     // Include custom additions
00315     #include "knoteconfig_addons.h"
00316 };
00317 
00318 #endif
KDE Logo
This file is part of the documentation for knotes Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 22:40:48 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003