\section{KGlobal\-Settings Class Reference}
\label{classKGlobalSettings}\index{KGlobalSettings@{KGlobalSettings}}
Access the {\bf KDE}{\rm (p.\,\pageref{namespaceKDE})} global configuration.  


{\tt \#include $<$kglobalsettings.h$>$}

Collaboration diagram for KGlobal\-Settings:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=279pt]{classKGlobalSettings__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{CompactItemize}
\item 
enum {\bf Tear\-Off\-Handle} \{ {\bf Disable} =  0, 
{\bf Application\-Level}, 
{\bf Enable}
 \}
\begin{CompactList}\small\item\em This enum describes the return type for {\bf insert\-Tear\-Off\-Handle()}{\rm (p.\,\pageref{classKGlobalSettings_e2})} wether to insert a handle or not. \item\end{CompactList}\item 
enum {\bf Completion} \{ \par
{\bf Completion\-None} = 1, 
{\bf Completion\-Auto}, 
{\bf Completion\-Man}, 
{\bf Completion\-Shell}, 
\par
{\bf Completion\-Popup}, 
{\bf Completion\-Popup\-Auto}
 \}
\begin{CompactList}\small\item\em This enum describes the completion mode used for by the {\bf KCompletion}{\rm (p.\,\pageref{classKCompletion})} class. \item\end{CompactList}\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
int {\bf dnd\-Event\-Delay} ()
\begin{CompactList}\small\item\em Returns a threshold in pixels for drag \& drop operations. \item\end{CompactList}\item 
bool {\bf single\-Click} ()
\begin{CompactList}\small\item\em Returns whether {\bf KDE}{\rm (p.\,\pageref{namespaceKDE})} runs in single (default) or double click mode. \item\end{CompactList}\item 
{\bf Tear\-Off\-Handle} {\bf insert\-Tear\-Off\-Handle} ()
\begin{CompactList}\small\item\em Returns whether tear-off handles are inserted in KPopup\-Menus. \item\end{CompactList}\item 
bool {\bf change\-Cursor\-Over\-Icon} ()
\begin{CompactList}\small\item\em Checks whether the cursor changes over icons. \item\end{CompactList}\item 
bool {\bf visual\-Activate} ()
\begin{CompactList}\small\item\em Checks whether to show feedback when in item (specifically an icon) is activated. \item\end{CompactList}\item 
unsigned int {\bf visual\-Activate\-Speed} ()
\begin{CompactList}\small\item\em Returns the speed of the visual activation feedback. \item\end{CompactList}\item 
int {\bf auto\-Select\-Delay} ()
\begin{CompactList}\small\item\em Returns the {\bf KDE}{\rm (p.\,\pageref{namespaceKDE})} setting for the auto-select option. \item\end{CompactList}\item 
int {\bf context\-Menu\-Key} ()
\begin{CompactList}\small\item\em Returns the {\bf KDE}{\rm (p.\,\pageref{namespaceKDE})} setting for the shortcut key to open context menus. \item\end{CompactList}\item 
bool {\bf show\-Context\-Menus\-On\-Press} ()
\begin{CompactList}\small\item\em Returns the {\bf KDE}{\rm (p.\,\pageref{namespaceKDE})} setting for context menus. \item\end{CompactList}\item 
{\bf Completion} {\bf completion\-Mode} ()
\begin{CompactList}\small\item\em Returns the preferred completion mode setting. \item\end{CompactList}\item 
{\bf KMouse\-Settings} \& {\bf mouse\-Settings} ()
\begin{CompactList}\small\item\em This returns the current mouse settings. \item\end{CompactList}\item 
{\bf QString} {\bf desktop\-Path} ()
\begin{CompactList}\small\item\em The path to the desktop directory of the current user. \item\end{CompactList}\item 
{\bf QString} {\bf autostart\-Path} ()
\begin{CompactList}\small\item\em The path to the autostart directory of the current user. \item\end{CompactList}\item 
{\bf QString} {\bf trash\-Path} ()
\begin{CompactList}\small\item\em The path to the trash directory of the current user. \item\end{CompactList}\item 
{\bf QString} {\bf document\-Path} ()
\begin{CompactList}\small\item\em The path where documents are stored of the current user. \item\end{CompactList}\item 
{\bf QColor} {\bf tool\-Bar\-Highlight\-Color} ()
\begin{CompactList}\small\item\em The default color to use when highlighting toolbar buttons. \item\end{CompactList}\item 
{\bf QColor} {\bf inactive\-Title\-Color} ()
\begin{CompactList}\small\item\em The default color to use for inactive titles. \item\end{CompactList}\item 
{\bf QColor} {\bf inactive\-Text\-Color} ()
\begin{CompactList}\small\item\em The default color to use for inactive texts. \item\end{CompactList}\item 
{\bf QColor} {\bf active\-Title\-Color} ()
\begin{CompactList}\small\item\em The default color to use for active titles. \item\end{CompactList}\item 
{\bf QColor} {\bf active\-Text\-Color} ()
\begin{CompactList}\small\item\em The default color to use for active texts. \item\end{CompactList}\item 
int {\bf contrast} ()
\begin{CompactList}\small\item\em Returns the contrast for borders. \item\end{CompactList}\item 
{\bf QColor} {\bf base\-Color} ()
\begin{CompactList}\small\item\em Returns the default base (background) color. \item\end{CompactList}\item 
{\bf QColor} {\bf text\-Color} ()
\begin{CompactList}\small\item\em Returns the default text color. \item\end{CompactList}\item 
{\bf QColor} {\bf link\-Color} ()
\begin{CompactList}\small\item\em Returns the default link color. \item\end{CompactList}\item 
{\bf QColor} {\bf visited\-Link\-Color} ()
\begin{CompactList}\small\item\em Returns the default color for visited links. \item\end{CompactList}\item 
{\bf QColor} {\bf highlighted\-Text\-Color} ()
\begin{CompactList}\small\item\em Returns the default color for highlighted text. \item\end{CompactList}\item 
{\bf QColor} {\bf highlight\-Color} ()
\begin{CompactList}\small\item\em Returns the default color for text highlights. \item\end{CompactList}\item 
{\bf QColor} {\bf alternate\-Background\-Color} ()
\begin{CompactList}\small\item\em Returns the alternate background color used by {\bf KList\-View} with {\bf KList\-View\-Item}. \item\end{CompactList}\item 
{\bf QColor} {\bf calculate\-Alternate\-Background\-Color} (const  {\bf QColor} \&base)
\begin{CompactList}\small\item\em Calculates a color based on {\tt base} to be used as alternating color for e.g. \item\end{CompactList}\item 
{\bf QFont} {\bf general\-Font} ()
\begin{CompactList}\small\item\em Returns the default general font. \item\end{CompactList}\item 
{\bf QFont} {\bf fixed\-Font} ()
\begin{CompactList}\small\item\em Returns the default fixed font. \item\end{CompactList}\item 
{\bf QFont} {\bf tool\-Bar\-Font} ()
\begin{CompactList}\small\item\em Returns the default toolbar font. \item\end{CompactList}\item 
{\bf QFont} {\bf menu\-Font} ()
\begin{CompactList}\small\item\em Returns the default menu font. \item\end{CompactList}\item 
{\bf QFont} {\bf window\-Title\-Font} ()
\begin{CompactList}\small\item\em Returns the default window title font. \item\end{CompactList}\item 
{\bf QFont} {\bf taskbar\-Font} ()
\begin{CompactList}\small\item\em Returns the default taskbar font. \item\end{CompactList}\item 
{\bf QFont} {\bf large\-Font} (const  {\bf QString} \&text=QString::null)
\begin{CompactList}\small\item\em Returns a font of approx. \item\end{CompactList}\item 
bool {\bf is\-Multi\-Head} ()
\begin{CompactList}\small\item\em Returns if the user specified multihead. \item\end{CompactList}\item 
bool {\bf wheel\-Mouse\-Zooms} ()
\begin{CompactList}\small\item\em Typically, {\bf QScroll\-View} derived classes can be scrolled fast by holding down the Ctrl-button during wheel-scrolling. \item\end{CompactList}\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf KApplication}\label{classKGlobalSettings_n0}

