18 #ifndef _KGLOBALSETTINGS_H
19 #define _KGLOBALSETTINGS_H
24 #include "kdelibs_export.h"
26 #define KDE_DEFAULT_SINGLECLICK false
27 #define KDE_DEFAULT_ICONTEXTROUNDED true
28 #define KDE_DEFAULT_INSERTTEAROFFHANDLES 0
29 #define KDE_DEFAULT_AUTOSELECTDELAY -1
30 #define KDE_DEFAULT_CHANGECURSOR true
31 #define KDE_DEFAULT_LARGE_CURSOR false
32 #define KDE_DEFAULT_VISUAL_ACTIVATE true
33 #define KDE_DEFAULT_VISUAL_ACTIVATE_SPEED 50
34 #define KDE_DEFAULT_WHEEL_ZOOM false
35 #define KDE_DEFAULT_ICON_ON_PUSHBUTTON true
36 #define KDE_DEFAULT_OPAQUE_RESIZE true
37 #define KDE_DEFAULT_BUTTON_LAYOUT 0
38 #define KDE_DEFAULT_SHADE_SORT_COLUMN true
39 #define KDE_DEFAULT_KONQ_ACTIVATION_EFFECT true
95 static int dndEventDelay();
103 static bool singleClick();
109 static bool iconUseRoundedRect();
128 static TearOffHandle insertTearOffHandle();
134 static bool changeCursorOverIcon();
141 static bool visualActivate();
148 static unsigned int visualActivateSpeed();
155 static int autoSelectDelay();
163 static int contextMenuKey ();
171 static bool showContextMenusOnPress ();
211 static Completion completionMode();
218 enum { RightHanded = 0, LeftHanded = 1 };
233 static TQString
desktopPath() { initStatic();
return *s_desktopPath; }
246 static TQString
trashPath() { initStatic();
return *s_trashPath; }
254 static TQString
documentPath() { initStatic();
return *s_documentPath; }
261 static TQColor toolBarHighlightColor();
267 static TQColor inactiveTitleColor();
273 static TQColor inactiveTextColor();
279 static TQColor activeTitleColor();
285 static TQColor activeTextColor();
292 static int contrast();
299 static TQColor buttonBackground();
306 static TQColor buttonTextColor();
313 static TQColor baseColor();
320 static TQColor textColor();
326 static TQColor linkColor();
332 static TQColor visitedLinkColor();
339 static TQColor highlightedTextColor();
346 static TQColor highlightColor();
356 static TQColor alternateBackgroundColor();
365 static TQColor calculateAlternateBackgroundColor(
const TQColor& base);
373 static bool shadeSortColumn();
379 static TQFont generalFont();
385 static TQFont fixedFont();
391 static TQFont toolBarFont();
397 static TQFont menuFont();
403 static TQFont windowTitleFont();
409 static TQFont taskbarFont();
417 static TQFont largeFont(
const TQString &text = TQString::null);
426 static bool isMultiHead();
440 static bool wheelMouseZooms();
452 static TQRect splashScreenDesktopGeometry();
470 static TQRect desktopGeometry(
const TQPoint& point);
485 static TQRect desktopGeometry(TQWidget* w);
495 static bool showIconsOnPushButtons();
505 static bool showFilePreview(
const KURL &);
515 static bool showKonqIconActivationEffect();
525 static bool opaqueResize();
534 static int buttonLayout();
540 static void initStatic();
544 static void initColors();
548 static void rereadFontSettings();
552 static void rereadPathSettings();
556 static void rereadMouseSettings();
559 static TQString* s_desktopPath;
560 static TQString* s_autostartPath;
561 static TQString* s_trashPath;
562 static TQString* s_documentPath;
563 static TQFont *_generalFont;
564 static TQFont *_fixedFont;
565 static TQFont *_toolBarFont;
566 static TQFont *_menuFont;
567 static TQFont *_windowTitleFont;
568 static TQFont *_taskbarFont;
569 static TQFont *_largeFont;
570 static TQColor * _trinity4Blue;
571 static TQColor * _inactiveBackground;
572 static TQColor * _inactiveForeground;
573 static TQColor * _activeBackground;
574 static TQColor * _buttonBackground;
575 static TQColor * _selectBackground;
576 static TQColor * _linkColor;
577 static TQColor * _visitedLinkColor;
578 static TQColor * alternateColor;
579 static KMouseSettings *s_mouseSettings;