• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdeutils
  • Sitemap
  • Contact Us
 

kcalc

kcalc_settings.h

Go to the documentation of this file.
00001 // This file is generated by kconfig_compiler from kcalc.kcfg.
00002 // All changes you do to this file will be lost.
00003 #ifndef KCALCSETTINGS_H
00004 #define KCALCSETTINGS_H
00005 
00006 #include <kconfigskeleton.h>
00007 #include <kdebug.h>
00008 
00009 #include <kapplication.h>
00010 #include <kglobalsettings.h>
00011 class KCalcSettings : public KConfigSkeleton
00012 {
00013   public:
00014 
00015     static KCalcSettings *self();
00016     ~KCalcSettings();
00017 
00018 
00022     static
00023     QColor foreColor()
00024     {
00025       return self()->mForeColor;
00026     }
00027 
00028 
00032     static
00033     QColor backColor()
00034     {
00035       return self()->mBackColor;
00036     }
00037 
00038 
00042     static
00043     QColor numberButtonsColor()
00044     {
00045       return self()->mNumberButtonsColor;
00046     }
00047 
00048 
00052     static
00053     QColor functionButtonsColor()
00054     {
00055       return self()->mFunctionButtonsColor;
00056     }
00057 
00058 
00062     static
00063     QColor statButtonsColor()
00064     {
00065       return self()->mStatButtonsColor;
00066     }
00067 
00068 
00072     static
00073     QColor hexButtonsColor()
00074     {
00075       return self()->mHexButtonsColor;
00076     }
00077 
00078 
00082     static
00083     QColor memoryButtonsColor()
00084     {
00085       return self()->mMemoryButtonsColor;
00086     }
00087 
00088 
00092     static
00093     QColor operationButtonsColor()
00094     {
00095       return self()->mOperationButtonsColor;
00096     }
00097 
00098 
00102     static
00103     QFont font()
00104     {
00105       return self()->mFont;
00106     }
00107 
00108 
00112     static
00113     uint precision()
00114     {
00115       return self()->mPrecision;
00116     }
00117 
00118 
00122     static
00123     uint fixedPrecision()
00124     {
00125       return self()->mFixedPrecision;
00126     }
00127 
00128 
00132     static
00133     bool fixed()
00134     {
00135       return self()->mFixed;
00136     }
00137 
00138 
00142     static
00143     bool beep()
00144     {
00145       return self()->mBeep;
00146     }
00147 
00148 
00152     static
00153     bool captionResult()
00154     {
00155       return self()->mCaptionResult;
00156     }
00157 
00158 
00162     static
00163     bool groupDigits()
00164     {
00165       return self()->mGroupDigits;
00166     }
00167 
00171     static
00172     void setShowStat( bool v )
00173     {
00174       if (!self()->isImmutable( QString::fromLatin1 ( "ShowStat" ) ))
00175         self()->mShowStat = v;
00176     }
00177 
00181     static
00182     bool showStat()
00183     {
00184       return self()->mShowStat;
00185     }
00186 
00191     static
00192     void setShowScientific( bool v )
00193     {
00194       if (!self()->isImmutable( QString::fromLatin1 ( "ShowScientific" ) ))
00195         self()->mShowScientific = v;
00196     }
00197 
00202     static
00203     bool showScientific()
00204     {
00205       return self()->mShowScientific;
00206     }
00207 
00211     static
00212     void setShowLogic( bool v )
00213     {
00214       if (!self()->isImmutable( QString::fromLatin1 ( "ShowLogic" ) ))
00215         self()->mShowLogic = v;
00216     }
00217 
00221     static
00222     bool showLogic()
00223     {
00224       return self()->mShowLogic;
00225     }
00226 
00230     static
00231     void setShowConstants( bool v )
00232     {
00233       if (!self()->isImmutable( QString::fromLatin1 ( "ShowConstants" ) ))
00234         self()->mShowConstants = v;
00235     }
00236 
00240     static
00241     bool showConstants()
00242     {
00243       return self()->mShowConstants;
00244     }
00245 
00249     static
00250     void setNameConstant( int i, const QString & v )
00251     {
00252       if (!self()->isImmutable( QString::fromLatin1 ( "nameConstant%1" ).arg( i ) ))
00253         self()->mNameConstant[i] = v;
00254     }
00255 
00259     static
00260     QString nameConstant( int i )
00261     {
00262       return self()->mNameConstant[i];
00263     }
00264 
00268     static
00269     void setValueConstant( int i, const QString & v )
00270     {
00271       if (!self()->isImmutable( QString::fromLatin1 ( "valueConstant%1" ).arg( i ) ))
00272         self()->mValueConstant[i] = v;
00273     }
00274 
00278     static
00279     QString valueConstant( int i )
00280     {
00281       return self()->mValueConstant[i];
00282     }
00283 
00284   protected:
00285     KCalcSettings();
00286     friend class KCalcSettingsHelper;
00287 
00288 
00289     // Colors
00290     QColor mForeColor;
00291     QColor mBackColor;
00292     QColor mNumberButtonsColor;
00293     QColor mFunctionButtonsColor;
00294     QColor mStatButtonsColor;
00295     QColor mHexButtonsColor;
00296     QColor mMemoryButtonsColor;
00297     QColor mOperationButtonsColor;
00298 
00299     // Font
00300     QFont mFont;
00301 
00302     // Precision
00303     uint mPrecision;
00304     uint mFixedPrecision;
00305     bool mFixed;
00306 
00307     // General
00308     bool mBeep;
00309     bool mCaptionResult;
00310     bool mGroupDigits;
00311     bool mShowStat;
00312     bool mShowScientific;
00313     bool mShowLogic;
00314     bool mShowConstants;
00315 
00316     // UserConstants
00317     QString mNameConstant[6];
00318     QString mValueConstant[6];
00319 
00320   private:
00321 };
00322 
00323 #endif
00324 

kcalc

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

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdelirc
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • kjots
  • klaptopdaemon
  • kmilo
  • ksim
  • ktimer
  • kwallet
  • superkaramba
Generated for kdeutils by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal