summaryrefslogtreecommitdiffabout
path: root/microkde/kglobal.h
Unidiff
Diffstat (limited to 'microkde/kglobal.h') (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kglobal.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/microkde/kglobal.h b/microkde/kglobal.h
index 1e03bea..a6c2527 100644
--- a/microkde/kglobal.h
+++ b/microkde/kglobal.h
@@ -8,42 +8,42 @@
8#include <qevent.h> 8#include <qevent.h>
9class KStandardDirs; 9class KStandardDirs;
10class KGlobal { 10class KGlobal {
11 public: 11 public:
12 static KLocale *locale(); 12 static KLocale *locale();
13 static KConfig *config(); 13 static KConfig *config();
14 static KIconLoader *iconLoader(); 14 static KIconLoader *iconLoader();
15 static KStandardDirs *dirs(); 15 static KStandardDirs *dirs();
16 static int knumkeykonv( int ); 16 static int knumkeykonv( int );
17 17
18 static void setAppName( const QString & ); 18 static void setAppName( const QString & );
19 static QString formatMessage( QString mess, int maxlen ) ; 19 static QString formatMessage( QString mess, int maxlen ) ;
20 20
21//US begin: added the following methods for convenience 21//US begin: added the following methods for convenience
22 static QString getAppName(); 22 static QString getAppName();
23 static void setLocale(KLocale *); 23 static void setLocale(KLocale *);
24 24
25 enum Orientation { Portrait, Landscape }; 25 enum Orientation { Portrait, Landscape };
26 enum Size { Small, Medium, Desktop }; 26 enum Size { Small = 0, Medium = 1, Desktop = 2};
27 27
28 static int getDesktopWidth(); 28 static int getDesktopWidth();
29 static int getDesktopHeight(); 29 static int getDesktopHeight();
30 static KGlobal::Size getDesktopSize(); 30 static KGlobal::Size getDesktopSize();
31 static KGlobal::Orientation getOrientation(); 31 static KGlobal::Orientation getOrientation();
32 32
33 33
34 private: 34 private:
35 static KLocale *mLocale; 35 static KLocale *mLocale;
36 static KConfig *mConfig; 36 static KConfig *mConfig;
37 static KIconLoader *mIconLoader; 37 static KIconLoader *mIconLoader;
38 static KStandardDirs *mDirs; 38 static KStandardDirs *mDirs;
39 39
40 static QString mAppName; 40 static QString mAppName;
41}; 41};
42 42
43 43
44/** @ref KGlobal 44/** @ref KGlobal
45 * A typesafe function to find the minimum of the two arguments. 45 * A typesafe function to find the minimum of the two arguments.
46 */ 46 */
47 #define KMIN(a,b)kMin(a,b) 47 #define KMIN(a,b)kMin(a,b)
48/** @ref KGlobal 48/** @ref KGlobal
49 * A typesafe function to find the maximum of the two arguments. 49 * A typesafe function to find the maximum of the two arguments.