/***************************************************************************
                            QToolTip.m -  description
                             -------------------
    begin                : Wed Nov 21 12:08:37 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 12:08:37 2001, 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 <qtc/qt_QToolTip.h>
#include <qtobjc/QToolTip.h>
#include <qtobjc/QFont.h>
#include <qtobjc/QPoint.h>
#include <qtobjc/QRect.h>

#include <qtobjc/QPalette.h>
#include <qtobjc/QToolTipGroup.h>
#include <qtobjc/QFont.h>
#include <qtobjc/QPoint.h>
#include <qtobjc/QRect.h>

#include <qtobjc/QWidget.h>

@implementation  QToolTip


- (QWidget*) parentWidget
{
	return (QWidget*) [QtSupport objectForQtKey: qt_QToolTip_parentWidget((qt_QToolTip *)[self qt]) withClass: [QWidget class] allocatedInObjcWorld: YES];
}

- (QToolTipGroup*) group
{
	return (QToolTipGroup*) [QtSupport objectForQtKey: qt_QToolTip_group((qt_QToolTip *)[self qt]) withClass: [QToolTipGroup class] allocatedInObjcWorld: YES];
}

+ add: (QWidget *)arg1 string: (NSString *)arg2
{
static qt_QString * _qstring_arg2 = 0L;
	qt_QToolTip_add((qt_QWidget *) [arg1 qt], (qt_QString *) [arg2 toQString: &_qstring_arg2]);
	return self;
}

+ add: (QWidget *)arg1 string: (NSString *)arg2 tooltipgroup: (QToolTipGroup *)arg3 string: (NSString *)arg4
{
static qt_QString * _qstring_arg4 = 0L;
static qt_QString * _qstring_arg2 = 0L;
	qt_QToolTip_add1((qt_QWidget *) [arg1 qt], (qt_QString *) [arg2 toQString: &_qstring_arg2], (qt_QToolTipGroup *) [arg3 qt], (qt_QString *) [arg4 toQString: &_qstring_arg4]);
	return self;
}

+ remove: (QWidget *)arg1
{
	qt_QToolTip_remove((qt_QWidget *) [arg1 qt]);
	return self;
}

+ add: (QWidget *)arg1 rect: (QRect*)arg2 string: (NSString *)arg3
{
static qt_QString * _qstring_arg3 = 0L;
	qt_QToolTip_add2((qt_QWidget *) [arg1 qt], (qt_QRect*) [arg2 qt], (qt_QString *) [arg3 toQString: &_qstring_arg3]);
	return self;
}

+ add: (QWidget *)arg1 rect: (QRect*)arg2 string: (NSString *)arg3 tooltipgroup: (QToolTipGroup *)arg4 string: (NSString *)arg5
{
static qt_QString * _qstring_arg5 = 0L;
static qt_QString * _qstring_arg3 = 0L;
	qt_QToolTip_add3((qt_QWidget *) [arg1 qt], (qt_QRect*) [arg2 qt], (qt_QString *) [arg3 toQString: &_qstring_arg3], (qt_QToolTipGroup *) [arg4 qt], (qt_QString *) [arg5 toQString: &_qstring_arg5]);
	return self;
}

+ remove: (QWidget *)arg1 rect: (QRect*)arg2
{
	qt_QToolTip_remove1((qt_QWidget *) [arg1 qt], (qt_QRect*) [arg2 qt]);
	return self;
}

+ (NSString *) textFor: (QWidget *)arg1 pos: (QPoint*)pos
{
static qt_QString * _qstring = 0L;
	_qstring = qt_QToolTip_textFor((qt_QWidget *) [arg1 qt], (qt_QPoint*) [pos qt]);
	return [NSString fromQString: _qstring];
}

+ hide
{
	qt_QToolTip_hide();
	return self;
}

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

+ setFont: (QFont *)arg1
{
	qt_QToolTip_setFont((qt_QFont *) [arg1 qt]);
	return self;
}

+ (QPalette*) palette
{
	return (QPalette*) [QtSupport objectForQtKey: qt_QToolTip_palette() withClass: [QPalette class] allocatedInObjcWorld: YES];
}

+ setPalette: (QPalette *)arg1
{
	qt_QToolTip_setPalette((qt_QPalette *) [arg1 qt]);
	return self;
}

+ setEnabled: (BOOL)enable
{
	qt_QToolTip_setEnabled((int)enable);
	return self;
}

+ (BOOL) enabled
{
	return (BOOL) qt_QToolTip_enabled();
}

+ setGloballyEnabled: (BOOL)arg1
{
	qt_QToolTip_setGloballyEnabled((int)arg1);
	return self;
}

+ (BOOL) isGloballyEnabled
{
	return (BOOL) qt_QToolTip_isGloballyEnabled();
}

@end
