/***************************************************************************
                            KGlobalSettings.m -  description
                             -------------------
    begin                : Fri Mar  8 13:55:08 2002
    copyright            : (C) 2000-2002 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Fri Mar  8 13:55:08 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

#include <qtc/qt_QString.h>
#include <qtc/qt_QCString.h>
#include <kdec/kde_KGlobalSettings.h>
#include <kdeobjc/KDESupport.h>
#include <kdeobjc/KGlobalSettings.h>
#include <qtobjc/QColor.h>


@implementation  KGlobalSettings

- (void *) qt
{
	return _qt;
}

- setQt: (void *) qt
{
	_qt = qt;
	return self;
}

- (BOOL) allocatedInObjcWorld
{
	return _allocatedInObjcWorld;
}

- setAllocatedInObjcWorld: (BOOL) yn
{
	_allocatedInObjcWorld = yn;
	return self;
}


+ (int) dndEventDelay
{
	return (int) kde_KGlobalSettings_dndEventDelay();
}

+ (BOOL) singleClick
{
	return (BOOL) kde_KGlobalSettings_singleClick();
}

+ (BOOL) insertTearOffHandle
{
	return (BOOL) kde_KGlobalSettings_insertTearOffHandle();
}

+ (BOOL) changeCursorOverIcon
{
	return (BOOL) kde_KGlobalSettings_changeCursorOverIcon();
}

+ (BOOL) visualActivate
{
	return (BOOL) kde_KGlobalSettings_visualActivate();
}

+ (unsigned int) visualActivateSpeed
{
	return (unsigned int) kde_KGlobalSettings_visualActivateSpeed();
}

+ (int) autoSelectDelay
{
	return (int) kde_KGlobalSettings_autoSelectDelay();
}

+ (int) contextMenuKey
{
	return (int) kde_KGlobalSettings_contextMenuKey();
}

+ (BOOL) showContextMenusOnPress
{
	return (BOOL) kde_KGlobalSettings_showContextMenusOnPress();
}

+ (int) completionMode
{
	return (int) kde_KGlobalSettings_completionMode();
}

//+ (KMouseSettings&) mouseSettings
//{
//	return (KMouseSettings&) kde_KGlobalSettings_mouseSettings();
//}

+ (NSString *) desktopPath
{
static qt_QString * _qstring = 0L;
	_qstring = kde_KGlobalSettings_desktopPath();
	return [NSString fromQString: _qstring];
}

+ (NSString *) autostartPath
{
static qt_QString * _qstring = 0L;
	_qstring = kde_KGlobalSettings_autostartPath();
	return [NSString fromQString: _qstring];
}

+ (NSString *) trashPath
{
static qt_QString * _qstring = 0L;
	_qstring = kde_KGlobalSettings_trashPath();
	return [NSString fromQString: _qstring];
}

+ (NSString *) documentPath
{
static qt_QString * _qstring = 0L;
	_qstring = kde_KGlobalSettings_documentPath();
	return [NSString fromQString: _qstring];
}

+ (QColor*) toolBarHighlightColor
{
	return (QColor*) [QtSupport objectForQtKey: kde_KGlobalSettings_toolBarHighlightColor() withClass: [QColor class] allocatedInObjcWorld: YES];
}

+ (QColor*) inactiveTitleColor
{
	return (QColor*) [QtSupport objectForQtKey: kde_KGlobalSettings_inactiveTitleColor() withClass: [QColor class] allocatedInObjcWorld: YES];
}

+ (QColor*) inactiveTextColor
{
	return (QColor*) [QtSupport objectForQtKey: kde_KGlobalSettings_inactiveTextColor() withClass: [QColor class] allocatedInObjcWorld: YES];
}

+ (QColor*) activeTitleColor
{
	return (QColor*) [QtSupport objectForQtKey: kde_KGlobalSettings_activeTitleColor() withClass: [QColor class] allocatedInObjcWorld: YES];
}

+ (QColor*) activeTextColor
{
	return (QColor*) [QtSupport objectForQtKey: kde_KGlobalSettings_activeTextColor() withClass: [QColor class] allocatedInObjcWorld: YES];
}

+ (int) contrast
{
	return (int) kde_KGlobalSettings_contrast();
}

+ (QColor*) baseColor
{
	return (QColor*) [QtSupport objectForQtKey: kde_KGlobalSettings_baseColor() withClass: [QColor class] allocatedInObjcWorld: YES];
}

+ (QColor*) textColor
{
	return (QColor*) [QtSupport objectForQtKey: kde_KGlobalSettings_textColor() withClass: [QColor class] allocatedInObjcWorld: YES];
}

+ (QColor*) linkColor
{
	return (QColor*) [QtSupport objectForQtKey: kde_KGlobalSettings_linkColor() withClass: [QColor class] allocatedInObjcWorld: YES];
}

+ (QColor*) visitedLinkColor
{
	return (QColor*) [QtSupport objectForQtKey: kde_KGlobalSettings_visitedLinkColor() withClass: [QColor class] allocatedInObjcWorld: YES];
}

+ (QColor*) highlightedTextColor
{
	return (QColor*) [QtSupport objectForQtKey: kde_KGlobalSettings_highlightedTextColor() withClass: [QColor class] allocatedInObjcWorld: YES];
}

+ (QColor*) highlightColor
{
	return (QColor*) [QtSupport objectForQtKey: kde_KGlobalSettings_highlightColor() withClass: [QColor class] allocatedInObjcWorld: YES];
}

+ (QColor*) alternateBackgroundColor
{
	return (QColor*) [QtSupport objectForQtKey: kde_KGlobalSettings_alternateBackgroundColor() withClass: [QColor class] allocatedInObjcWorld: YES];
}

+ (QColor*) calculateAlternateBackgroundColor: (QColor *)base
{
	return (QColor*) [QtSupport objectForQtKey: kde_KGlobalSettings_calculateAlternateBackgroundColor((qt_QColor *) [base qt]) withClass: [QColor class] allocatedInObjcWorld: YES];
}

+ (QFont*) generalFont
{
	return (QFont*) [QtSupport objectForQtKey: kde_KGlobalSettings_generalFont() withClass: [QFont class] allocatedInObjcWorld: YES];
}

+ (QFont*) fixedFont
{
	return (QFont*) [QtSupport objectForQtKey: kde_KGlobalSettings_fixedFont() withClass: [QFont class] allocatedInObjcWorld: YES];
}

+ (QFont*) toolBarFont
{
	return (QFont*) [QtSupport objectForQtKey: kde_KGlobalSettings_toolBarFont() withClass: [QFont class] allocatedInObjcWorld: YES];
}

+ (QFont*) menuFont
{
	return (QFont*) [QtSupport objectForQtKey: kde_KGlobalSettings_menuFont() withClass: [QFont class] allocatedInObjcWorld: YES];
}

+ (QFont*) windowTitleFont
{
	return (QFont*) [QtSupport objectForQtKey: kde_KGlobalSettings_windowTitleFont() withClass: [QFont class] allocatedInObjcWorld: YES];
}

+ (QFont*) taskbarFont
{
	return (QFont*) [QtSupport objectForQtKey: kde_KGlobalSettings_taskbarFont() withClass: [QFont class] allocatedInObjcWorld: YES];
}

+ (int) CompletionNone
{
	return (int) KGLOBALSETTINGS_CompletionNone;
}

+ (int) CompletionAuto
{
	return (int) KGLOBALSETTINGS_CompletionAuto;
}

+ (int) CompletionMan
{
	return (int) KGLOBALSETTINGS_CompletionMan;
}

+ (int) CompletionShell
{
	return (int) KGLOBALSETTINGS_CompletionShell;
}

+ (int) CompletionPopup
{
	return (int) KGLOBALSETTINGS_CompletionPopup;
}

@end
