org.kde.koala
public class KGlobalSettings extends Object implements QtSupport
UNKNOWN: Access the KDE global configuration.
Field Summary | |
---|---|
static int | ApplicationLevel |
static int | CompletionAuto |
static int | CompletionMan |
static int | CompletionNone
This enum describes the completion mode used for by the KCompletion class.
|
static int | CompletionPopup |
static int | CompletionPopupAuto |
static int | CompletionShell |
static int | Disable
This enum describes the return type for insertTearOffHandle() whether to insert
a handle or not. |
static int | Enable |
Constructor Summary | |
---|---|
protected | KGlobalSettings(Class dummy) |
KGlobalSettings() |
Method Summary | |
---|---|
static QColor | activeTextColor()
The default color to use for active texts. |
static QColor | activeTitleColor()
The default color to use for active titles. |
static QColor | alternateBackgroundColor()
Returns the alternate background color used by KListView with
KListViewItem. |
static String | autostartPath()
The path to the autostart directory of the current user. |
static int | autoSelectDelay()
Returns the KDE setting for the auto-select option. |
static QColor | baseColor()
Returns the default base (background) color. |
static QColor | buttonBackground()
Returns the button background color |
static int | buttonLayout()
The layout scheme to use for dialog buttons |
static QColor | buttonTextColor()
Returns the button text color |
static QColor | calculateAlternateBackgroundColor(QColor base)
Calculates a color based on base to be used as alternating
color for e.g. listviews. |
static boolean | changeCursorOverIcon()
Checks whether the cursor changes over icons. |
static int | completionMode()
Returns the preferred completion mode setting. |
static int | contextMenuKey()
Returns the KDE setting for the shortcut key to open
context menus. |
static int | contrast()
Returns the contrast for borders. |
static QRect | desktopGeometry(QPoint point)
This function returns the desktop geometry for an application that needs
to set the geometry of a widget on the screen manually. |
static QRect | desktopGeometry(QWidget w)
This function returns the desktop geometry for an application that needs
to set the geometry of a widget on the screen manually. |
static String | desktopPath()
The path to the desktop directory of the current user. |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
static int | dndEventDelay()
Returns a threshold in pixels for drag & drop operations.
|
static String | documentPath()
The path where documents are stored of the current user. |
protected void | finalize() Deletes the wrapped C++ instance |
static QFont | fixedFont()
Returns the default fixed font. |
static QFont | generalFont()
Returns the default general font. |
static QColor | highlightColor()
Returns the default color for text highlights. |
static QColor | highlightedTextColor()
Returns the default color for highlighted text. |
static QColor | inactiveTextColor()
The default color to use for inactive texts. |
static QColor | inactiveTitleColor()
The default color to use for inactive titles. |
static int | insertTearOffHandle()
Returns whether tear-off handles are inserted in KPopupMenus. |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
static boolean | isMultiHead()
Returns if the user specified multihead. |
static QFont | largeFont(String text)
Returns a font of approx. |
static QFont | largeFont() |
static QColor | linkColor()
Returns the default link color. |
static QFont | menuFont()
Returns the default menu font. |
static boolean | opaqueResize()
Whether the user wishes to use opaque resizing. |
static boolean | shadeSortColumn()
Returns if the sorted column in a KListView shall be drawn with a
shaded background color. |
static boolean | showContextMenusOnPress()
Returns the KDE setting for context menus. |
static boolean | showFilePreview(KURL arg1)
This function determines if the user wishes to see previews
for the selected url |
static boolean | showIconsOnPushButtons()
This function determines if the user wishes to see icons on the
push buttons. |
static boolean | singleClick()
Returns whether KDE runs in single (default) or double click
mode.
see http://developer.kde.org/documentation/standards/kde/style/mouse/index.html |
static QRect | splashScreenDesktopGeometry()
This function returns the desktop geometry for an application's splash
screen. |
static QFont | taskbarFont()
Returns the default taskbar font. |
static QColor | textColor()
Returns the default text color. |
static QFont | toolBarFont()
Returns the default toolbar font. |
static QColor | toolBarHighlightColor()
The default color to use when highlighting toolbar buttons. |
static String | trashPath()
DEPRECATED (starting from kde-3.4).
|
static QColor | visitedLinkColor()
Returns the default color for visited links. |
static boolean | visualActivate()
Checks whether to show feedback when in item (specifically an
icon) is activated. |
static int | visualActivateSpeed()
Returns the speed of the visual activation feedback. |
static boolean | wheelMouseZooms()
Typically, QScrollView derived classes can be scrolled fast by
holding down the Ctrl-button during wheel-scrolling.
|
static QFont | windowTitleFont()
Returns the default window title font. |
UNKNOWN: This enum describes the completion mode used for by the KCompletion class.
UNKNOWN: This enum describes the return type for insertTearOffHandle() whether to insert a handle or not.
Returns: the active text color
UNKNOWN: The default color to use for active texts.
Returns: the active title color
UNKNOWN: The default color to use for active titles.
Returns: the alternate background color
See Also: KGlobalSettings
UNKNOWN: Returns the alternate background color used by KListView with KListViewItem.
Returns: the path of the autostart directory
UNKNOWN: The path to the autostart directory of the current user.
Returns: the auto-select delay or -1 if auto-select is disabled.
UNKNOWN: Returns the KDE setting for the auto-select option.
Returns: the default base (background) color
See Also: org.kde.qt.QColorGroup#base
UNKNOWN: Returns the default base (background) color.
Returns: the button background color
UNKNOWN: Returns the button background color
Returns: Returns the number of the scheme to use.
See Also: KDialogBase
UNKNOWN: The layout scheme to use for dialog buttons
Returns: the button text color
UNKNOWN: Returns the button text color
base
to be used as alternating
color for e.g. listviews.Parameters: base the base for the calculation
Returns: the calculated color
See Also: KGlobalSettings
UNKNOWN: Calculates a color based on base
to be used as alternating color for e.
Returns: the KDE setting for "change cursor over icon"
UNKNOWN: Checks whether the cursor changes over icons.
Returns: Completion. Default is CompletionPopup.
UNKNOWN: Returns the preferred completion mode setting.
Returns: the key that pops up context menus.
UNKNOWN: Returns the KDE setting for the shortcut key to open context menus.
Returns: the contrast (between 0 for minimum and 10 for maximum contrast)
UNKNOWN: Returns the contrast for borders.
Parameters: point a reference point for the widget, for instance one that the widget should be adjacent or on top of.
Returns: the geometry to use for the desktop. Note that it might not start at (0,0).
UNKNOWN: This function returns the desktop geometry for an application that needs to set the geometry of a widget on the screen manually.
Parameters: w the widget in question. This is used to determine which screen to use in Xinerama or multi-head mode.
Returns: the geometry to use for the desktop. Note that it might not start at (0,0).
UNKNOWN: This function returns the desktop geometry for an application that needs to set the geometry of a widget on the screen manually.
Returns: the user's desktop directory
UNKNOWN: The path to the desktop directory of the current user.
void KColorCells.mousePressEvent( QMouseEvent e ) { mOldPos = e.pos(); } void KColorCells.mouseMoveEvent( QMouseEvent e ) { if( !(e.state() && LeftButton)) return; int delay = KGlobalSettings.dndEventDelay(); QPoint newPos = e.pos(); if(newPos.x() > mOldPos.x()+delay || newPos.x() < mOldPos.x()-delay || newPos.y() > mOldPos.y()+delay || newPos.y() < mOldPos.y()-delay) { // Drag color object int cell = posToCell(mOldPos); // Find color at mOldPos if ((cell != -1) && colors[cell].isValid()) { KColorDrag d = KColorDrag.makeDrag( colors[cell], this); d.dragCopy(); } } }
Returns: the threshold for drag & drop in pixels
UNKNOWN: Returns a threshold in pixels for drag & drop operations.
Returns: the path of the document directory
UNKNOWN: The path where documents are stored of the current user.
Returns: the default fixed font.
UNKNOWN: Returns the default fixed font.
Returns: the default general font.
UNKNOWN: Returns the default general font.
Returns: the default color for text highlights
See Also: org.kde.qt.QColorGroup#hightlight
UNKNOWN: Returns the default color for text highlights.
Returns: the default color for highlighted text
See Also: org.kde.qt.QColorGroup#hightlightedText
UNKNOWN: Returns the default color for highlighted text.
Returns: the inactive text color
UNKNOWN: The default color to use for inactive texts.
Returns: the inactive title color
UNKNOWN: The default color to use for inactive titles.
Returns: whether tear-off handles are inserted in KPopupMenus.
UNKNOWN: Returns whether tear-off handles are inserted in KPopupMenus.
Returns: true if the user chose multi head
UNKNOWN: Returns if the user specified multihead.
text.
Parameters: text the text to test
Returns: the font that is capable to show the text with 48 pt
UNKNOWN: Returns a font of approx.
Returns: the default link color
UNKNOWN: Returns the default link color.
Returns: the default menu font.
UNKNOWN: Returns the default menu font.
Returns: Returns true if user wants to use opaque resizing.
UNKNOWN: Whether the user wishes to use opaque resizing.
Returns: true if the sorted column shall be shaded
UNKNOWN: Returns if the sorted column in a KListView shall be drawn with a shaded background color.
Returns: whether context menus should be shown on button press or button release (click).
UNKNOWN: Returns the KDE setting for context menus.
Returns: Returns true if user wants to show previews.
UNKNOWN: This function determines if the user wishes to see previews for the selected url
Returns: Returns true if user wants to show icons.
UNKNOWN: This function determines if the user wishes to see icons on the push buttons.
Returns: true if single click mode, or false if double click mode.
UNKNOWN: Returns whether KDE runs in single (default) or double click mode.
Returns: the geometry to use for the desktop. Note that it might not start at (0,0).
UNKNOWN: This function returns the desktop geometry for an application's splash screen.
Returns: the default taskbar font.
UNKNOWN: Returns the default taskbar font.
Returns: the default text color
See Also: org.kde.qt.QColorGroup#text
UNKNOWN: Returns the default text color.
Returns: the default toolbar font.
UNKNOWN: Returns the default toolbar font.
Returns: the toolbar highlight color
UNKNOWN: The default color to use when highlighting toolbar buttons.
UNKNOWN: DEPRECATED (starting from kde-3.
Returns: the default color for visited links
UNKNOWN: Returns the default color for visited links.
Returns: whether to show some feedback when an item is activated.
UNKNOWN: Checks whether to show feedback when in item (specifically an icon) is activated.
Returns: the speed of the visual activation feedback, between 0 for minimum and 100 for maximum speed
UNKNOWN: Returns the speed of the visual activation feedback.
Returns: true if the user wishes to zoom with the mouse wheel, false for scrolling
UNKNOWN: Typically, QScrollView derived classes can be scrolled fast by holding down the Ctrl-button during wheel-scrolling.
Returns: the default window title font.
UNKNOWN: Returns the default window title font.