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

kblackbox

kbbprefs.cpp

Go to the documentation of this file.
00001 // This file is generated by kconfig_compiler from kblackbox.kcfg.
00002 // All changes you do to this file will be lost.
00003 
00004 #include "kbbprefs.h"
00005 
00006 #include <klocale.h>
00007 
00008 #include <kglobal.h>
00009 #include <QtCore/QFile>
00010 
00011 class KBBPrefsHelper
00012 {
00013   public:
00014     KBBPrefsHelper() : q(0) {}
00015     ~KBBPrefsHelper() { delete q; }
00016     KBBPrefs *q;
00017 };
00018 K_GLOBAL_STATIC(KBBPrefsHelper, s_globalKBBPrefs)
00019 KBBPrefs *KBBPrefs::self()
00020 {
00021   if (!s_globalKBBPrefs->q) {
00022     new KBBPrefs;
00023     s_globalKBBPrefs->q->readConfig();
00024   }
00025 
00026   return s_globalKBBPrefs->q;
00027 }
00028 
00029 KBBPrefs::KBBPrefs(  )
00030   : KConfigSkeleton( QLatin1String( "kblackboxrc" ) )
00031 {
00032   Q_ASSERT(!s_globalKBBPrefs->q);
00033   s_globalKBBPrefs->q = this;
00034   setCurrentGroup( QLatin1String( "KBlackBox Setup" ) );
00035 
00036   KConfigSkeleton::ItemString  *itemTheme;
00037   itemTheme = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "theme" ), mTheme );
00038   itemTheme->setLabel( i18n("File of the current theme of the graphic elements. (SVGZ file with path and file extension)") );
00039   addItem( itemTheme, QLatin1String( "theme" ) );
00040   KConfigSkeleton::ItemInt  *itemBalls;
00041   itemBalls = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "balls" ), mBalls, 4 );
00042   itemBalls->setLabel( i18n("Number of balls for custom difficulty level") );
00043   addItem( itemBalls, QLatin1String( "balls" ) );
00044   KConfigSkeleton::ItemInt  *itemColumns;
00045   itemColumns = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "columns" ), mColumns, 8 );
00046   itemColumns->setLabel( i18n("Number of columns of the board for custom difficulty level") );
00047   addItem( itemColumns, QLatin1String( "columns" ) );
00048   KConfigSkeleton::ItemInt  *itemRows;
00049   itemRows = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "rows" ), mRows, 8 );
00050   itemRows->setLabel( i18n("Number of rows of the board for custom difficuty level") );
00051   addItem( itemRows, QLatin1String( "rows" ) );
00052   KConfigSkeleton::ItemInt  *itemLevel;
00053   itemLevel = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "level" ), mLevel, 30 );
00054   itemLevel->setLabel( i18n("Difficulty level") );
00055   addItem( itemLevel, QLatin1String( "level" ) );
00056 }
00057 
00058 KBBPrefs::~KBBPrefs()
00059 {
00060 }
00061 

kblackbox

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

API Reference

Skip menu "API Reference"
  • kblackbox
  • kgoldrunner
  • kmahjongg
  • ksquares
  • libkdegames
  •   highscore
  •   kgame
  •   kggzgames
  •   kggzmod
  •   kggznet
  • libkmahjongg
Generated for API Reference 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