KGlobalSettings Class Reference
#include <kglobalsettings.h>
Detailed Description
Access the KDE global configuration.
- Author:
- David Faure <faure@kde.org>
Definition at line 46 of file kglobalsettings.h.
Member Enumeration Documentation
|
This enum describes the completion mode used for by the KCompletion class. See the styleguide.
Definition at line 170 of file kglobalsettings.h. |
|
This enum describes the return type for insertTearOffHandle() whether to insert a handle or not. Applications who independently want to use handles in their popup menus should test for Application level before calling the appropriate function in KPopupMenu.
Definition at line 109 of file kglobalsettings.h. |
Member Function Documentation
|
The default color to use for active texts.
Definition at line 231 of file kglobalsettings.cpp. |
|
The default color to use for active titles.
Definition at line 218 of file kglobalsettings.cpp. |
|
Returns the alternate background color used by KListView with KListViewItem. Any other list that uses alternating background colors should use this too, to obey to the user's preferences. Returns an invalid color if the user doesn't want alternating backgrounds.
Definition at line 300 of file kglobalsettings.cpp. |
|
Returns the KDE setting for the auto-select option.
Definition at line 155 of file kglobalsettings.cpp. |
|
The path to the autostart directory of the current user.
Definition at line 231 of file kglobalsettings.h. |
|
Returns the default base (background) color.
Definition at line 264 of file kglobalsettings.cpp. |
|
Returns the button background color.
Definition at line 247 of file kglobalsettings.cpp. |
|
The layout scheme to use for dialog buttons.
Definition at line 746 of file kglobalsettings.cpp. |
|
Returns the button text color.
Definition at line 255 of file kglobalsettings.cpp. |
|
Calculates a color based on listviews.
Definition at line 308 of file kglobalsettings.cpp. |
|
Checks whether the cursor changes over icons.
Definition at line 131 of file kglobalsettings.cpp. |
|
Returns the preferred completion mode setting.
Definition at line 161 of file kglobalsettings.cpp. |
|
Returns the KDE setting for the shortcut key to open context menus.
Definition at line 180 of file kglobalsettings.cpp. |
|
Returns the contrast for borders.
Definition at line 241 of file kglobalsettings.cpp. |
|
This function returns the desktop geometry for an application that needs to set the geometry of a widget on the screen manually. It takes into account the user's display settings (number of screens, Xinerama, etc), and the user's preferences (if KDE should be Xinerama aware).
Definition at line 705 of file kglobalsettings.cpp. |
|
This function returns the desktop geometry for an application that needs to set the geometry of a widget on the screen manually. It takes into account the user's display settings (number of screens, Xinerama, etc), and the user's preferences (if KDE should be Xinerama aware). Note that this can break in multi-head (not Xinerama) mode because this point could be on multiple screens. Use with care.
Definition at line 688 of file kglobalsettings.cpp. |
|
The path to the desktop directory of the current user.
Definition at line 225 of file kglobalsettings.h. |
|
Returns a threshold in pixels for drag & drop operations. As long as the mouse movement has not exceeded this number of pixels in either X or Y direction no drag operation may be started. This prevents spurious drags when the user intended to click on something but moved the mouse a bit while doing so. For this to work you must save the position of the mouse (oldPos) in the QWidget::mousePressEvent(). When the position of the mouse (newPos) in a QWidget::mouseMoveEvent() exceeds this threshold you may start a drag which should originate from oldPos. Example code: 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(); } } }
Definition at line 109 of file kglobalsettings.cpp. |
|
The path where documents are stored of the current user.
Definition at line 246 of file kglobalsettings.h. |
|
Returns the default fixed font.
Definition at line 364 of file kglobalsettings.cpp. |
|
Returns the default general font.
Definition at line 348 of file kglobalsettings.cpp. |
|
Returns the default color for text highlights.
Definition at line 291 of file kglobalsettings.cpp. |
|
Returns the default color for highlighted text.
Definition at line 282 of file kglobalsettings.cpp. |
|
The default color to use for inactive texts.
Definition at line 206 of file kglobalsettings.cpp. |
|
The default color to use for inactive titles.
Definition at line 194 of file kglobalsettings.cpp. |
|
Returns whether tear-off handles are inserted in KPopupMenus.
Definition at line 121 of file kglobalsettings.cpp. |
|
Returns if the user specified multihead. In case the display has multiple screens, the return value of this function specifies if the user wants KDE to run on all of them or just on the primary On Windows, settings are retrieved from the system.
Definition at line 650 of file kglobalsettings.cpp. |
|
Returns a font of approx.
48 pt. capable of showing
Definition at line 445 of file kglobalsettings.cpp. |
|
Returns the default link color.
Definition at line 331 of file kglobalsettings.cpp. |
|
Returns the default menu font.
Definition at line 396 of file kglobalsettings.cpp. |
|
This returns the current mouse settings. On Windows, settings are retrieved from the system.
Definition at line 592 of file kglobalsettings.cpp. |
|
Whether the user wishes to use opaque resizing. Primarily intended for QSplitter::setOpaqueResize()
Definition at line 739 of file kglobalsettings.cpp. |
|
Returns if the sorted column in a KListView shall be drawn with a shaded background color.
Definition at line 325 of file kglobalsettings.cpp. |
|
Returns the KDE setting for context menus.
Definition at line 174 of file kglobalsettings.cpp. |
|
This function determines if the user wishes to see previews for the selected url.
Definition at line 731 of file kglobalsettings.cpp. |
|
This function determines if the user wishes to see icons on the push buttons.
Definition at line 724 of file kglobalsettings.cpp. |
|
Returns whether KDE runs in single (default) or double click mode. see http://developer.kde.org/documentation/standards/kde/style/mouse/index.html
Definition at line 115 of file kglobalsettings.cpp. |
|
This function returns the desktop geometry for an application's splash screen. It takes into account the user's display settings (number of screens, Xinerama, etc), and the user's preferences (if KDE should be Xinerama aware).
Definition at line 669 of file kglobalsettings.cpp. |
|
Returns the default taskbar font.
Definition at line 428 of file kglobalsettings.cpp. |
|
Returns the default text color.
Definition at line 273 of file kglobalsettings.cpp. |
|
Returns the default toolbar font.
Definition at line 380 of file kglobalsettings.cpp. |
|
The default color to use when highlighting toolbar buttons.
Definition at line 187 of file kglobalsettings.cpp. |
|
DEPRECATED (starting from kde-3.4). This isn't where the trash contents is, anymore. Use KIO::trash() to trash files, "trash:/" to list the trash contents. Definition at line 238 of file kglobalsettings.h. |
|
Returns the default color for visited links.
Definition at line 340 of file kglobalsettings.cpp. |
|
Checks whether to show feedback when in item (specifically an icon) is activated.
Definition at line 137 of file kglobalsettings.cpp. |
|
Returns the speed of the visual activation feedback.
Definition at line 143 of file kglobalsettings.cpp. |
|
Typically, QScrollView derived classes can be scrolled fast by holding down the Ctrl-button during wheel-scrolling. But QTextEdit and derived classes perform zooming instead of fast scrolling. This value determines whether the user wants to zoom or scroll fast with Ctrl-wheelscroll.
Definition at line 663 of file kglobalsettings.cpp. |
|
Returns the default window title font.
Definition at line 412 of file kglobalsettings.cpp. |
The documentation for this class was generated from the following files: