org.kde.koala

Class KDE

public class KDE extends Object

Namespace for general KDE functions.

UNKNOWN: Namespace for general KDE functions.

Method Summary
static QPixmapBarIcon(String name, int size, int state, KInstanceInterface instance)
KIconLoader Load a toolbar icon.
static QPixmapBarIcon(String name, int size, int state)
static QPixmapBarIcon(String name, int size)
static QPixmapBarIcon(String name)
static QPixmapBarIcon(String name, KInstanceInterface instance)
KIconLoader Load a toolbar icon.
static QIconSetBarIconSet(String name, int size, KInstanceInterface instance)
KIconLoader Load a toolbar icon, and apply the necessary effects to get an IconSet.
static QIconSetBarIconSet(String name, int size)
static QIconSetBarIconSet(String name)
static booleancheckAccess(String pathname, int mode)
KGlobal Check, if a file may be accessed in a given mode.
static QPixmapDesktopIcon(String name, int size, int state, KInstanceInterface instance)
KIconLoader Load a desktop icon.
static QPixmapDesktopIcon(String name, int size, int state)
static QPixmapDesktopIcon(String name, int size)
static QPixmapDesktopIcon(String name)
static QPixmapDesktopIcon(String name, KInstanceInterface instance)
KIconLoader Load a desktop icon.
static QIconSetDesktopIconSet(String name, int size, KInstanceInterface instance)
KIconLoader Load a desktop icon, and apply the necessary effects to get an IconSet.
static QIconSetDesktopIconSet(String name, int size)
static QIconSetDesktopIconSet(String name)
static Stringi18n(String text)
KLocale i18n is the function that does everything you need to translate a string.
static Stringi18n(String comment, String text)
KLocale If the string is too ambiguous to be translated well to a non-english language, use this form of i18n to separate lookup string and english text.
static Stringi18n(String singular, String plural, long n)
KLocale If you want to handle plural forms, use this form of i18n.
static intIconSize(int group, KInstanceInterface instance)
KIconLoader Returns the current icon size for a specific group.
static intIconSize(int group)
static intkasciistricmp(String str1, String str2)
Locale-independent qstricmp.
static voidkColorBitmaps(QPainter p, QColorGroup g, int x, int y, QBitmap lightColor, QBitmap midColor, QBitmap midlightColor, QBitmap darkColor, QBitmap blackColor, QBitmap whiteColor)
KStyle #include <kdrawutil.h> Paints the provided bitmaps in the painter, using the supplied colorgroup for the foreground colors.
static voidkColorBitmaps(QPainter p, QColorGroup g, int x, int y, QBitmap lightColor, QBitmap midColor, QBitmap midlightColor, QBitmap darkColor, QBitmap blackColor)
static voidkColorBitmaps(QPainter p, QColorGroup g, int x, int y, QBitmap lightColor, QBitmap midColor, QBitmap midlightColor, QBitmap darkColor)
static voidkColorBitmaps(QPainter p, QColorGroup g, int x, int y, QBitmap lightColor, QBitmap midColor, QBitmap midlightColor)
static voidkColorBitmaps(QPainter p, QColorGroup g, int x, int y, QBitmap lightColor, QBitmap midColor)
static voidkColorBitmaps(QPainter p, QColorGroup g, int x, int y, QBitmap lightColor)
static voidkColorBitmaps(QPainter p, QColorGroup g, int x, int y)
static voidkColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps, char[] lightColor, char[] midColor, char[] midlightColor, char[] darkColor, char[] blackColor, char[] whiteColor)
KStyle #include <kdrawutil.h>
static voidkColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps, char[] lightColor, char[] midColor, char[] midlightColor, char[] darkColor, char[] blackColor)
static voidkColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps, char[] lightColor, char[] midColor, char[] midlightColor, char[] darkColor)
static voidkColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps, char[] lightColor, char[] midColor, char[] midlightColor)
static voidkColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps, char[] lightColor, char[] midColor)
static voidkColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps, char[] lightColor)
static voidkColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps)
static voidkColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h)
static voidkDrawBeButton(QPainter p, QRect r, QColorGroup g, boolean sunken, QBrush fill)
KStyle #include <kdrawutil.h> Draws a Be-style button.
static voidkDrawBeButton(QPainter p, QRect r, QColorGroup g, boolean sunken)
static voidkDrawBeButton(QPainter p, QRect r, QColorGroup g)
static voidkDrawBeButton(QPainter p, int x, int y, int w, int h, QColorGroup g, boolean sunken, QBrush fill)
KStyle #include <kdrawutil.h>
static voidkDrawBeButton(QPainter p, int x, int y, int w, int h, QColorGroup g, boolean sunken)
static voidkDrawBeButton(QPainter p, int x, int y, int w, int h, QColorGroup g)
static voidkDrawNextButton(QPainter p, QRect r, QColorGroup g, boolean sunken, QBrush fill)
KStyle #include <kdrawutil.h> Draws a Next-style button (solid black shadow with light and midlight highlight).
static voidkDrawNextButton(QPainter p, QRect r, QColorGroup g, boolean sunken)
static voidkDrawNextButton(QPainter p, QRect r, QColorGroup g)
static voidkDrawNextButton(QPainter p, int x, int y, int w, int h, QColorGroup g, boolean sunken, QBrush fill)
static voidkDrawNextButton(QPainter p, int x, int y, int w, int h, QColorGroup g, boolean sunken)
static voidkDrawNextButton(QPainter p, int x, int y, int w, int h, QColorGroup g)
static voidkDrawRoundButton(QPainter p, QRect r, QColorGroup g, boolean sunken)
KStyle #include <kdrawutil.h> Draws a rounded oval button.
static voidkDrawRoundButton(QPainter p, QRect r, QColorGroup g)
static voidkDrawRoundButton(QPainter p, int x, int y, int w, int h, QColorGroup g, boolean sunken)
static voidkDrawRoundButton(QPainter p, int x, int y, int w, int h, QColorGroup g)
static voidkDrawRoundMask(QPainter p, int x, int y, int w, int h, boolean clear)
KStyle #include <kdrawutil.h> Paints the pixels covered by a round button of the given size with Qt.color1.
static voidkDrawRoundMask(QPainter p, int x, int y, int w, int h)
static voidkRoundMaskRegion(QRegion r, int x, int y, int w, int h)
KStyle #include <kdrawutil.h> Sets a region to the pixels covered by a round button of the given size.
static Stringlocate(String type, String filename, KInstanceInterface instance)
\addtogroup locates Locate Functions
static Stringlocate(String type, String filename)
static StringlocateLocal(String type, String filename, KInstanceInterface instance)
static StringlocateLocal(String type, String filename)
static StringlocateLocal(String type, String filename, boolean createDir, KInstanceInterface instance)
static StringlocateLocal(String type, String filename, boolean createDir)
static QPixmapMainBarIcon(String name, int size, int state, KInstanceInterface instance)
KIconLoader Load a main toolbar icon.
static QPixmapMainBarIcon(String name, int size, int state)
static QPixmapMainBarIcon(String name, int size)
static QPixmapMainBarIcon(String name)
static QPixmapMainBarIcon(String name, KInstanceInterface instance)
KIconLoader Load a main toolbar icon.
static QIconSetMainBarIconSet(String name, int size, KInstanceInterface instance)
KIconLoader Load a main toolbar icon, and apply the effects to get an IconSet.
static QIconSetMainBarIconSet(String name, int size)
static QIconSetMainBarIconSet(String name)
static intop_equals(KSSLCertificate x, KSSLCertificate y)
static intop_incr(int group)
static intop_incr(int group, int arg2)
static booleanop_lt(KEntryKey k1, KEntryKey k2)
compares two KEntryKeys (needed for QMap).
static intop_not_equals(KSSLCertificate x, KSSLCertificate y)
static QDataStreamop_read(QDataStream s, KFileItem a)
static QDataStreamop_read(QDataStream s, KURL a)
static QDataStreamop_read(QDataStream s, KSSLCertificate r)
static QDataStreamop_read(QDataStream s, KSSLCertDlgRet r)
static QDataStreamop_read(QDataStream str, boolean b)
static QDataStreamop_read(QDataStream s, int p)
static QDataStreamop_read(QDataStream s, KFileMetaInfoItem arg2)
static QDataStreamop_read(QDataStream s, KFileMetaInfoGroup arg2)
static QDataStreamop_read(QDataStream s, KFileMetaInfo arg2)
static QDataStreamop_write(QDataStream s, KFileItem a)
static QDataStreamop_write(QDataStream s, KURL a)
static QDataStreamop_write(QDataStream s, KSSLCertificate r)
static QDataStreamop_write(QDataStream s, KSSLCertDlgRet r)
static QDataStreamop_write(QDataStream str, boolean b)
static QDataStreamop_write(QDataStream str, long ll)
static QDataStreamop_write(QDataStream s, int p)
static QDataStreamop_write(QDataStream s, KFileMetaInfoItem arg2)
static QDataStreamop_write(QDataStream s, KFileMetaInfoGroup arg2)
static QDataStreamop_write(QDataStream s, KFileMetaInfo arg2)
static intpageNameToPageSize(String name)
static StringpageSizeToPageName(int s)
static QPixmapSmallIcon(String name, int size, int state, KInstanceInterface instance)
KIconLoader Load a small icon.
static QPixmapSmallIcon(String name, int size, int state)
static QPixmapSmallIcon(String name, int size)
static QPixmapSmallIcon(String name)
static QPixmapSmallIcon(String name, KInstanceInterface instance)
KIconLoader Load a small icon.
static QIconSetSmallIconSet(String name, int size, KInstanceInterface instance)
KIconLoader Load a small icon, and apply the necessary effects to get an IconSet.
static QIconSetSmallIconSet(String name, int size)
static QIconSetSmallIconSet(String name)
static Stringtr2i18n(String message, String arg2)
KLocale Qt3's uic generates i18n( "msg", "comment" ) calls which conflict with our i18n method.
static Stringtr2i18n(String message)
static booleanurlcmp(String _url1, String _url2)
KURL Compares URLs.
static booleanurlcmp(String _url1, String _url2, boolean _ignore_trailing, boolean _ignore_ref)
KURL Compares URLs.
static QPixmapUserIcon(String name, int state, KInstanceInterface instance)
KIconLoader Load a user icon.
static QPixmapUserIcon(String name, int state)
static QPixmapUserIcon(String name)
static QPixmapUserIcon(String name, KInstanceInterface instance)
KIconLoader Load a user icon.
static QIconSetUserIconSet(String name, KInstanceInterface instance)
KIconLoader Load a user icon, and apply the effects to get an IconSet.
static QIconSetUserIconSet(String name)
static intversion()
Returns the encoded number of KDE's version, see the KDE_VERSION macro.
static intversionMajor()
Returns the major number of KDE's version, e.g.
static intversionMinor()
Returns the minor number of KDE's version, e.g.
static intversionRelease()
Returns the release of KDE's version, e.g.
static StringversionString()
Returns the KDE version as string, e.g.