\end{CompactItemize}


\subsection{Detailed Description}
Access the {\bf KDE}{\rm (p.\,\pageref{namespaceKDE})} global configuration. 

\begin{Desc}
\item[Author:]David Faure $<${\tt faure@kde.org}$>$ \end{Desc}
\begin{Desc}
\item[Version:]\begin{Desc}
\item[Id]{\bf kglobalsettings.h}{\rm (p.\,\pageref{kglobalsettings_8h})},v 1.42 2002/09/28 12:28:47 tjansen Exp \end{Desc}
\end{Desc}




Definition at line 40 of file kglobalsettings.h.

\subsection{Member Enumeration Documentation}
\index{KGlobalSettings@{KGlobal\-Settings}!TearOffHandle@{TearOffHandle}}
\index{TearOffHandle@{TearOffHandle}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf KGlobal\-Settings::Tear\-Off\-Handle}}\label{classKGlobalSettings_w9}


This enum describes the return type for {\bf insert\-Tear\-Off\-Handle()}{\rm (p.\,\pageref{classKGlobalSettings_e2})} wether to insert a handle or not. 

Applications who independently want to use handles in their popup menus should test for Application level before calling the appropriate function in {\bf KPopup\-Menu}. \begin{Desc}
\item[Since:]3,1 \end{Desc}
\begin{Desc}
\item[Enumeration values: ]\par
\begin{description}
\index{Disable@{Disable}!KGlobalSettings@{KGlobalSettings}}\index{KGlobalSettings@{KGlobalSettings}!Disable@{Disable}}\item[{\em 
Disable\label{classKGlobalSettings_w9w0}
}]disable tear-off handles \index{ApplicationLevel@{ApplicationLevel}!KGlobalSettings@{KGlobalSettings}}\index{KGlobalSettings@{KGlobalSettings}!ApplicationLevel@{ApplicationLevel}}\item[{\em 
Application\-Level\label{classKGlobalSettings_w9w1}
}]enable on application level \index{Enable@{Enable}!KGlobalSettings@{KGlobalSettings}}\index{KGlobalSettings@{KGlobalSettings}!Enable@{Enable}}\item[{\em 
Enable\label{classKGlobalSettings_w9w2}
}]enable tear-off handles \end{description}
\end{Desc}



Definition at line 103 of file kglobalsettings.h.

Referenced by insert\-Tear\-Off\-Handle().\index{KGlobalSettings@{KGlobal\-Settings}!Completion@{Completion}}
\index{Completion@{Completion}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf KGlobal\-Settings::Completion}}\label{classKGlobalSettings_w10}


This enum describes the completion mode used for by the {\bf KCompletion}{\rm (p.\,\pageref{classKCompletion})} class. 

See {\tt the styleguide}. \begin{Desc}
\item[Enumeration values: ]\par
\begin{description}
\index{CompletionNone@{CompletionNone}!KGlobalSettings@{KGlobalSettings}}\index{KGlobalSettings@{KGlobalSettings}!CompletionNone@{CompletionNone}}\item[{\em 
Completion\-None\label{classKGlobalSettings_w10w3}
}]No completion is used. \index{CompletionAuto@{CompletionAuto}!KGlobalSettings@{KGlobalSettings}}\index{KGlobalSettings@{KGlobalSettings}!CompletionAuto@{CompletionAuto}}\item[{\em 
Completion\-Auto\label{classKGlobalSettings_w10w4}
}]Text is automatically filled in whenever possible. \index{CompletionMan@{CompletionMan}!KGlobalSettings@{KGlobalSettings}}\index{KGlobalSettings@{KGlobalSettings}!CompletionMan@{CompletionMan}}\item[{\em 
Completion\-Man\label{classKGlobalSettings_w10w5}
}]Same as automatic except shortest match is used for completion. \index{CompletionShell@{CompletionShell}!KGlobalSettings@{KGlobalSettings}}\index{KGlobalSettings@{KGlobalSettings}!CompletionShell@{CompletionShell}}\item[{\em 
Completion\-Shell\label{classKGlobalSettings_w10w6}
}]Complete text much in the same way as a typical $\ast$nix shell would. \index{CompletionPopup@{CompletionPopup}!KGlobalSettings@{KGlobalSettings}}\index{KGlobalSettings@{KGlobalSettings}!CompletionPopup@{CompletionPopup}}\item[{\em 
Completion\-Popup\label{classKGlobalSettings_w10w7}
}]Lists all possible matches in a popup list-box to choose from. \index{CompletionPopupAuto@{CompletionPopupAuto}!KGlobalSettings@{KGlobalSettings}}\index{KGlobalSettings@{KGlobalSettings}!CompletionPopupAuto@{CompletionPopupAuto}}\item[{\em 
Completion\-Popup\-Auto\label{classKGlobalSettings_w10w8}
}]Lists all possible matches in a popup list-box to choose from, and automatically fill the result whenever possible. \end{description}
\end{Desc}



Definition at line 164 of file kglobalsettings.h.

Referenced by completion\-Mode(), KCompletion\-Base::completion\-Mode(), and KCompletion::completion\-Mode().

\subsection{Member Function Documentation}
\index{KGlobalSettings@{KGlobal\-Settings}!dndEventDelay@{dndEventDelay}}
\index{dndEventDelay@{dndEventDelay}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KGlobal\-Settings::dnd\-Event\-Delay ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e0}


Returns a threshold in pixels for drag \& drop operations. 

As long as the mouse movement has not exceeded this number of pixels in either X or Y direction no drag operation may be started. This prevents spurious drags when the user intended to click on something but moved the mouse a bit while doing so.

For this to work you must save the position of the mouse (old\-Pos) in the {\bf QWidget::mouse\-Press\-Event}(). When the position of the mouse (new\-Pos) in a {\bf QWidget::mouse\-Move\-Event}() exceeds this threshold you may start a drag which should originate from old\-Pos.

Example code: \small\begin{alltt}
 void {\bf KColorCells::mousePressEvent( QMouseEvent *e )}
 \{
    mOldPos = e-$>$pos();
 \}\end{alltt}\normalsize 


