org.kde.koala
public class KDE extends Object
UNKNOWN: Namespace for general KDE functions.
Method Summary | |
---|---|
static QPixmap | BarIcon(String name, int size, int state, KInstanceInterface instance)
KIconLoader
Load a toolbar icon. |
static QPixmap | BarIcon(String name, int size, int state) |
static QPixmap | BarIcon(String name, int size) |
static QPixmap | BarIcon(String name) |
static QPixmap | BarIcon(String name, KInstanceInterface instance)
KIconLoader
Load a toolbar icon. |
static QIconSet | BarIconSet(String name, int size, KInstanceInterface instance)
KIconLoader
Load a toolbar icon, and apply the necessary effects to get an IconSet. |
static QIconSet | BarIconSet(String name, int size) |
static QIconSet | BarIconSet(String name) |
static boolean | checkAccess(String pathname, int mode)
KGlobal
Check, if a file may be accessed in a given mode.
|
static QPixmap | DesktopIcon(String name, int size, int state, KInstanceInterface instance)
KIconLoader
Load a desktop icon. |
static QPixmap | DesktopIcon(String name, int size, int state) |
static QPixmap | DesktopIcon(String name, int size) |
static QPixmap | DesktopIcon(String name) |
static QPixmap | DesktopIcon(String name, KInstanceInterface instance)
KIconLoader
Load a desktop icon. |
static QIconSet | DesktopIconSet(String name, int size, KInstanceInterface instance)
KIconLoader
Load a desktop icon, and apply the necessary effects to get an IconSet. |
static QIconSet | DesktopIconSet(String name, int size) |
static QIconSet | DesktopIconSet(String name) |
static String | i18n(String text)
KLocale
i18n is the function that does everything you need to translate
a string. |
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. |
static String | i18n(String singular, String plural, long n)
KLocale
If you want to handle plural forms, use this form of i18n. |
static int | IconSize(int group, KInstanceInterface instance)
KIconLoader
Returns the current icon size for a specific group. |
static int | IconSize(int group) |
static int | kasciistricmp(String str1, String str2)
Locale-independent qstricmp. |
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. |
static void | kColorBitmaps(QPainter p, QColorGroup g, int x, int y, QBitmap lightColor, QBitmap midColor, QBitmap midlightColor, QBitmap darkColor, QBitmap blackColor) |
static void | kColorBitmaps(QPainter p, QColorGroup g, int x, int y, QBitmap lightColor, QBitmap midColor, QBitmap midlightColor, QBitmap darkColor) |
static void | kColorBitmaps(QPainter p, QColorGroup g, int x, int y, QBitmap lightColor, QBitmap midColor, QBitmap midlightColor) |
static void | kColorBitmaps(QPainter p, QColorGroup g, int x, int y, QBitmap lightColor, QBitmap midColor) |
static void | kColorBitmaps(QPainter p, QColorGroup g, int x, int y, QBitmap lightColor) |
static void | kColorBitmaps(QPainter p, QColorGroup g, int x, int y) |
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> |
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) |
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) |
static void | kColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps, char[] lightColor, char[] midColor, char[] midlightColor) |
static void | kColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps, char[] lightColor, char[] midColor) |
static void | kColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps, char[] lightColor) |
static void | kColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps) |
static void | kColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h) |
static void | kDrawBeButton(QPainter p, QRect r, QColorGroup g, boolean sunken, QBrush fill)
KStyle
#include <kdrawutil.h>
Draws a Be-style button. |
static void | kDrawBeButton(QPainter p, QRect r, QColorGroup g, boolean sunken) |
static void | kDrawBeButton(QPainter p, QRect r, QColorGroup g) |
static void | kDrawBeButton(QPainter p, int x, int y, int w, int h, QColorGroup g, boolean sunken, QBrush fill)
KStyle
#include <kdrawutil.h> |
static void | kDrawBeButton(QPainter p, int x, int y, int w, int h, QColorGroup g, boolean sunken) |
static void | kDrawBeButton(QPainter p, int x, int y, int w, int h, QColorGroup g) |
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). |
static void | kDrawNextButton(QPainter p, QRect r, QColorGroup g, boolean sunken) |
static void | kDrawNextButton(QPainter p, QRect r, QColorGroup g) |
static void | kDrawNextButton(QPainter p, int x, int y, int w, int h, QColorGroup g, boolean sunken, QBrush fill) |
static void | kDrawNextButton(QPainter p, int x, int y, int w, int h, QColorGroup g, boolean sunken) |
static void | kDrawNextButton(QPainter p, int x, int y, int w, int h, QColorGroup g) |
static void | kDrawRoundButton(QPainter p, QRect r, QColorGroup g, boolean sunken)
KStyle
#include <kdrawutil.h>
Draws a rounded oval button. |
static void | kDrawRoundButton(QPainter p, QRect r, QColorGroup g) |
static void | kDrawRoundButton(QPainter p, int x, int y, int w, int h, QColorGroup g, boolean sunken) |
static void | kDrawRoundButton(QPainter p, int x, int y, int w, int h, QColorGroup g) |
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. |
static void | kDrawRoundMask(QPainter p, int x, int y, int w, int h) |
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. |
static String | locate(String type, String filename, KInstanceInterface instance)
\addtogroup locates Locate Functions |
static String | locate(String type, String filename) |
static String | locateLocal(String type, String filename, KInstanceInterface instance) |
static String | locateLocal(String type, String filename) |
static String | locateLocal(String type, String filename, boolean createDir, KInstanceInterface instance) |
static String | locateLocal(String type, String filename, boolean createDir) |
static QPixmap | MainBarIcon(String name, int size, int state, KInstanceInterface instance)
KIconLoader
Load a main toolbar icon. |
static QPixmap | MainBarIcon(String name, int size, int state) |
static QPixmap | MainBarIcon(String name, int size) |
static QPixmap | MainBarIcon(String name) |
static QPixmap | MainBarIcon(String name, KInstanceInterface instance)
KIconLoader
Load a main toolbar icon. |
static QIconSet | MainBarIconSet(String name, int size, KInstanceInterface instance)
KIconLoader
Load a main toolbar icon, and apply the effects to get an IconSet. |
static QIconSet | MainBarIconSet(String name, int size) |
static QIconSet | MainBarIconSet(String name) |
static int | op_equals(KSSLCertificate x, KSSLCertificate y) |
static int | op_incr(int group) |
static int | op_incr(int group, int arg2) |
static boolean | op_lt(KEntryKey k1, KEntryKey k2)
compares two KEntryKeys (needed for QMap). |
static int | op_not_equals(KSSLCertificate x, KSSLCertificate y) |
static QDataStream | op_read(QDataStream s, KFileItem a) |
static QDataStream | op_read(QDataStream s, KURL a) |
static QDataStream | op_read(QDataStream s, KSSLCertificate r) |
static QDataStream | op_read(QDataStream s, KSSLCertDlgRet r) |
static QDataStream | op_read(QDataStream str, boolean b) |
static QDataStream | op_read(QDataStream s, int p) |
static QDataStream | op_read(QDataStream s, KFileMetaInfoItem arg2) |
static QDataStream | op_read(QDataStream s, KFileMetaInfoGroup arg2) |
static QDataStream | op_read(QDataStream s, KFileMetaInfo arg2) |
static QDataStream | op_write(QDataStream s, KFileItem a) |
static QDataStream | op_write(QDataStream s, KURL a) |
static QDataStream | op_write(QDataStream s, KSSLCertificate r) |
static QDataStream | op_write(QDataStream s, KSSLCertDlgRet r) |
static QDataStream | op_write(QDataStream str, boolean b) |
static QDataStream | op_write(QDataStream str, long ll) |
static QDataStream | op_write(QDataStream s, int p) |
static QDataStream | op_write(QDataStream s, KFileMetaInfoItem arg2) |
static QDataStream | op_write(QDataStream s, KFileMetaInfoGroup arg2) |
static QDataStream | op_write(QDataStream s, KFileMetaInfo arg2) |
static int | pageNameToPageSize(String name) |
static String | pageSizeToPageName(int s) |
static QPixmap | SmallIcon(String name, int size, int state, KInstanceInterface instance)
KIconLoader
Load a small icon. |
static QPixmap | SmallIcon(String name, int size, int state) |
static QPixmap | SmallIcon(String name, int size) |
static QPixmap | SmallIcon(String name) |
static QPixmap | SmallIcon(String name, KInstanceInterface instance)
KIconLoader
Load a small icon. |
static QIconSet | SmallIconSet(String name, int size, KInstanceInterface instance)
KIconLoader
Load a small icon, and apply the necessary effects to get an IconSet. |
static QIconSet | SmallIconSet(String name, int size) |
static QIconSet | SmallIconSet(String name) |
static String | tr2i18n(String message, String arg2)
KLocale
Qt3's uic generates i18n( "msg", "comment" ) calls which conflict
with our i18n method. |
static String | tr2i18n(String message) |
static boolean | urlcmp(String _url1, String _url2)
KURL
Compares URLs. |
static boolean | urlcmp(String _url1, String _url2, boolean _ignore_trailing, boolean _ignore_ref)
KURL
Compares URLs. |
static QPixmap | UserIcon(String name, int state, KInstanceInterface instance)
KIconLoader
Load a user icon. |
static QPixmap | UserIcon(String name, int state) |
static QPixmap | UserIcon(String name) |
static QPixmap | UserIcon(String name, KInstanceInterface instance)
KIconLoader
Load a user icon. |
static QIconSet | UserIconSet(String name, KInstanceInterface instance)
KIconLoader
Load a user icon, and apply the effects to get an IconSet. |
static QIconSet | UserIconSet(String name) |
static int | version()
Returns the encoded number of KDE's version, see the KDE_VERSION macro.
|
static int | versionMajor()
Returns the major number of KDE's version, e.g.
|
static int | versionMinor()
Returns the minor number of KDE's version, e.g.
|
static int | versionRelease()
Returns the release of KDE's version, e.g.
|
static String | versionString()
Returns the KDE version as string, e.g. |
UNKNOWN: KIconLoader Load a toolbar icon.
UNKNOWN: KIconLoader Load a toolbar icon.
UNKNOWN: KIconLoader Load a toolbar icon, and apply the necessary effects to get an IconSet.
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.
UNKNOWN: KIconLoader Load a desktop icon.
UNKNOWN: KIconLoader Load a desktop icon.
UNKNOWN: KIconLoader Load a desktop icon, and apply the necessary effects to get an IconSet.
UNKNOWN: KLocale i18n is the function that does everything you need to translate a string.
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.
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.
UNKNOWN: KIconLoader Returns the current icon size for a specific group.
UNKNOWN: Locale-independent qstricmp.
#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
#include
<kdrawutil.h>
UNKNOWN: KStyle @c \#include @c
#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
#include
<kdrawutil.h>
UNKNOWN: KStyle @c \#include @c
#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
UNKNOWN: KStyle @overload
#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
UNKNOWN: KStyle @overload
#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
#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.
UNKNOWN: KStyle @c \#include @c
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'
UNKNOWN: KIconLoader Load a main toolbar icon.
UNKNOWN: KIconLoader Load a main toolbar icon.
UNKNOWN: KIconLoader Load a main toolbar icon, and apply the effects to get an IconSet.
UNKNOWN: compares two KEntryKeys (needed for QMap).
UNKNOWN: KIconLoader Load a small icon.
UNKNOWN: KIconLoader Load a small icon.
UNKNOWN: KIconLoader Load a small icon, and apply the necessary effects to get an IconSet.
UNKNOWN: KLocale Qt3's uic generates i18n( "msg", "comment" ) calls which conflict with our i18n method.
UNKNOWN: KURL Compares URLs.
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.
UNKNOWN: KIconLoader Load a user icon.
UNKNOWN: KIconLoader Load a user icon.
UNKNOWN: KIconLoader Load a user icon, and apply the effects to get an IconSet.
Returns: the version number, encoded in a single uint
UNKNOWN: Returns the encoded number of KDE's version, see the KDE_VERSION macro.
Returns: the major version number
UNKNOWN: Returns the major number of KDE's version, e.
Returns: the minor version number
UNKNOWN: Returns the minor number of KDE's version, e.
Returns: the release number
UNKNOWN: Returns the release of KDE's version, e.
Returns: the KDE version. You can keep the string forever
UNKNOWN: Returns the KDE version as string, e.