Method Detail

BarIcon

public static QPixmap BarIcon(String name, int size, int state, KInstanceInterface instance)
KIconLoader Load a toolbar icon.

UNKNOWN: KIconLoader Load a toolbar icon.

BarIcon

public static QPixmap BarIcon(String name, int size, int state)

BarIcon

public static QPixmap BarIcon(String name, int size)

BarIcon

public static QPixmap BarIcon(String name)

BarIcon

public static QPixmap BarIcon(String name, KInstanceInterface instance)
KIconLoader Load a toolbar icon.

UNKNOWN: KIconLoader Load a toolbar icon.

BarIconSet

public static QIconSet BarIconSet(String name, int size, KInstanceInterface instance)
KIconLoader Load a toolbar icon, and apply the necessary effects to get an IconSet.

UNKNOWN: KIconLoader Load a toolbar icon, and apply the necessary effects to get an IconSet.

BarIconSet

public static QIconSet BarIconSet(String name, int size)

BarIconSet

public static QIconSet BarIconSet(String name)

checkAccess

public static boolean checkAccess(String pathname, int mode)
KGlobal Check, if a file may be accessed in a given mode. This is a wrapper around the access() system call. checkAccess() calls access() with the given parameters. If this is OK, checkAccess() returns true. If not, and W_OK is part of mode, it is checked if there is write access to the directory. If yes, checkAccess() returns true. In all other cases checkAccess() returns false. Other than access() this function EXPLICITLY ignores non-existant files if checking for write access.

