• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kdecore
 

kdecore

  • kdecore
kglobalsettings.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 2000 David Faure <faure@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 #ifndef _KGLOBALSETTINGS_H
19 #define _KGLOBALSETTINGS_H
20 
21 #include <tqstring.h>
22 #include <tqcolor.h>
23 #include <tqfont.h>
24 #include "kdelibs_export.h"
25 
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
40 
41 class KURL;
42 
48 class KDECORE_EXPORT KGlobalSettings
49 {
50  public:
51 
95  static int dndEventDelay();
96 
103  static bool singleClick();
104 
109  static bool iconUseRoundedRect();
110 
117  enum TearOffHandle {
118  Disable = 0,
119  ApplicationLevel,
120  Enable
121  };
122 
128  static TearOffHandle insertTearOffHandle();
129 
134  static bool changeCursorOverIcon();
135 
141  static bool visualActivate();
142 
148  static unsigned int visualActivateSpeed();
149 
155  static int autoSelectDelay();
156 
163  static int contextMenuKey ();
164 
171  static bool showContextMenusOnPress ();
172 
178  enum Completion {
182  CompletionNone=1,
186  CompletionAuto,
190  CompletionMan,
194  CompletionShell,
198  CompletionPopup,
203  CompletionPopupAuto
204  };
205 
211  static Completion completionMode();
212 
216  struct KMouseSettings
217  {
218  enum { RightHanded = 0, LeftHanded = 1 };
219  int handed; // left or right
220  };
221 
227  static KMouseSettings & mouseSettings();
228 
233  static TQString desktopPath() { initStatic(); return *s_desktopPath; }
234 
239  static TQString autostartPath() { initStatic(); return *s_autostartPath; }
240 
246  static TQString trashPath() { initStatic(); return *s_trashPath; }
247  // KDE4: if you want to remove the above, move it to kdesktop/init.cc, which needs
248  // to know the old location of the trash
249 
254  static TQString documentPath() { initStatic(); return *s_documentPath; }
255 
256 
261  static TQColor toolBarHighlightColor();
262 
267  static TQColor inactiveTitleColor();
268 
273  static TQColor inactiveTextColor();
274 
279  static TQColor activeTitleColor();
280 
285  static TQColor activeTextColor();
286 
292  static int contrast();
293 
299  static TQColor buttonBackground();
300 
306  static TQColor buttonTextColor();
307 
313  static TQColor baseColor();
314 
320  static TQColor textColor();
321 
326  static TQColor linkColor();
327 
332  static TQColor visitedLinkColor();
333 
339  static TQColor highlightedTextColor();
340 
346  static TQColor highlightColor();
347 
356  static TQColor alternateBackgroundColor();
357 
365  static TQColor calculateAlternateBackgroundColor(const TQColor& base);
366 
373  static bool shadeSortColumn();
374 
379  static TQFont generalFont();
380 
385  static TQFont fixedFont();
386 
391  static TQFont toolBarFont();
392 
397  static TQFont menuFont();
398 
403  static TQFont windowTitleFont();
404 
409  static TQFont taskbarFont();
410 
417  static TQFont largeFont(const TQString &text = TQString::null);
418 
426  static bool isMultiHead();
427 
440  static bool wheelMouseZooms();
441 
452  static TQRect splashScreenDesktopGeometry();
453 
470  static TQRect desktopGeometry(const TQPoint& point);
471 
485  static TQRect desktopGeometry(TQWidget* w);
486 
495  static bool showIconsOnPushButtons();
496 
505  static bool showFilePreview(const KURL &);
506 
515  static bool showKonqIconActivationEffect();
516 
525  static bool opaqueResize();
526 
534  static int buttonLayout();
535 
536 private:
540  static void initStatic();
544  static void initColors();
548  static void rereadFontSettings();
552  static void rereadPathSettings();
556  static void rereadMouseSettings();
557 
558 
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;
580 
581  friend class KApplication;
582 };
583 
584 #endif

kdecore

Skip menu "kdecore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdecore

Skip menu "kdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdecore by doxygen 1.8.3.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |