18#ifndef _KGLOBALSETTINGS_H
19#define _KGLOBALSETTINGS_H
23#include <QtCore/QObject>
24#include <QtCore/QString>
25#include <QtGui/QPalette>
27#define KDE_DEFAULT_SINGLECLICK true
28#define KDE_DEFAULT_SMOOTHSCROLL true
29#define KDE_DEFAULT_INSERTTEAROFFHANDLES 0
30#define KDE_DEFAULT_AUTOSELECTDELAY -1
31#define KDE_DEFAULT_CHANGECURSOR true
32#define KDE_DEFAULT_LARGE_CURSOR false
33#define KDE_DEFAULT_WHEEL_ZOOM false
35#define KDE_DEFAULT_ICON_ON_PUSHBUTTON false
37#define KDE_DEFAULT_ICON_ON_PUSHBUTTON true
39#define KDE_DEFAULT_OPAQUE_RESIZE true
40#define KDE_DEFAULT_BUTTON_LAYOUT 0
41#define KDE_DEFAULT_SHADE_SORT_COLUMN true
42#define KDE_DEFAULT_ALLOW_DEFAULT_BACKGROUND_IMAGES true
43#define KDE_DEFAULT_NATURAL_SORTING true
108 static int dndEventDelay();
116 static bool singleClick();
123 static bool smoothScroll();
140 static TearOffHandle insertTearOffHandle();
146 static bool changeCursorOverIcon();
153 static int autoSelectDelay();
162#ifndef KDE_NO_DEPRECATED
163 static KDE_DEPRECATED
int contextMenuKey ();
172 static bool showContextMenusOnPress ();
212 static Completion completionMode();
219 enum { RightHanded = 0, LeftHanded = 1 };
234 static QString desktopPath();
240 static QString autostartPath();
246 static QString documentPath();
252 static QString musicPath();
258 static QString videosPath();
264 static QString downloadPath();
270 static QString picturesPath();
276 static QColor inactiveTitleColor();
282 static QColor inactiveTextColor();
288 static QColor activeTitleColor();
294 static QColor activeTextColor();
301 static int contrast();
317 static bool shadeSortColumn();
325 static bool allowDefaultBackgroundImages();
331 static QFont generalFont();
337 static QFont fixedFont();
343 static QFont toolBarFont();
349 static QFont menuFont();
355 static QFont windowTitleFont();
361 static QFont taskbarFont();
368 static QFont largeFont(
const QString &text = QString());
374 static QFont smallestReadableFont();
383 static bool isMultiHead();
396 static bool wheelMouseZooms();
407 static QRect splashScreenDesktopGeometry();
424 static QRect desktopGeometry(
const QPoint& point);
438 static QRect desktopGeometry(
const QWidget* w);
446 static bool showIconsOnPushButtons();
462 static bool naturalSorting();
466 GradientEffects = 0x0001,
467 SimpleAnimationEffects = 0x0002,
468 ComplexAnimationEffects = 0x0006
472 Q_DECLARE_FLAGS(GraphicEffects, GraphicEffect)
479 static GraphicEffects graphicEffectsLevel();
487 static GraphicEffects graphicEffectsLevelDefault();
495 static bool showFilePreview(
const KUrl &);
503 static bool opaqueResize();
510 static int buttonLayout();
543 enum ChangeType { PaletteChanged = 0, FontChanged, StyleChanged,
554 static void emitChange(ChangeType changeType,
int arg = 0);
569 ListenForChanges = 0x2
571 Q_DECLARE_FLAGS(ActivateOptions, ActivateOption)
588 void activate(ActivateOptions options);
687 Q_PRIVATE_SLOT(d,
void _k_slotNotifyChange(
int,
int))
690Q_DECLARE_OPERATORS_FOR_FLAGS(KGlobalSettings::GraphicEffects)
691Q_DECLARE_OPERATORS_FOR_FLAGS(KGlobalSettings::ActivateOptions)
Controls and provides information to all KDE applications.
Access the KDE global configuration.
void blockShortcuts(int data)
Emitted by BlockShortcuts.
ChangeType
An identifier for change signals.
ActivateOption
Specifies options passed to activate().
void naturalSortingChanged()
Emitted when the natural sorting has been changed.
void kdisplayPaletteChanged()
Emitted when the application has changed its palette due to a KControl request.
void kdisplayStyleChanged()
Emitted when the application has changed its GUI style in response to a KControl request.
void appearanceChanged()
Emitted when the application has changed either its GUI style, its font or its palette in response to...
Completion
This enum describes the completion mode used for by the KCompletion class.
@ CompletionPopup
Lists all possible matches in a popup list-box to choose from.
@ CompletionShell
Complete text much in the same way as a typical *nix shell would.
@ CompletionMan
Same as automatic except shortest match is used for completion.
@ CompletionAuto
Text is automatically filled in whenever possible.
void kdisplayFontChanged()
Emitted when the application has changed its font in response to a KControl request.
void iconChanged(int group)
Emitted when the global icon settings have been changed.
void toolbarAppearanceChanged(int)
Emitted when the settings for toolbars have been changed.
void cursorChanged()
Emitted when the cursor theme has been changed.
TearOffHandle
This enum describes the return type for insertTearOffHandle() whether to insert a handle or not.
@ ApplicationLevel
enable on application level
void settingsChanged(int category)
Emitted when the global settings have been changed.
SettingsCategory
Valid values for the settingsChanged signal.
Describes the mouse settings.