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();
546 BlockShortcuts, NaturalSortingChanged };
554 static void emitChange(ChangeType changeType,
int arg = 0);
569 ListenForChanges = 0x2
571 Q_DECLARE_FLAGS(ActivateOptions, ActivateOption)
588 void activate(ActivateOptions options);
595 SETTINGS_LOCALE, SETTINGS_STYLE };
608 void kdisplayPaletteChanged();
621 void kdisplayStyleChanged();
634 void kdisplayFontChanged();
642 void appearanceChanged();
647 void toolbarAppearanceChanged(
int);
655 void settingsChanged(
int category);
661 void iconChanged(
int group);
666 void cursorChanged();
671 void blockShortcuts(
int data);
677 void naturalSortingChanged();
687 Q_PRIVATE_SLOT(d,
void _k_slotNotifyChange(
int,
int))
690 Q_DECLARE_OPERATORS_FOR_FLAGS(KGlobalSettings::GraphicEffects)
691 Q_DECLARE_OPERATORS_FOR_FLAGS(KGlobalSettings::ActivateOptions)
Controls and provides information to all KDE applications.
enable on application level
ChangeType
An identifier for change signals.
Describes the mouse settings.
Text is automatically filled in whenever possible.
TearOffHandle
This enum describes the return type for insertTearOffHandle() whether to insert a handle or not.
SettingsCategory
Valid values for the settingsChanged signal.
Access the KDE global configuration.
Lists all possible matches in a popup list-box to choose from.
Same as automatic except shortest match is used for completion.
Completion
This enum describes the completion mode used for by the KCompletion class.
ActivateOption
Specifies options passed to activate().
Complete text much in the same way as a typical *nix shell would.