\small\begin{alltt} void {\bf KColorCells::mouseMoveEvent( QMouseEvent *e )}
 \{
    if( !(e-$>$state() \&\& LeftButton)) return;\end{alltt}\normalsize 


\small\begin{alltt}    int delay = {\bf KGlobalSettings::dndEventDelay()}{\rm (p.\,\pageref{classKGlobalSettings_e0})};
    {\bf QPoint} newPos = e-$>$pos();
    if(newPos.x() $>$ mOldPos.x()+delay || newPos.x() $<$ mOldPos.x()-delay ||
       newPos.y() $>$ mOldPos.y()+delay || newPos.y() $<$ mOldPos.y()-delay)
    \{
       // Drag color object
       int cell = posToCell(mOldPos); // Find color at mOldPos
       if ((cell != -1) \&\& colors[cell].isValid())
       \{
          {\bf KColorDrag} *d = {\bf KColorDrag::makeDrag}( colors[cell], this);
          d-$>$dragCopy();
       \}
    \}
 \}
 \end{alltt}\normalsize 
 \begin{Desc}
\item[Returns:]the threshold for drag \& drop in pixels \end{Desc}


Definition at line 62 of file kglobalsettings.cpp.

References KGlobal::config(), KConfig\-Base::read\-Num\-Entry(), and QApplication::start\-Drag\-Distance().\index{KGlobalSettings@{KGlobal\-Settings}!singleClick@{singleClick}}
\index{singleClick@{singleClick}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KGlobal\-Settings::single\-Click ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e1}


Returns whether {\bf KDE}{\rm (p.\,\pageref{namespaceKDE})} runs in single (default) or double click mode. 

see {\tt http://developer.kde.org/documentation/standards/kde/style/mouse/index.html} \begin{Desc}
\item[Returns:]true if single click mode, or false if double click mode. \end{Desc}


Definition at line 69 of file kglobalsettings.cpp.

References KGlobal::config(), and KConfig\-Base::read\-Bool\-Entry().\index{KGlobalSettings@{KGlobal\-Settings}!insertTearOffHandle@{insertTearOffHandle}}
\index{insertTearOffHandle@{insertTearOffHandle}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KGlobal\-Settings::Tear\-Off\-Handle} KGlobal\-Settings::insert\-Tear\-Off\-Handle ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e2}


Returns whether tear-off handles are inserted in KPopup\-Menus. 

\begin{Desc}
\item[Returns:]whether tear-off handles are inserted in KPopup\-Menus. \end{Desc}
\begin{Desc}
\item[Since:]3.1 \end{Desc}


Definition at line 76 of file kglobalsettings.cpp.

References KGlobal::config(), KConfig\-Base::read\-Num\-Entry(), and Tear\-Off\-Handle.\index{KGlobalSettings@{KGlobal\-Settings}!changeCursorOverIcon@{changeCursorOverIcon}}
\index{changeCursorOverIcon@{changeCursorOverIcon}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KGlobal\-Settings::change\-Cursor\-Over\-Icon ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e3}


Checks whether the cursor changes over icons. 

\begin{Desc}
\item[Returns:]the {\bf KDE}{\rm (p.\,\pageref{namespaceKDE})} setting for \char`\"{}change cursor over icon\char`\"{} \end{Desc}


Definition at line 85 of file kglobalsettings.cpp.

References KGlobal::config(), and KConfig\-Base::read\-Bool\-Entry().\index{KGlobalSettings@{KGlobal\-Settings}!visualActivate@{visualActivate}}
\index{visualActivate@{visualActivate}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KGlobal\-Settings::visual\-Activate ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e4}


Checks whether to show feedback when in item (specifically an icon) is activated. 

\begin{Desc}
\item[Returns:]whether to show some feedback when an item is activated. \end{Desc}


Definition at line 92 of file kglobalsettings.cpp.

References KGlobal::config(), and KConfig\-Base::read\-Bool\-Entry().

Referenced by KIcon\-Effect::visual\-Activate().\index{KGlobalSettings@{KGlobal\-Settings}!visualActivateSpeed@{visualActivateSpeed}}
\index{visualActivateSpeed@{visualActivateSpeed}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}unsigned int KGlobal\-Settings::visual\-Activate\-Speed ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e5}


Returns the speed of the visual activation feedback. 

\begin{Desc}
\item[Returns:]the speed of the visual activation feedback, between 0 for minimum and 100 for maximum speed \end{Desc}


Definition at line 99 of file kglobalsettings.cpp.

References KGlobal::config(), and KConfig\-Base::read\-Num\-Entry().

Referenced by KIcon\-Effect::visual\-Activate().\index{KGlobalSettings@{KGlobal\-Settings}!autoSelectDelay@{autoSelectDelay}}
\index{autoSelectDelay@{autoSelectDelay}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KGlobal\-Settings::auto\-Select\-Delay ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e6}


Returns the {\bf KDE}{\rm (p.\,\pageref{namespaceKDE})} setting for the auto-select option. 

