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 };
240 static TQString
trashPath() { initPaths();
return *s_trashPath; }
248 static TQString
desktopPath() { initPaths();
return *s_desktopPath; }
254 static TQString
documentPath() { initPaths();
return *s_documentPath; }
260 static TQString
downloadPath() { initPaths();
return *s_downloadPath; }
266 static TQString
musicPath() { initPaths();
return *s_musicPath; }
272 static TQString
picturesPath() { initPaths();
return *s_picturesPath; }
290 static TQString
videosPath() { initPaths();
return *s_videosPath; }
296 static TQColor toolBarHighlightColor();
302 static TQColor inactiveTitleColor();
308 static TQColor inactiveTextColor();
314 static TQColor activeTitleColor();
320 static TQColor activeTextColor();
327 static int contrast();
334 static TQColor buttonBackground();
341 static TQColor buttonTextColor();
348 static TQColor baseColor();
355 static TQColor textColor();
361 static TQColor linkColor();
367 static TQColor visitedLinkColor();
374 static TQColor highlightedTextColor();
381 static TQColor highlightColor();
391 static TQColor alternateBackgroundColor();
400 static TQColor calculateAlternateBackgroundColor(
const TQColor& base);
408 static bool shadeSortColumn();
414 static TQFont generalFont();
420 static TQFont fixedFont();
426 static TQFont toolBarFont();
432 static TQFont menuFont();
438 static TQFont windowTitleFont();
444 static TQFont taskbarFont();
452 static TQFont largeFont(
const TQString &text = TQString::null);
461 static bool isMultiHead();
475 static bool wheelMouseZooms();
487 static TQRect splashScreenDesktopGeometry();
505 static TQRect desktopGeometry(
const TQPoint& point);
520 static TQRect desktopGeometry(TQWidget* w);
530 static bool showIconsOnPushButtons();
540 static bool showFilePreview(
const KURL &);
550 static bool showKonqIconActivationEffect();
560 static bool opaqueResize();
569 static int buttonLayout();
577 static void initStatic();
581 static void initPaths();
585 static void initColors();
589 static void rereadFontSettings();
593 static void rereadPathSettings();
597 static void rereadMouseSettings();
600 static TQString *s_desktopPath;
601 static TQString *s_autostartPath;
602 static TQString *s_trashPath;
603 static TQString *s_documentPath;
604 static TQString *s_picturesPath;
605 static TQString *s_templatesPath;
606 static TQString *s_publicSharePath;
607 static TQString *s_downloadPath;
608 static TQString *s_musicPath;
609 static TQString *s_videosPath;
610 static TQFont *_generalFont;
611 static TQFont *_fixedFont;
612 static TQFont *_toolBarFont;
613 static TQFont *_menuFont;
614 static TQFont *_windowTitleFont;
615 static TQFont *_taskbarFont;
616 static TQFont *_largeFont;
617 static TQColor *_trinity4Blue;
618 static TQColor *_inactiveBackground;
619 static TQColor *_inactiveForeground;
620 static TQColor *_activeBackground;
621 static TQColor *_buttonBackground;
622 static TQColor *_selectBackground;
623 static TQColor *_linkColor;
624 static TQColor *_visitedLinkColor;
625 static TQColor *alternateColor;
626 static KMouseSettings *s_mouseSettings;