Blokkal
an Extendable KDE Blogging Client
SourceForge.net Logo

blokkalappearancesettings.h

00001 // This file is generated by kconfig_compiler from blokkalappearancesettings.kcfg.
00002 // All changes you do to this file will be lost.
00003 #ifndef BLOKKAL_APPEARANCESETTINGS_H
00004 #define BLOKKAL_APPEARANCESETTINGS_H
00005 
00006 #include <blokkal_export.h>
00007 
00008 #include <kconfigskeleton.h>
00009 #include <kdebug.h>
00010 
00011 namespace Blokkal {
00012 
00013 class BLOKKAL_EXPORT AppearanceSettings : public KConfigSkeleton
00014 {
00015   Q_OBJECT
00016   public:
00017 
00018     enum {
00019       signalAppearanceSettingsChanged = 0x1
00020  };
00021 
00022     static AppearanceSettings *self();
00023     ~AppearanceSettings();
00024 
00028     static
00029     void setHighlightSyntax( bool v )
00030     {
00031       if (!self()->isImmutable( QString::fromLatin1 ( "highlightSyntax" ) )) {
00032         self()->mHighlightSyntax = v;
00033         self()->mSettingsChanged |= signalAppearanceSettingsChanged;
00034       }
00035     }
00036 
00040     static
00041     bool highlightSyntax()
00042     {
00043       return self()->mHighlightSyntax;
00044     }
00045 
00049     ItemBool *highlightSyntaxItem()
00050     {
00051       return mHighlightSyntaxItem;
00052     }
00053 
00057     static
00058     void setHighlightTagBold( bool v )
00059     {
00060       if (!self()->isImmutable( QString::fromLatin1 ( "highlightTagBold" ) )) {
00061         self()->mHighlightTagBold = v;
00062         self()->mSettingsChanged |= signalAppearanceSettingsChanged;
00063       }
00064     }
00065 
00069     static
00070     bool highlightTagBold()
00071     {
00072       return self()->mHighlightTagBold;
00073     }
00074 
00078     ItemBool *highlightTagBoldItem()
00079     {
00080       return mHighlightTagBoldItem;
00081     }
00082 
00086     static
00087     void setHighlightTagItalic( bool v )
00088     {
00089       if (!self()->isImmutable( QString::fromLatin1 ( "highlightTagItalic" ) )) {
00090         self()->mHighlightTagItalic = v;
00091         self()->mSettingsChanged |= signalAppearanceSettingsChanged;
00092       }
00093     }
00094 
00098     static
00099     bool highlightTagItalic()
00100     {
00101       return self()->mHighlightTagItalic;
00102     }
00103 
00107     ItemBool *highlightTagItalicItem()
00108     {
00109       return mHighlightTagItalicItem;
00110     }
00111 
00115     static
00116     void setHighlightTagColor( const QColor & v )
00117     {
00118       if (!self()->isImmutable( QString::fromLatin1 ( "highlightTagColor" ) )) {
00119         self()->mHighlightTagColor = v;
00120         self()->mSettingsChanged |= signalAppearanceSettingsChanged;
00121       }
00122     }
00123 
00127     static
00128     QColor highlightTagColor()
00129     {
00130       return self()->mHighlightTagColor;
00131     }
00132 
00136     ItemColor *highlightTagColorItem()
00137     {
00138       return mHighlightTagColorItem;
00139     }
00140 
00144     static
00145     void setHighlightStringBold( bool v )
00146     {
00147       if (!self()->isImmutable( QString::fromLatin1 ( "highlightStringBold" ) )) {
00148         self()->mHighlightStringBold = v;
00149         self()->mSettingsChanged |= signalAppearanceSettingsChanged;
00150       }
00151     }
00152 
00156     static
00157     bool highlightStringBold()
00158     {
00159       return self()->mHighlightStringBold;
00160     }
00161 
00165     ItemBool *highlightStringBoldItem()
00166     {
00167       return mHighlightStringBoldItem;
00168     }
00169 
00173     static
00174     void setHighlightStringItalic( bool v )
00175     {
00176       if (!self()->isImmutable( QString::fromLatin1 ( "highlightStringItalic" ) )) {
00177         self()->mHighlightStringItalic = v;
00178         self()->mSettingsChanged |= signalAppearanceSettingsChanged;
00179       }
00180     }
00181 
00185     static
00186     bool highlightStringItalic()
00187     {
00188       return self()->mHighlightStringItalic;
00189     }
00190 
00194     ItemBool *highlightStringItalicItem()
00195     {
00196       return mHighlightStringItalicItem;
00197     }
00198 
00202     static
00203     void setHighlightStringColor( const QColor & v )
00204     {
00205       if (!self()->isImmutable( QString::fromLatin1 ( "highlightStringColor" ) )) {
00206         self()->mHighlightStringColor = v;
00207         self()->mSettingsChanged |= signalAppearanceSettingsChanged;
00208       }
00209     }
00210 
00214     static
00215     QColor highlightStringColor()
00216     {
00217       return self()->mHighlightStringColor;
00218     }
00219 
00223     ItemColor *highlightStringColorItem()
00224     {
00225       return mHighlightStringColorItem;
00226     }
00227 
00231     static
00232     void setHighlightValueBold( bool v )
00233     {
00234       if (!self()->isImmutable( QString::fromLatin1 ( "highlightValueBold" ) )) {
00235         self()->mHighlightValueBold = v;
00236         self()->mSettingsChanged |= signalAppearanceSettingsChanged;
00237       }
00238     }
00239 
00243     static
00244     bool highlightValueBold()
00245     {
00246       return self()->mHighlightValueBold;
00247     }
00248 
00252     ItemBool *highlightValueBoldItem()
00253     {
00254       return mHighlightValueBoldItem;
00255     }
00256 
00260     static
00261     void setHighlightValueItalic( bool v )
00262     {
00263       if (!self()->isImmutable( QString::fromLatin1 ( "highlightValueItalic" ) )) {
00264         self()->mHighlightValueItalic = v;
00265         self()->mSettingsChanged |= signalAppearanceSettingsChanged;
00266       }
00267     }
00268 
00272     static
00273     bool highlightValueItalic()
00274     {
00275       return self()->mHighlightValueItalic;
00276     }
00277 
00281     ItemBool *highlightValueItalicItem()
00282     {
00283       return mHighlightValueItalicItem;
00284     }
00285 
00289     static
00290     void setHighlightValueColor( const QColor & v )
00291     {
00292       if (!self()->isImmutable( QString::fromLatin1 ( "highlightValueColor" ) )) {
00293         self()->mHighlightValueColor = v;
00294         self()->mSettingsChanged |= signalAppearanceSettingsChanged;
00295       }
00296     }
00297 
00301     static
00302     QColor highlightValueColor()
00303     {
00304       return self()->mHighlightValueColor;
00305     }
00306 
00310     ItemColor *highlightValueColorItem()
00311     {
00312       return mHighlightValueColorItem;
00313     }
00314 
00318     static
00319     void setCheckSpelling( bool v )
00320     {
00321       if (!self()->isImmutable( QString::fromLatin1 ( "checkSpelling" ) )) {
00322         self()->mCheckSpelling = v;
00323         self()->mSettingsChanged |= signalAppearanceSettingsChanged;
00324       }
00325     }
00326 
00330     static
00331     bool checkSpelling()
00332     {
00333       return self()->mCheckSpelling;
00334     }
00335 
00339     ItemBool *checkSpellingItem()
00340     {
00341       return mCheckSpellingItem;
00342     }
00343 
00344 
00345   Q_SIGNALS:
00346     void appearanceSettingsChanged();
00347 
00348   protected:
00349     AppearanceSettings();
00350     friend class AppearanceSettingsHelper;
00351 
00352     virtual void usrWriteConfig();
00353 
00354     // SyntaxHighlightingSpelling
00355     bool mHighlightSyntax;
00356     bool mHighlightTagBold;
00357     bool mHighlightTagItalic;
00358     QColor mHighlightTagColor;
00359     bool mHighlightStringBold;
00360     bool mHighlightStringItalic;
00361     QColor mHighlightStringColor;
00362     bool mHighlightValueBold;
00363     bool mHighlightValueItalic;
00364     QColor mHighlightValueColor;
00365     bool mCheckSpelling;
00366 
00367   private:
00368     ItemBool *mHighlightSyntaxItem;
00369     ItemBool *mHighlightTagBoldItem;
00370     ItemBool *mHighlightTagItalicItem;
00371     ItemColor *mHighlightTagColorItem;
00372     ItemBool *mHighlightStringBoldItem;
00373     ItemBool *mHighlightStringItalicItem;
00374     ItemColor *mHighlightStringColorItem;
00375     ItemBool *mHighlightValueBoldItem;
00376     ItemBool *mHighlightValueItalicItem;
00377     ItemColor *mHighlightValueColorItem;
00378     ItemBool *mCheckSpellingItem;
00379     uint mSettingsChanged;
00380 };
00381 
00382 }
00383 
00384 #endif
00385