\begin{Desc}
\item[Returns:]the auto-select delay or -1 if auto-select is disabled. \end{Desc}


Definition at line 112 of file kglobalsettings.cpp.

References KGlobal::config(), and KConfig\-Base::read\-Num\-Entry().\index{KGlobalSettings@{KGlobal\-Settings}!contextMenuKey@{contextMenuKey}}
\index{contextMenuKey@{contextMenuKey}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KGlobal\-Settings::context\-Menu\-Key ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e7}


Returns the {\bf KDE}{\rm (p.\,\pageref{namespaceKDE})} setting for the shortcut key to open context menus. 

\begin{Desc}
\item[Returns:]the key that pops up context menus. \end{Desc}


Definition at line 141 of file kglobalsettings.cpp.

References KConfig\-Group\-Saver::config(), KGlobal::config(), KStd\-Action::cut(), and KConfig\-Base::read\-Entry().\index{KGlobalSettings@{KGlobal\-Settings}!showContextMenusOnPress@{showContextMenusOnPress}}
\index{showContextMenusOnPress@{showContextMenusOnPress}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KGlobal\-Settings::show\-Context\-Menus\-On\-Press ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e8}


Returns the {\bf KDE}{\rm (p.\,\pageref{namespaceKDE})} setting for context menus. 

\begin{Desc}
\item[Returns:]whether context menus should be shown on button press or button release (click). \end{Desc}


Definition at line 133 of file kglobalsettings.cpp.

References KConfig\-Group\-Saver::config(), KGlobal::config(), and KConfig\-Base::read\-Bool\-Entry().\index{KGlobalSettings@{KGlobal\-Settings}!completionMode@{completionMode}}
\index{completionMode@{completionMode}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KGlobal\-Settings::Completion} KGlobal\-Settings::completion\-Mode ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e9}


Returns the preferred completion mode setting. 

\begin{Desc}
\item[Returns:]{\bf Completion}{\rm (p.\,\pageref{classKGlobalSettings_w10})}. Default is {\tt Completion\-Popup}. \end{Desc}


Definition at line 119 of file kglobalsettings.cpp.

References KStd\-Accel::completion(), Completion, Completion\-None, Completion\-Popup, Completion\-Popup\-Auto, KGlobal::config(), and KConfig\-Base::read\-Num\-Entry().

Referenced by KCompletion::KCompletion(), and KCompletion\-Base::KCompletion\-Base().\index{KGlobalSettings@{KGlobal\-Settings}!mouseSettings@{mouseSettings}}
\index{mouseSettings@{mouseSettings}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KGlobal\-Settings::KMouse\-Settings} \& KGlobal\-Settings::mouse\-Settings ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e10}


This returns the current mouse settings. 

\begin{Desc}
\item[Returns:]the current mouse settings \end{Desc}


Definition at line 538 of file kglobalsettings.cpp.

References KGlobal::config(), KGlobal\-Settings::KMouse\-Settings::handed, and KConfig\-Base::read\-Entry().\index{KGlobalSettings@{KGlobal\-Settings}!desktopPath@{desktopPath}}
\index{desktopPath@{desktopPath}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KGlobal\-Settings::desktop\-Path ()\hspace{0.3cm}{\tt  [inline, static]}}\label{classKGlobalSettings_e11}


The path to the desktop directory of the current user. 

\begin{Desc}
\item[Returns:]the user's desktop directory \end{Desc}


Definition at line 218 of file kglobalsettings.h.\index{KGlobalSettings@{KGlobal\-Settings}!autostartPath@{autostartPath}}
\index{autostartPath@{autostartPath}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KGlobal\-Settings::autostart\-Path ()\hspace{0.3cm}{\tt  [inline, static]}}\label{classKGlobalSettings_e12}


The path to the autostart directory of the current user. 

\begin{Desc}
\item[Returns:]the path of the autostart directory \end{Desc}


Definition at line 224 of file kglobalsettings.h.\index{KGlobalSettings@{KGlobal\-Settings}!trashPath@{trashPath}}
\index{trashPath@{trashPath}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KGlobal\-Settings::trash\-Path ()\hspace{0.3cm}{\tt  [inline, static]}}\label{classKGlobalSettings_e13}


The path to the trash directory of the current user. 

\begin{Desc}
\item[Returns:]the path of the trash directory \end{Desc}


Definition at line 230 of file kglobalsettings.h.\index{KGlobalSettings@{KGlobal\-Settings}!documentPath@{documentPath}}
\index{documentPath@{documentPath}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KGlobal\-Settings::document\-Path ()\hspace{0.3cm}{\tt  [inline, static]}}\label{classKGlobalSettings_e14}


The path where documents are stored of the current user. 

\begin{Desc}
\item[Returns:]the path of the document directory \end{Desc}