Parameters: pathname The full path of the file you want to test mode The access mode, as in the access() system call.

Returns: Whether the access is allowed, true = Access allowed

UNKNOWN: KGlobal Check, if a file may be accessed in a given mode.

DesktopIcon

public static QPixmap DesktopIcon(String name, int size, int state, KInstanceInterface instance)
KIconLoader Load a desktop icon.

UNKNOWN: KIconLoader Load a desktop icon.

DesktopIcon

public static QPixmap DesktopIcon(String name, int size, int state)

DesktopIcon

public static QPixmap DesktopIcon(String name, int size)

DesktopIcon

public static QPixmap DesktopIcon(String name)

DesktopIcon

public static QPixmap DesktopIcon(String name, KInstanceInterface instance)
KIconLoader Load a desktop icon.

UNKNOWN: KIconLoader Load a desktop icon.

DesktopIconSet

public static QIconSet DesktopIconSet(String name, int size, KInstanceInterface instance)
KIconLoader Load a desktop icon, and apply the necessary effects to get an IconSet.

UNKNOWN: KIconLoader Load a desktop icon, and apply the necessary effects to get an IconSet.

DesktopIconSet

public static QIconSet DesktopIconSet(String name, int size)

DesktopIconSet

public static QIconSet DesktopIconSet(String name)

i18n

public static String i18n(String text)
KLocale i18n is the function that does everything you need to translate a string. You just wrap around every user visible string a i18n call to get a String with the string in the user's preferred language. The argument must be an UTF-8 encoded string (If you only use characters that are in US-ASCII, you're on the safe side. But for e.g. German umlauts or French accents should be recoded to UTF-8)

UNKNOWN: KLocale i18n is the function that does everything you need to translate a string.

i18n

public static String i18n(String comment, String text)
KLocale If the string is too ambiguous to be translated well to a non-english language, use this form of i18n to separate lookup string and english text.

See Also: KDE

UNKNOWN: KLocale If the string is too ambiguous to be translated well to a non-english language, use this form of i18n to separate lookup string and english text.

i18n

public static String i18n(String singular, String plural, long n)
KLocale If you want to handle plural forms, use this form of i18n.

Parameters: singular the singular form of the word, for example "file". plural the plural form of the word. Must contain a "%n" that will be replaced by the number n, for example "%n files" n the number

Returns: the correct singular or plural for the selected language, depending on n

See Also: KDE

UNKNOWN: KLocale If you want to handle plural forms, use this form of i18n.

IconSize

public static int IconSize(int group, KInstanceInterface instance)
KIconLoader Returns the current icon size for a specific group.

UNKNOWN: KIconLoader Returns the current icon size for a specific group.

IconSize

public static int IconSize(int group)

kasciistricmp

public static int kasciistricmp(String str1, String str2)
Locale-independent qstricmp. Use this for comparing ascii keywords in a case-insensitive way. qstricmp fails with e.g. the Turkish locale where 'I'.lower() != 'i'

UNKNOWN: Locale-independent qstricmp.

kColorBitmaps

public static void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, QBitmap lightColor, QBitmap midColor, QBitmap midlightColor, QBitmap darkColor, QBitmap blackColor, QBitmap whiteColor)
KStyle #include <kdrawutil.h> Paints the provided bitmaps in the painter, using the supplied colorgroup for the foreground colors. There's one bitmap for each color. If you want to skip a color, pass null for the corresponding bitmap.

