Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

kglobal.cpp

Go to the documentation of this file.
00001 #include "kglobal.h"
00002 
00003 KLocale *KGlobal::mLocale = 0;
00004 KateConfig *KGlobal::mConfig = 0;
00005 KIconLoader *KGlobal::mIconLoader = 0;
00006 KStandardDirs *KGlobal::mDirs = 0;
00007 
00008 QString KGlobal::mAppName = "godot";
00009 
00010 KLocale *KGlobal::locale()
00011 {
00012   if ( !mLocale ) {
00013     mLocale = new KLocale();
00014   }
00015   
00016   return mLocale;
00017 }
00018 
00019 KateConfig *KGlobal::config()
00020 {
00021   if ( !mConfig ) {
00022     mConfig = new KateConfig( mAppName );
00023   }
00024   
00025   return mConfig;
00026 }
00027 
00028 KIconLoader *KGlobal::iconLoader()
00029 {
00030   if ( !mIconLoader ) {
00031     mIconLoader = new KIconLoader();
00032   }
00033   
00034   return mIconLoader;
00035 }
00036 
00037 KStandardDirs *KGlobal::dirs()
00038 {
00039   if ( !mDirs ) {
00040     mDirs = new KStandardDirs();
00041   }
00042   
00043   return mDirs;
00044 }
00045 
00046 void KGlobal::setAppName( const QString &appName )
00047 {
00048   mAppName = appName;
00049 }

Generated on Sat Nov 5 16:17:12 2005 for OPIE by  doxygen 1.4.2