Definition at line 236 of file kglobalsettings.h.\index{KGlobalSettings@{KGlobal\-Settings}!toolBarHighlightColor@{toolBarHighlightColor}}
\index{toolBarHighlightColor@{toolBarHighlightColor}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QColor} KGlobal\-Settings::tool\-Bar\-Highlight\-Color ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e15}


The default color to use when highlighting toolbar buttons. 

\begin{Desc}
\item[Returns:]the toolbar highlight color \end{Desc}


Definition at line 150 of file kglobalsettings.cpp.

References KGlobal::config(), QString::from\-Latin1(), and KConfig\-Base::read\-Color\-Entry().\index{KGlobalSettings@{KGlobal\-Settings}!inactiveTitleColor@{inactiveTitleColor}}
\index{inactiveTitleColor@{inactiveTitleColor}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QColor} KGlobal\-Settings::inactive\-Title\-Color ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e16}


The default color to use for inactive titles. 

\begin{Desc}
\item[Returns:]the inactive title color \end{Desc}


Definition at line 158 of file kglobalsettings.cpp.

References KGlobal::config(), QString::from\-Latin1(), and KConfig\-Base::read\-Color\-Entry().\index{KGlobalSettings@{KGlobal\-Settings}!inactiveTextColor@{inactiveTextColor}}
\index{inactiveTextColor@{inactiveTextColor}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QColor} KGlobal\-Settings::inactive\-Text\-Color ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e17}


The default color to use for inactive texts. 

\begin{Desc}
\item[Returns:]the inactive text color \end{Desc}


Definition at line 167 of file kglobalsettings.cpp.

References KGlobal::config(), QString::from\-Latin1(), and KConfig\-Base::read\-Color\-Entry().\index{KGlobalSettings@{KGlobal\-Settings}!activeTitleColor@{activeTitleColor}}
\index{activeTitleColor@{activeTitleColor}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QColor} KGlobal\-Settings::active\-Title\-Color ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e18}


The default color to use for active titles. 

\begin{Desc}
\item[Returns:]the active title color \end{Desc}


Definition at line 174 of file kglobalsettings.cpp.

References KGlobal::config(), QString::from\-Latin1(), and KConfig\-Base::read\-Color\-Entry().\index{KGlobalSettings@{KGlobal\-Settings}!activeTextColor@{activeTextColor}}
\index{activeTextColor@{activeTextColor}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QColor} KGlobal\-Settings::active\-Text\-Color ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e19}


The default color to use for active texts. 

\begin{Desc}
\item[Returns:]the active text color \end{Desc}


Definition at line 182 of file kglobalsettings.cpp.

References KGlobal::config(), QString::from\-Latin1(), and KConfig\-Base::read\-Color\-Entry().\index{KGlobalSettings@{KGlobal\-Settings}!contrast@{contrast}}
\index{contrast@{contrast}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KGlobal\-Settings::contrast ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e20}


Returns the contrast for borders. 

\begin{Desc}
\item[Returns:]the contrast (between 0 for minimum and 10 for maximum contrast) \end{Desc}


Definition at line 189 of file kglobalsettings.cpp.

References KGlobal::config(), QString::from\-Latin1(), and KConfig\-Base::read\-Num\-Entry().

Referenced by KApplication::create\-Application\-Palette().\index{KGlobalSettings@{KGlobal\-Settings}!baseColor@{baseColor}}
\index{baseColor@{baseColor}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QColor} KGlobal\-Settings::base\-Color ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e21}


Returns the default base (background) color. 

\begin{Desc}
\item[Returns:]the default base (background) color \end{Desc}
\begin{Desc}
\item[See also:]{\bf QColor\-Group::base()} \end{Desc}


Definition at line 199 of file kglobalsettings.cpp.

References KGlobal::config(), QString::from\-Latin1(), and KConfig\-Base::read\-Color\-Entry().

Referenced by alternate\-Background\-Color().\index{KGlobalSettings@{KGlobal\-Settings}!textColor@{textColor}}
\index{textColor@{textColor}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QColor} KGlobal\-Settings::text\-Color ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e22}


Returns the default text color. 

\begin{Desc}
\item[Returns:]the default text color \end{Desc}
\begin{Desc}
\item[See also:]{\bf QColor\-Group::text()} \end{Desc}


Definition at line 209 of file kglobalsettings.cpp.

References KGlobal::config(), QString::from\-Latin1(), and KConfig\-Base::read\-Color\-Entry().\index{KGlobalSettings@{KGlobal\-Settings}!linkColor@{linkColor}}
\index{linkColor@{linkColor}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QColor} KGlobal\-Settings::link\-Color ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e23}


Returns the default link color. 

\begin{Desc}
\item[Returns:]the default link color \end{Desc}


Definition at line 263 of file kglobalsettings.cpp.