Parameters: p The painter to use for drawing the bitmaps. g Specifies the shading colors. x The X coordinate at which to draw the bitmaps. y The Y coordinate at which to draw the bitmaps. lightColor The bitmap to use for the light part. midColor The bitmap to use for the mid part. midlightColor The bitmap to use for the midlight part. darkColor The bitmap to use for the dark part. blackColor The bitmap to use for the black part. whiteColor The bitmap to use for the white part.

See Also: org.kde.qt.QColorGroup

UNKNOWN: The bitmaps will be self-masked automatically if not masked prior to calling this routine. KStyle @c \#include @c

kColorBitmaps

public static void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, QBitmap lightColor, QBitmap midColor, QBitmap midlightColor, QBitmap darkColor, QBitmap blackColor)

kColorBitmaps

public static void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, QBitmap lightColor, QBitmap midColor, QBitmap midlightColor, QBitmap darkColor)

kColorBitmaps

public static void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, QBitmap lightColor, QBitmap midColor, QBitmap midlightColor)

kColorBitmaps

public static void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, QBitmap lightColor, QBitmap midColor)

kColorBitmaps

public static void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, QBitmap lightColor)

kColorBitmaps

public static void kColorBitmaps(QPainter p, QColorGroup g, int x, int y)

kColorBitmaps

public static void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps, char[] lightColor, char[] midColor, char[] midlightColor, char[] darkColor, char[] blackColor, char[] whiteColor)
KStyle #include <kdrawutil.h>

UNKNOWN: KStyle @c \#include @c

kColorBitmaps

public static void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps, char[] lightColor, char[] midColor, char[] midlightColor, char[] darkColor, char[] blackColor)

kColorBitmaps

public static void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps, char[] lightColor, char[] midColor, char[] midlightColor, char[] darkColor)

kColorBitmaps

public static void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps, char[] lightColor, char[] midColor, char[] midlightColor)

kColorBitmaps

public static void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps, char[] lightColor, char[] midColor)

kColorBitmaps

public static void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps, char[] lightColor)

kColorBitmaps

public static void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps)

kColorBitmaps

public static void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h)

kDrawBeButton

public static void kDrawBeButton(QPainter p, QRect r, QColorGroup g, boolean sunken, QBrush fill)
KStyle #include <kdrawutil.h> Draws a Be-style button.

Parameters: p The painter to use for drawing the button. r Specifies the rect in which to draw the button. g Specifies the shading colors. sunken Whether to draw the button as sunken (pressed) or not. fill The brush to use for filling the interior of the button. Pass null to prevent the button from being filled.

UNKNOWN: KStyle @c \#include @c

kDrawBeButton

public static void kDrawBeButton(QPainter p, QRect r, QColorGroup g, boolean sunken)

kDrawBeButton

public static void kDrawBeButton(QPainter p, QRect r, QColorGroup g)

kDrawBeButton

public static void kDrawBeButton(QPainter p, int x, int y, int w, int h, QColorGroup g, boolean sunken, QBrush fill)
KStyle #include <kdrawutil.h>

UNKNOWN: KStyle @c \#include @c

kDrawBeButton

public static void kDrawBeButton(QPainter p, int x, int y, int w, int h, QColorGroup g, boolean sunken)

kDrawBeButton

public static void kDrawBeButton(QPainter p, int x, int y, int w, int h, QColorGroup g)

kDrawNextButton

public static void kDrawNextButton(QPainter p, QRect r, QColorGroup g, boolean sunken, QBrush fill)
KStyle #include <kdrawutil.h> Draws a Next-style button (solid black shadow with light and midlight highlight).

Parameters: p The painter to use for drawing the button. r Specifies the rect in which to draw the button. g Specifies the shading colors. sunken Whether to draw the button as sunken (pressed) or not. fill The brush to use for filling the interior of the button. Pass null to prevent the button from being filled.

