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

tdecore

  • tdecore
tdeglobalsettings.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 _TDEGLOBALSETTINGS_H
19 #define _TDEGLOBALSETTINGS_H
20 
21 #include <tqstring.h>
22 #include <tqcolor.h>
23 #include <tqfont.h>
24 #include "tdelibs_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 TDECORE_EXPORT TDEGlobalSettings
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 
260  static TQString videosPath() { initStatic(); return *s_videosPath; }
261 
266  static TQString musicPath() { initStatic(); return *s_musicPath; }
267 
272  static TQString downloadPath() { initStatic(); return *s_downloadPath; }
273 
278  static TQString picturesPath() { initStatic(); return *s_picturesPath; }
279 
284  static TQColor toolBarHighlightColor();
285 
290  static TQColor inactiveTitleColor();
291 
296  static TQColor inactiveTextColor();
297 
302  static TQColor activeTitleColor();
303 
308  static TQColor activeTextColor();
309 
315  static int contrast();
316 
322  static TQColor buttonBackground();
323 
329  static TQColor buttonTextColor();
330 
336  static TQColor baseColor();
337 
343  static TQColor textColor();
344 
349  static TQColor linkColor();
350 
355  static TQColor visitedLinkColor();
356 
362  static TQColor highlightedTextColor();
363 
369  static TQColor highlightColor();
370 
379  static TQColor alternateBackgroundColor();
380 
388  static TQColor calculateAlternateBackgroundColor(const TQColor& base);
389 
396  static bool shadeSortColumn();
397 
402  static TQFont generalFont();
403 
408  static TQFont fixedFont();
409 
414  static TQFont toolBarFont();
415 
420  static TQFont menuFont();
421 
426  static TQFont windowTitleFont();
427 
432  static TQFont taskbarFont();
433 
440  static TQFont largeFont(const TQString &text = TQString::null);
441 
449  static bool isMultiHead();
450 
463  static bool wheelMouseZooms();
464 
475  static TQRect splashScreenDesktopGeometry();
476 
493  static TQRect desktopGeometry(const TQPoint& point);
494 
508  static TQRect desktopGeometry(TQWidget* w);
509 
518  static bool showIconsOnPushButtons();
519 
528  static bool showFilePreview(const KURL &);
529 
538  static bool showKonqIconActivationEffect();
539 
548  static bool opaqueResize();
549 
557  static int buttonLayout();
558 
559 private:
563  static void initStatic();
567  static void initColors();
571  static void rereadFontSettings();
575  static void rereadPathSettings();
579  static void rereadMouseSettings();
580 
581 
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;
606  static KMouseSettings *s_mouseSettings;
607 
608  friend class TDEApplication;
609 };
610 
611 #endif
KURL
Represents and parses a URL.
Definition: kurl.h:127
TDEGlobalSettings::TearOffHandle
TearOffHandle
This enum describes the return type for insertTearOffHandle() whether to insert a handle or not...
Definition: tdeglobalsettings.h:117
TDEGlobalSettings::downloadPath
static TQString downloadPath()
The path where documents are stored of the current user.
Definition: tdeglobalsettings.h:272
TDEGlobalSettings::Completion
Completion
This enum describes the completion mode used for by the TDECompletion class.
Definition: tdeglobalsettings.h:178
TDEGlobalSettings::trashPath
static TQString trashPath()
DEPRECATED (starting from kde-3.4).
Definition: tdeglobalsettings.h:246
TDEGlobalSettings::CompletionPopup
Lists all possible matches in a popup list-box to choose from.
Definition: tdeglobalsettings.h:198
TDEGlobalSettings::picturesPath
static TQString picturesPath()
The path where documents are stored of the current user.
Definition: tdeglobalsettings.h:278
TDEApplication
Controls and provides information to all KDE applications.
Definition: tdeapplication.h:96
TDEGlobalSettings::videosPath
static TQString videosPath()
The path where documents are stored of the current user.
Definition: tdeglobalsettings.h:260
TDEGlobalSettings
Access the KDE global configuration.
Definition: tdeglobalsettings.h:48
TDEGlobalSettings::desktopPath
static TQString desktopPath()
The path to the desktop directory of the current user.
Definition: tdeglobalsettings.h:233
TDEGlobalSettings::KMouseSettings
Describes the mouse settings.
Definition: tdeglobalsettings.h:216
TDEGlobalSettings::CompletionAuto
Text is automatically filled in whenever possible.
Definition: tdeglobalsettings.h:186
TDEGlobalSettings::CompletionMan
Same as automatic except shortest match is used for completion.
Definition: tdeglobalsettings.h:190
TDEGlobalSettings::autostartPath
static TQString autostartPath()
The path to the autostart directory of the current user.
Definition: tdeglobalsettings.h:239
TDEGlobalSettings::musicPath
static TQString musicPath()
The path where documents are stored of the current user.
Definition: tdeglobalsettings.h:266
TDEGlobalSettings::CompletionShell
Complete text much in the same way as a typical *nix shell would.
Definition: tdeglobalsettings.h:194
TDEGlobalSettings::ApplicationLevel
enable on application level
Definition: tdeglobalsettings.h:119
TDEGlobalSettings::documentPath
static TQString documentPath()
The path where documents are stored of the current user.
Definition: tdeglobalsettings.h:254

tdecore

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

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.8.11
This website is maintained by Timothy Pearson.