References KGlobal::config(), QString::from\-Latin1(), and KConfig\-Base::read\-Color\-Entry().\index{KGlobalSettings@{KGlobal\-Settings}!visitedLinkColor@{visitedLinkColor}}
\index{visitedLinkColor@{visitedLinkColor}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QColor} KGlobal\-Settings::visited\-Link\-Color ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e24}


Returns the default color for visited links. 

\begin{Desc}
\item[Returns:]the default color for visited links \end{Desc}


Definition at line 271 of file kglobalsettings.cpp.

References KGlobal::config(), QString::from\-Latin1(), and KConfig\-Base::read\-Color\-Entry().\index{KGlobalSettings@{KGlobal\-Settings}!highlightedTextColor@{highlightedTextColor}}
\index{highlightedTextColor@{highlightedTextColor}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QColor} KGlobal\-Settings::highlighted\-Text\-Color ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e25}


Returns the default color for highlighted text. 

\begin{Desc}
\item[Returns:]the default color for highlighted text \end{Desc}
\begin{Desc}
\item[See also:]QColor\-Group::hightlighted\-Text() \end{Desc}


Definition at line 219 of file kglobalsettings.cpp.

References KGlobal::config(), QString::from\-Latin1(), and KConfig\-Base::read\-Color\-Entry().\index{KGlobalSettings@{KGlobal\-Settings}!highlightColor@{highlightColor}}
\index{highlightColor@{highlightColor}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QColor} KGlobal\-Settings::highlight\-Color ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e26}


Returns the default color for text highlights. 

\begin{Desc}
\item[Returns:]the default color for text highlights \end{Desc}
\begin{Desc}
\item[See also:]QColor\-Group::hightlight() \end{Desc}


Definition at line 229 of file kglobalsettings.cpp.

References KGlobal::config(), QString::from\-Latin1(), and KConfig\-Base::read\-Color\-Entry().\index{KGlobalSettings@{KGlobal\-Settings}!alternateBackgroundColor@{alternateBackgroundColor}}
\index{alternateBackgroundColor@{alternateBackgroundColor}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QColor} KGlobal\-Settings::alternate\-Background\-Color ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e27}


Returns the alternate background color used by {\bf KList\-View} with {\bf KList\-View\-Item}. 

Any other list that uses alternating background colors should use this too, to obey to the user's preferences. Returns an invalid color if the user doesn't want alternating backgrounds. \begin{Desc}
\item[Returns:]the alternate background color \end{Desc}
\begin{Desc}
\item[See also:]{\bf calculate\-Alternate\-Background\-Color}{\rm (p.\,\pageref{classKGlobalSettings_e28})} \end{Desc}


Definition at line 237 of file kglobalsettings.cpp.

References base\-Color(), calculate\-Alternate\-Background\-Color(), KGlobal::config(), QString::from\-Latin1(), and KConfig\-Base::read\-Color\-Entry().\index{KGlobalSettings@{KGlobal\-Settings}!calculateAlternateBackgroundColor@{calculateAlternateBackgroundColor}}
\index{calculateAlternateBackgroundColor@{calculateAlternateBackgroundColor}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QColor} KGlobal\-Settings::calculate\-Alternate\-Background\-Color (const {\bf QColor} \& {\em base})\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e28}


Calculates a color based on {\tt base} to be used as alternating color for e.g. 

listviews. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em base}]the base for the calculation \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the calculated color \end{Desc}
\begin{Desc}
\item[See also:]{\bf alternate\-Background\-Color}{\rm (p.\,\pageref{classKGlobalSettings_e27})} \end{Desc}


Definition at line 246 of file kglobalsettings.cpp.

References QColor::dark(), and QColor::light().

Referenced by alternate\-Background\-Color().\index{KGlobalSettings@{KGlobal\-Settings}!generalFont@{generalFont}}
\index{generalFont@{generalFont}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QFont} KGlobal\-Settings::general\-Font ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e29}


Returns the default general font. 

\begin{Desc}
\item[Returns:]the default general font. \end{Desc}


Definition at line 278 of file kglobalsettings.cpp.

References KGlobal::config(), QString::from\-Latin1(), KConfig\-Base::read\-Font\-Entry(), QFont::set\-Pixel\-Size(), and QFont::set\-Style\-Hint().

Referenced by large\-Font().\index{KGlobalSettings@{KGlobal\-Settings}!fixedFont@{fixedFont}}
\index{fixedFont@{fixedFont}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QFont} KGlobal\-Settings::fixed\-Font ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e30}


Returns the default fixed font. 

\begin{Desc}
\item[Returns:]the default fixed font. \end{Desc}


Definition at line 294 of file kglobalsettings.cpp.

References KGlobal::config(), QString::from\-Latin1(), KConfig\-Base::read\-Font\-Entry(), QFont::set\-Pixel\-Size(), and QFont::set\-Style\-Hint().\index{KGlobalSettings@{KGlobal\-Settings}!toolBarFont@{toolBarFont}}
\index{toolBarFont@{toolBarFont}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QFont} KGlobal\-Settings::tool\-Bar\-Font ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e31}


Returns the default toolbar font. 

\begin{Desc}
\item[Returns:]the default toolbar font. \end{Desc}


Definition at line 310 of file kglobalsettings.cpp.

References KGlobal::config(), QString::from\-Latin1(), KConfig\-Base::read\-Font\-Entry(), QFont::set\-Pixel\-Size(), and QFont::set\-Style\-Hint().\index{KGlobalSettings@{KGlobal\-Settings}!menuFont@{menuFont}}
\index{menuFont@{menuFont}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QFont} KGlobal\-Settings::menu\-Font ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e32}


Returns the default menu font. 

\begin{Desc}
\item[Returns:]the default menu font. \end{Desc}


Definition at line 326 of file kglobalsettings.cpp.

References KGlobal::config(), QString::from\-Latin1(), KConfig\-Base::read\-Font\-Entry(), QFont::set\-Pixel\-Size(), and QFont::set\-Style\-Hint().\index{KGlobalSettings@{KGlobal\-Settings}!windowTitleFont@{windowTitleFont}}
\index{windowTitleFont@{windowTitleFont}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QFont} KGlobal\-Settings::window\-Title\-Font ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e33}


Returns the default window title font. 

\begin{Desc}
\item[Returns:]the default window title font. \end{Desc}


Definition at line 342 of file kglobalsettings.cpp.

References KGlobal::config(), QString::from\-Latin1(), KConfig\-Base::read\-Font\-Entry(), QFont::set\-Pixel\-Size(), and QFont::set\-Style\-Hint().\index{KGlobalSettings@{KGlobal\-Settings}!taskbarFont@{taskbarFont}}
\index{taskbarFont@{taskbarFont}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QFont} KGlobal\-Settings::taskbar\-Font ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e34}


Returns the default taskbar font. 

\begin{Desc}
\item[Returns:]the default taskbar font. \end{Desc}


Definition at line 358 of file kglobalsettings.cpp.

References KGlobal::config(), QString::from\-Latin1(), KConfig\-Base::read\-Font\-Entry(), QFont::set\-Pixel\-Size(), and QFont::set\-Style\-Hint().\index{KGlobalSettings@{KGlobal\-Settings}!largeFont@{largeFont}}
\index{largeFont@{largeFont}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QFont} KGlobal\-Settings::large\-Font (const {\bf QString} \& {\em text} = QString::null)\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e35}


Returns a font of approx. 

48 pt. capable of showing {\tt text}. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em text}]the text to test \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the font that is capable to show the text with 48 pt \end{Desc}
\begin{Desc}
\item[Since:]3.1 \end{Desc}


Definition at line 375 of file kglobalsettings.cpp.

References QFont\-Database::families(), QFont::family(), general\-Font(), QFont\-Metrics::height(), QFont\-Metrics::in\-Font(), QFont\-Database::is\-Fixed\-Pitch(), QFont\-Database::is\-Smoothly\-Scalable(), QString::length(), QFont::set\-Pixel\-Size(), and QFont::set\-Point\-Size().\index{KGlobalSettings@{KGlobal\-Settings}!isMultiHead@{isMultiHead}}
\index{isMultiHead@{isMultiHead}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KGlobal\-Settings::is\-Multi\-Head ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e36}


Returns if the user specified multihead. 

In case the display has multiple screens, the return value of this function specifies if the user wants {\bf KDE}{\rm (p.\,\pageref{namespaceKDE})} to run on all of them or just on the primary \begin{Desc}
\item[Returns:]true if the user chose multi head \end{Desc}


Definition at line 591 of file kglobalsettings.cpp.

References QCString::is\-Empty(), and QCString::lower().\index{KGlobalSettings@{KGlobal\-Settings}!wheelMouseZooms@{wheelMouseZooms}}
\index{wheelMouseZooms@{wheelMouseZooms}!KGlobalSettings@{KGlobal\-Settings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KGlobal\-Settings::wheel\-Mouse\-Zooms ()\hspace{0.3cm}{\tt  [static]}}\label{classKGlobalSettings_e37}


Typically, {\bf QScroll\-View} derived classes can be scrolled fast by holding down the Ctrl-button during wheel-scrolling. 

But {\bf QText\-Edit} and derived classes perform zooming instead of fast scrolling.

This value determines whether the user wants to zoom or scroll fast with Ctrl-wheelscroll. \begin{Desc}
\item[Returns:]true if the user wishes to zoom with the mouse wheel, false for scrolling \end{Desc}
\begin{Desc}
\item[Since:]3.1 \end{Desc}


Definition at line 600 of file kglobalsettings.cpp.

References KGlobal::config().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
kglobalsettings.h\item 
kglobalsettings.cpp\end{CompactItemize}