UNKNOWN: KStyle @c \#include @c

kDrawNextButton

public static void kDrawNextButton(QPainter p, QRect r, QColorGroup g, boolean sunken)

kDrawNextButton

public static void kDrawNextButton(QPainter p, QRect r, QColorGroup g)

kDrawNextButton

public static void kDrawNextButton(QPainter p, int x, int y, int w, int h, QColorGroup g, boolean sunken, QBrush fill)
KStyle

UNKNOWN: KStyle @overload

kDrawNextButton

public static void kDrawNextButton(QPainter p, int x, int y, int w, int h, QColorGroup g, boolean sunken)

kDrawNextButton

public static void kDrawNextButton(QPainter p, int x, int y, int w, int h, QColorGroup g)

kDrawRoundButton

public static void kDrawRoundButton(QPainter p, QRect r, QColorGroup g, boolean sunken)
KStyle #include <kdrawutil.h> Draws a rounded oval button. This function doesn't fill the button. See kRoundMaskRegion() for setting masks for fills.

Parameters: p The painter to use for drawing the button. r Specifies the rect in which to draw the button. g Specifies the shading colors. sunken Whether to draw the button as sunken (pressed) or not.

UNKNOWN: KStyle @c \#include @c

kDrawRoundButton

public static void kDrawRoundButton(QPainter p, QRect r, QColorGroup g)

kDrawRoundButton

public static void kDrawRoundButton(QPainter p, int x, int y, int w, int h, QColorGroup g, boolean sunken)
KStyle

UNKNOWN: KStyle @overload

kDrawRoundButton

public static void kDrawRoundButton(QPainter p, int x, int y, int w, int h, QColorGroup g)

kDrawRoundMask

public static void kDrawRoundMask(QPainter p, int x, int y, int w, int h, boolean clear)
KStyle #include <kdrawutil.h> Paints the pixels covered by a round button of the given size with Qt.color1. This function is useful in QStyle.drawControlMask().

Parameters: p The painter to use for drawing the button. x The X coordinate of the button. y The Y coordinate of the button. w The width of the button. h The height of the button. clear Whether to clear the rectangle specified by (x, y, w, h) to Qt.color0 before drawing the mask.

UNKNOWN: KStyle @c \#include @c

kDrawRoundMask

public static void kDrawRoundMask(QPainter p, int x, int y, int w, int h)

kRoundMaskRegion

public static void kRoundMaskRegion(QRegion r, int x, int y, int w, int h)
KStyle #include <kdrawutil.h> Sets a region to the pixels covered by a round button of the given size. You can use this to set clipping regions.

Parameters: r Reference to the region to set. x The X coordinate of the button. y The Y coordinate of the button. w The width of the button. h The height of the button.

See Also: KDE KDE

UNKNOWN: KStyle @c \#include @c

locate

public static String locate(String type, String filename, KInstanceInterface instance)
\addtogroup locates Locate Functions

UNKNOWN: On The Usage Of 'locate' and 'locateLocal' Typical KDE applications use resource files in one out of three ways: 1) A resource file is read but is never written. A system default is supplied but the user can override this default in his local .kde directory:

		    // Code example
		    myFile = locate("appdata", "groups.lst");
		    myData =  myReadGroups(myFile); // myFile may be null
		    
2) A resource file is read and written. If the user has no local version of the file the system default is used. The resource file is always written to the users local .kde directory.
		    // Code example
		    myFile = locate("appdata", "groups.lst")
		    myData =  myReadGroups(myFile);
		    ...
		    doSomething(myData);
		    ...
		    myFile = locateLocal("appdata", "groups.lst");
		    myWriteGroups(myFile, myData);
		    
3) A resource file is read and written. No system default is used if the user has no local version of the file. The resource file is always written to the users local .kde directory.
		    // Code example
		    myFile = locateLocal("appdata", "groups.lst");
		    myData =  myReadGroups(myFile);
		    ...
		    doSomething(myData);
		    ...
		    myFile = locateLocal("appdata", "groups.lst");
		    myWriteGroups(myFile, myData);
		    
\addtogroup locates Locate Functions @{ On The Usage Of 'locate' and 'locateLocal'

locate

public static String locate(String type, String filename)

locateLocal

public static String locateLocal(String type, String filename, KInstanceInterface instance)

locateLocal

public static String locateLocal(String type, String filename)

locateLocal

public static String locateLocal(String type, String filename, boolean createDir, KInstanceInterface instance)

locateLocal

public static String locateLocal(String type, String filename, boolean createDir)

MainBarIcon

public static QPixmap MainBarIcon(String name, int size, int state, KInstanceInterface instance)
KIconLoader Load a main toolbar icon.

UNKNOWN: KIconLoader Load a main toolbar icon.

MainBarIcon

public static QPixmap MainBarIcon(String name, int size, int state)

MainBarIcon

public static QPixmap MainBarIcon(String name, int size)

MainBarIcon

public static QPixmap MainBarIcon(String name)

MainBarIcon

public static QPixmap MainBarIcon(String name, KInstanceInterface instance)
KIconLoader Load a main toolbar icon.

UNKNOWN: KIconLoader Load a main toolbar icon.

MainBarIconSet

public static QIconSet MainBarIconSet(String name, int size, KInstanceInterface instance)
KIconLoader Load a main toolbar icon, and apply the effects to get an IconSet.

UNKNOWN: KIconLoader Load a main toolbar icon, and apply the effects to get an IconSet.

MainBarIconSet

public static QIconSet MainBarIconSet(String name, int size)

MainBarIconSet

public static QIconSet MainBarIconSet(String name)

op_equals

public static int op_equals(KSSLCertificate x, KSSLCertificate y)

op_incr

public static int op_incr(int group)

op_incr

public static int op_incr(int group, int arg2)

op_lt

public static boolean op_lt(KEntryKey k1, KEntryKey k2)
compares two KEntryKeys (needed for QMap).

UNKNOWN: compares two KEntryKeys (needed for QMap).

op_not_equals

public static int op_not_equals(KSSLCertificate x, KSSLCertificate y)

op_read

public static QDataStream op_read(QDataStream s, KFileItem a)

op_read

public static QDataStream op_read(QDataStream s, KURL a)

op_read

public static QDataStream op_read(QDataStream s, KSSLCertificate r)

op_read

public static QDataStream op_read(QDataStream s, KSSLCertDlgRet r)

op_read

public static QDataStream op_read(QDataStream str, boolean b)

op_read

public static QDataStream op_read(QDataStream s, int p)

op_read

public static QDataStream op_read(QDataStream s, KFileMetaInfoItem arg2)

op_read

public static QDataStream op_read(QDataStream s, KFileMetaInfoGroup arg2)

op_read

public static QDataStream op_read(QDataStream s, KFileMetaInfo arg2)

op_write

public static QDataStream op_write(QDataStream s, KFileItem a)

op_write

public static QDataStream op_write(QDataStream s, KURL a)

op_write

public static QDataStream op_write(QDataStream s, KSSLCertificate r)

op_write

public static QDataStream op_write(QDataStream s, KSSLCertDlgRet r)

op_write

public static QDataStream op_write(QDataStream str, boolean b)

op_write

public static QDataStream op_write(QDataStream str, long ll)

op_write

public static QDataStream op_write(QDataStream s, int p)

op_write

public static QDataStream op_write(QDataStream s, KFileMetaInfoItem arg2)

op_write

public static QDataStream op_write(QDataStream s, KFileMetaInfoGroup arg2)

op_write

public static QDataStream op_write(QDataStream s, KFileMetaInfo arg2)

pageNameToPageSize

public static int pageNameToPageSize(String name)

pageSizeToPageName

public static String pageSizeToPageName(int s)

SmallIcon

public static QPixmap SmallIcon(String name, int size, int state, KInstanceInterface instance)
KIconLoader Load a small icon.

UNKNOWN: KIconLoader Load a small icon.

SmallIcon

public static QPixmap SmallIcon(String name, int size, int state)

SmallIcon

public static QPixmap SmallIcon(String name, int size)

SmallIcon

public static QPixmap SmallIcon(String name)

SmallIcon

public static QPixmap SmallIcon(String name, KInstanceInterface instance)
KIconLoader Load a small icon.

UNKNOWN: KIconLoader Load a small icon.

SmallIconSet

public static QIconSet SmallIconSet(String name, int size, KInstanceInterface instance)
KIconLoader Load a small icon, and apply the necessary effects to get an IconSet.

UNKNOWN: KIconLoader Load a small icon, and apply the necessary effects to get an IconSet.

SmallIconSet

public static QIconSet SmallIconSet(String name, int size)

SmallIconSet

public static QIconSet SmallIconSet(String name)

tr2i18n

public static String tr2i18n(String message, String arg2)
KLocale Qt3's uic generates i18n( "msg", "comment" ) calls which conflict with our i18n method. We use uic -tr tr2i18n to redirect to the right i18n() function

UNKNOWN: KLocale Qt3's uic generates i18n( "msg", "comment" ) calls which conflict with our i18n method.

tr2i18n

public static String tr2i18n(String message)

urlcmp

public static boolean urlcmp(String _url1, String _url2)
KURL Compares URLs. They are parsed, split and compared. Two malformed URLs with the same string representation are nevertheless considered to be unequal. That means no malformed URL equals anything else.

UNKNOWN: KURL Compares URLs.

urlcmp

public static boolean urlcmp(String _url1, String _url2, boolean _ignore_trailing, boolean _ignore_ref)
KURL Compares URLs. They are parsed, split and compared. Two malformed URLs with the same string representation are nevertheless considered to be unequal. That means no malformed URL equals anything else.

Parameters: _url1 A reference URL _url2 A URL that will be compared with the reference URL _ignore_trailing Described in KURL.cmp _ignore_ref If true, disables comparison of HTML-style references.

UNKNOWN: KURL Compares URLs.

UserIcon

public static QPixmap UserIcon(String name, int state, KInstanceInterface instance)
KIconLoader Load a user icon. User icons are searched in $appdir/pics.

UNKNOWN: KIconLoader Load a user icon.

UserIcon

public static QPixmap UserIcon(String name, int state)

UserIcon

public static QPixmap UserIcon(String name)

UserIcon

public static QPixmap UserIcon(String name, KInstanceInterface instance)
KIconLoader Load a user icon. User icons are searched in $appdir/pics.

UNKNOWN: KIconLoader Load a user icon.

UserIconSet

public static QIconSet UserIconSet(String name, KInstanceInterface instance)
KIconLoader Load a user icon, and apply the effects to get an IconSet.

UNKNOWN: KIconLoader Load a user icon, and apply the effects to get an IconSet.

UserIconSet

public static QIconSet UserIconSet(String name)

version

public static int version()
Returns the encoded number of KDE's version, see the KDE_VERSION macro. In contrary to that macro this function returns the number of the actully installed KDE version, not the number of the KDE version that was installed when the program was compiled.

Returns: the version number, encoded in a single uint

UNKNOWN: Returns the encoded number of KDE's version, see the KDE_VERSION macro.

versionMajor

public static int versionMajor()
Returns the major number of KDE's version, e.g. 3 for KDE 3.1.2.

Returns: the major version number

UNKNOWN: Returns the major number of KDE's version, e.

versionMinor

public static int versionMinor()
Returns the minor number of KDE's version, e.g. 1 for KDE 3.1.2.

Returns: the minor version number

UNKNOWN: Returns the minor number of KDE's version, e.

versionRelease

public static int versionRelease()
Returns the release of KDE's version, e.g. 2 for KDE 3.1.2.

Returns: the release number

UNKNOWN: Returns the release of KDE's version, e.

versionString

public static String versionString()
Returns the KDE version as string, e.g. "3.1.2".

Returns: the KDE version. You can keep the string forever

UNKNOWN: Returns the KDE version as string, e.