|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kde.koala.KGlobalSettings
public class KGlobalSettings
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 | |
---|---|
|
KGlobalSettings()
|
protected |
KGlobalSettings(java.lang.Class dummy)
|
Method Summary | |
---|---|
static org.kde.qt.QColor |
activeTextColor()
The default color to use for active texts. |
static org.kde.qt.QColor |
activeTitleColor()
The default color to use for active titles. |
static org.kde.qt.QColor |
alternateBackgroundColor()
Returns the alternate background color used by KListView with KListViewItem. |
static int |
autoSelectDelay()
Returns the KDE setting for the auto-select option. |
static java.lang.String |
autostartPath()
The path to the autostart directory of the current user. |
static org.kde.qt.QColor |
baseColor()
Returns the default base (background) color. |
static org.kde.qt.QColor |
buttonBackground()
Returns the button background color |
static int |
buttonLayout()
The layout scheme to use for dialog buttons |
static org.kde.qt.QColor |
buttonTextColor()
Returns the button text color |
static org.kde.qt.QColor |
calculateAlternateBackgroundColor(org.kde.qt.QColor base)
Calculates a color based on base to be used as alternating
color for e.g. |
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 org.kde.qt.QRect |
desktopGeometry(org.kde.qt.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 org.kde.qt.QRect |
desktopGeometry(org.kde.qt.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 java.lang.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 java.lang.String |
documentPath()
The path where documents are stored of the current user. |
protected void |
finalize()
Deletes the wrapped C++ instance |
static org.kde.qt.QFont |
fixedFont()
Returns the default fixed font. |
static org.kde.qt.QFont |
generalFont()
Returns the default general font. |
static org.kde.qt.QColor |
highlightColor()
Returns the default color for text highlights. |
static org.kde.qt.QColor |
highlightedTextColor()
Returns the default color for highlighted text. |
static org.kde.qt.QColor |
inactiveTextColor()
The default color to use for inactive texts. |
static org.kde.qt.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 org.kde.qt.QFont |
largeFont()
|
static org.kde.qt.QFont |
largeFont(java.lang.String text)
Returns a font of approx. |
static org.kde.qt.QColor |
linkColor()
Returns the default link color. |
static org.kde.qt.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. |
static org.kde.qt.QRect |
splashScreenDesktopGeometry()
This function returns the desktop geometry for an application's splash screen. |
static org.kde.qt.QFont |
taskbarFont()
Returns the default taskbar font. |
static org.kde.qt.QColor |
textColor()
Returns the default text color. |
static org.kde.qt.QFont |
toolBarFont()
Returns the default toolbar font. |
static org.kde.qt.QColor |
toolBarHighlightColor()
The default color to use when highlighting toolbar buttons. |
static java.lang.String |
trashPath()
DEPRECATED (starting from kde-3.4). |
static org.kde.qt.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 org.kde.qt.QFont |
windowTitleFont()
Returns the default window title font. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int Disable
public static final int ApplicationLevel
public static final int Enable
public static final int CompletionNone
public static final int CompletionAuto
public static final int CompletionMan
public static final int CompletionShell
public static final int CompletionPopup
public static final int CompletionPopupAuto
Constructor Detail |
---|
protected KGlobalSettings(java.lang.Class dummy)
public KGlobalSettings()
Method Detail |
---|
public static int dndEventDelay()
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(); } } }
public static boolean singleClick()
public static int insertTearOffHandle()
public static boolean changeCursorOverIcon()
public static boolean visualActivate()
public static int visualActivateSpeed()
public static int autoSelectDelay()
public static int contextMenuKey()
public static boolean showContextMenusOnPress()
public static int completionMode()
CompletionPopup.
public static java.lang.String desktopPath()
public static java.lang.String autostartPath()
public static java.lang.String trashPath()
public static java.lang.String documentPath()
public static org.kde.qt.QColor toolBarHighlightColor()
public static org.kde.qt.QColor inactiveTitleColor()
public static org.kde.qt.QColor inactiveTextColor()
public static org.kde.qt.QColor activeTitleColor()
public static org.kde.qt.QColor activeTextColor()
public static int contrast()
public static org.kde.qt.QColor buttonBackground()
public static org.kde.qt.QColor buttonTextColor()
public static org.kde.qt.QColor baseColor()
QColorGroup.base()
public static org.kde.qt.QColor textColor()
QColorGroup.text()
public static org.kde.qt.QColor linkColor()
public static org.kde.qt.QColor visitedLinkColor()
public static org.kde.qt.QColor highlightedTextColor()
org.kde.qt.QColorGroup#hightlightedText
public static org.kde.qt.QColor highlightColor()
org.kde.qt.QColorGroup#hightlight
public static org.kde.qt.QColor alternateBackgroundColor()
calculateAlternateBackgroundColor(org.kde.qt.QColor)
public static org.kde.qt.QColor calculateAlternateBackgroundColor(org.kde.qt.QColor base)
base
to be used as alternating
color for e.g. listviews.
base
- the base for the calculation
alternateBackgroundColor()
public static boolean shadeSortColumn()
public static org.kde.qt.QFont generalFont()
public static org.kde.qt.QFont fixedFont()
public static org.kde.qt.QFont toolBarFont()
public static org.kde.qt.QFont menuFont()
public static org.kde.qt.QFont windowTitleFont()
public static org.kde.qt.QFont taskbarFont()
public static org.kde.qt.QFont largeFont(java.lang.String text)
text.
text
- the text to test
public static org.kde.qt.QFont largeFont()
public static boolean isMultiHead()
public static boolean wheelMouseZooms()
public static org.kde.qt.QRect splashScreenDesktopGeometry()
public static org.kde.qt.QRect desktopGeometry(org.kde.qt.QPoint point)
point
- a reference point for the widget, for instance one that the
widget should be adjacent or on top of.
public static org.kde.qt.QRect desktopGeometry(org.kde.qt.QWidget w)
w
- the widget in question. This is used to determine which screen
to use in Xinerama or multi-head mode.
public static boolean showIconsOnPushButtons()
public static boolean showFilePreview(KURL arg1)
public static boolean opaqueResize()
public static int buttonLayout()
KDialogBase#setButtonStyle
protected void finalize() throws java.lang.InternalError
finalize
in class java.lang.Object
java.lang.InternalError
public void dispose()
public boolean isDisposed()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |