KGlobalSettings Class Reference
Access the KDE global configuration. More...
#include <kglobalsettings.h>
Detailed Description
Access the KDE global configuration.
- Author:
- David Faure <faure@kde.org>
- Version:
- Id
- kglobalsettings.h,v 1.50 2003/10/14 19:02:00 waba Exp
Definition at line 44 of file kglobalsettings.h.
Member Enumeration Documentation
|
This enum describes the return type for insertTearOffHandle() wether 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.
Referenced by insertTearOffHandle(). |
|
This enum describes the completion mode used for by the KCompletion class. See the styleguide.
Referenced by completionMode(). |
Member Function Documentation
|
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(); } } }
References KGlobal::config(), and KConfigBase::readNumEntry(). |
|
Returns whether KDE runs in single (default) or double click mode. see http://developer.kde.org/documentation/standards/kde/style/mouse/index.html
References KGlobal::config(), and KConfigBase::readBoolEntry(). |
|
Returns whether tear-off handles are inserted in KPopupMenus.
References KGlobal::config(), Disable, KConfigBase::readBoolEntry(), KConfigBase::readNumEntry(), and TearOffHandle. |
|
Checks whether the cursor changes over icons.
References KGlobal::config(), and KConfigBase::readBoolEntry(). |
|
Checks whether to show feedback when in item (specifically an icon) is activated.
References KGlobal::config(), and KConfigBase::readBoolEntry(). Referenced by KIconEffect::visualActivate(). |
|
Returns the speed of the visual activation feedback.
References KGlobal::config(), and KConfigBase::readNumEntry(). Referenced by KIconEffect::visualActivate(). |
|
Returns the KDE setting for the auto-select option.
References KGlobal::config(), and KConfigBase::readNumEntry(). |
|
Returns the KDE setting for the shortcut key to open context menus.
References KConfigGroupSaver::config(), KGlobal::config(), and KConfigBase::readEntry(). |
|
Returns the KDE setting for context menus.
References KConfigGroupSaver::config(), KGlobal::config(), and KConfigBase::readBoolEntry(). |
|
Returns the preferred completion mode setting.
References Completion, CompletionNone, CompletionPopup, CompletionPopupAuto, KGlobal::config(), and KConfigBase::readNumEntry(). Referenced by KCompletion::KCompletion(), and KCompletionBase::KCompletionBase(). |
|
This returns the current mouse settings.
References KGlobal::config(), KGlobalSettings::KMouseSettings::handed, and KConfigBase::readEntry(). |
|
The path to the desktop directory of the current user.
|
|
The path to the autostart directory of the current user.
|
|
The path to the trash directory of the current user.
|
|
The path where documents are stored of the current user.
|
|
The default color to use when highlighting toolbar buttons.
References KGlobal::config(), and KConfigBase::readColorEntry(). |
|
The default color to use for inactive titles.
References KGlobal::config(), and KConfigBase::readColorEntry(). |
|
The default color to use for inactive texts.
References KGlobal::config(), and KConfigBase::readColorEntry(). |
|
The default color to use for active titles.
References KGlobal::config(), and KConfigBase::readColorEntry(). |
|
The default color to use for active texts.
References KGlobal::config(), and KConfigBase::readColorEntry(). |
|
Returns the contrast for borders.
References KGlobal::config(), and KConfigBase::readNumEntry(). |
|
Returns the default base (background) color.
References KGlobal::config(), and KConfigBase::readColorEntry(). Referenced by alternateBackgroundColor(). |
|
Returns the default text color.
References KGlobal::config(), and KConfigBase::readColorEntry(). |
|
Returns the default link color.
References KGlobal::config(), and KConfigBase::readColorEntry(). |
|
Returns the default color for visited links.
References KGlobal::config(), and KConfigBase::readColorEntry(). |
|
Returns the default color for highlighted text.
References KGlobal::config(), and KConfigBase::readColorEntry(). |
|
Returns the default color for text highlights.
References KGlobal::config(), and KConfigBase::readColorEntry(). |
|
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.
References baseColor(), calculateAlternateBackgroundColor(), KGlobal::config(), and KConfigBase::readColorEntry(). |
|
Calculates a color based on listviews.
References QColor::dark(), and QColor::light(). Referenced by alternateBackgroundColor(). |
|
Returns the default general font.
References KGlobal::config(), KConfigBase::readFontEntry(), QFont::setPointSize(), and QFont::setStyleHint(). Referenced by largeFont(). |
|
Returns the default fixed font.
References KGlobal::config(), KConfigBase::readFontEntry(), QFont::setPointSize(), and QFont::setStyleHint(). |
|
Returns the default toolbar font.
References KGlobal::config(), KConfigBase::readFontEntry(), QFont::setPointSize(), and QFont::setStyleHint(). |
|
Returns the default menu font.
References KGlobal::config(), KConfigBase::readFontEntry(), QFont::setPointSize(), and QFont::setStyleHint(). |
|
Returns the default window title font.
References KGlobal::config(), KConfigBase::readFontEntry(), QFont::setPointSize(), and QFont::setStyleHint(). |
|
Returns the default taskbar font.
References KGlobal::config(), KConfigBase::readFontEntry(), QFont::setPointSize(), and QFont::setStyleHint(). |
|
Returns a font of approx.
48 pt. capable of showing
References QFontDatabase::families(), QFont::family(), generalFont(), QFontMetrics::height(), QFontMetrics::inFont(), QFontDatabase::isFixedPitch(), QFontDatabase::isSmoothlyScalable(), QString::length(), QFont::setPixelSize(), and QFont::setPointSize(). |
|
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
References QCString::isEmpty(), and QCString::lower(). |
|
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.
References KGlobal::config(), and KConfigBase::readBoolEntry(). |
|
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).
References QApplication::desktop(), QDesktopWidget::isVirtualDesktop(), QDesktopWidget::screenGeometry(), and QDesktopWidget::screenNumber(). |
|
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.
References QApplication::desktop(), QDesktopWidget::isVirtualDesktop(), QDesktopWidget::screenGeometry(), and QDesktopWidget::screenNumber(). |
|
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).
References QApplication::desktop(), QDesktopWidget::isVirtualDesktop(), QDesktopWidget::screenGeometry(), and QDesktopWidget::screenNumber(). |
|
This function determines if the user wishes to see icons on the push buttons.
References KGlobal::config(), and KConfigBase::readBoolEntry(). |
|
This function determines if the user wishes to see previews for the selected url.
References KURL::protocol(), KConfigBase::readBoolEntry(), and KProtocolInfo::showFilePreview(). |
|
Whether the user wishes to use opaque resizing. Primarily intended for QSplitter::setOpaqueResize()
References KGlobal::config(), and KConfigBase::readBoolEntry(). |
The documentation for this class was generated from the following files: