18 #ifndef _TDEGLOBALSETTINGS_H 19 #define _TDEGLOBALSETTINGS_H 24 #include "tdelibs_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();
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 ();
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; }
260 static TQString
videosPath() { initStatic();
return *s_videosPath; }
266 static TQString
musicPath() { initStatic();
return *s_musicPath; }
272 static TQString
downloadPath() { initStatic();
return *s_downloadPath; }
278 static TQString
picturesPath() { initStatic();
return *s_picturesPath; }
284 static TQColor toolBarHighlightColor();
290 static TQColor inactiveTitleColor();
296 static TQColor inactiveTextColor();
302 static TQColor activeTitleColor();
308 static TQColor activeTextColor();
315 static int contrast();
322 static TQColor buttonBackground();
329 static TQColor buttonTextColor();
336 static TQColor baseColor();
343 static TQColor textColor();
349 static TQColor linkColor();
355 static TQColor visitedLinkColor();
362 static TQColor highlightedTextColor();
369 static TQColor highlightColor();
379 static TQColor alternateBackgroundColor();
388 static TQColor calculateAlternateBackgroundColor(
const TQColor& base);
396 static bool shadeSortColumn();
402 static TQFont generalFont();
408 static TQFont fixedFont();
414 static TQFont toolBarFont();
420 static TQFont menuFont();
426 static TQFont windowTitleFont();
432 static TQFont taskbarFont();
440 static TQFont largeFont(
const TQString &text = TQString::null);
449 static bool isMultiHead();
463 static bool wheelMouseZooms();
475 static TQRect splashScreenDesktopGeometry();
493 static TQRect desktopGeometry(
const TQPoint& point);
508 static TQRect desktopGeometry(TQWidget* w);
518 static bool showIconsOnPushButtons();
528 static bool showFilePreview(
const KURL &);
538 static bool showKonqIconActivationEffect();
548 static bool opaqueResize();
557 static int buttonLayout();
563 static void initStatic();
567 static void initColors();
571 static void rereadFontSettings();
575 static void rereadPathSettings();
579 static void rereadMouseSettings();
582 static TQString* s_desktopPath;
583 static TQString* s_autostartPath;
584 static TQString* s_trashPath;
585 static TQString* s_documentPath;
586 static TQString* s_picturesPath;
587 static TQString* s_downloadPath;
588 static TQString* s_musicPath;
589 static TQString* s_videosPath;
590 static TQFont *_generalFont;
591 static TQFont *_fixedFont;
592 static TQFont *_toolBarFont;
593 static TQFont *_menuFont;
594 static TQFont *_windowTitleFont;
595 static TQFont *_taskbarFont;
596 static TQFont *_largeFont;
597 static TQColor * _trinity4Blue;
598 static TQColor * _inactiveBackground;
599 static TQColor * _inactiveForeground;
600 static TQColor * _activeBackground;
601 static TQColor * _buttonBackground;
602 static TQColor * _selectBackground;
603 static TQColor * _linkColor;
604 static TQColor * _visitedLinkColor;
605 static TQColor * alternateColor;
Represents and parses a URL.
TearOffHandle
This enum describes the return type for insertTearOffHandle() whether to insert a handle or not...
static TQString downloadPath()
The path where documents are stored of the current user.
Completion
This enum describes the completion mode used for by the TDECompletion class.
static TQString trashPath()
DEPRECATED (starting from kde-3.4).
Lists all possible matches in a popup list-box to choose from.
static TQString picturesPath()
The path where documents are stored of the current user.
Controls and provides information to all KDE applications.
static TQString videosPath()
The path where documents are stored of the current user.
Access the KDE global configuration.
static TQString desktopPath()
The path to the desktop directory of the current user.
Describes the mouse settings.
Text is automatically filled in whenever possible.
Same as automatic except shortest match is used for completion.
static TQString autostartPath()
The path to the autostart directory of the current user.
static TQString musicPath()
The path where documents are stored of the current user.
Complete text much in the same way as a typical *nix shell would.
enable on application level
static TQString documentPath()
The path where documents are stored of the current user.