/***************************************************************************
                            KAboutWidget.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_KAboutWidget.h>
#include <kdeobjc/KDESupport.h>
#include <kdeobjc/KAboutWidget.h>
#include <qtobjc/QPixmap.h>


@implementation  KAboutWidget


- initWithWidget: (QWidget *)parent name: (NSString *)name
{
	if ([self qt] == 0L) {
		[self setQt: kde_new_KAboutWidget((qt_QWidget *) [parent qt], (char*) [name cString])];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- init
{
	if ([self qt] == 0L) {
		[self setQt: kde_new_KAboutWidget(0, 0)];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- adjust
{
	kde_KAboutWidget_adjust((kde_KAboutWidget *)[self qt]);
	return self;
}

- setLogo: (QPixmap *)arg1
{
	kde_KAboutWidget_setLogo((kde_KAboutWidget *)[self qt], (qt_QPixmap *) [arg1 qt]);
	return self;
}

- setAuthor: (NSString *)name email: (NSString *)email url: (NSString *)url work: (NSString *)work
{
static qt_QString * _qstring_work = 0L;
static qt_QString * _qstring_url = 0L;
static qt_QString * _qstring_email = 0L;
static qt_QString * _qstring_name = 0L;
	kde_KAboutWidget_setAuthor((kde_KAboutWidget *)[self qt], (qt_QString *) [name toQString: &_qstring_name], (qt_QString *) [email toQString: &_qstring_email], (qt_QString *) [url toQString: &_qstring_url], (qt_QString *) [work toQString: &_qstring_work]);
	return self;
}

- setMaintainer: (NSString *)name email: (NSString *)email url: (NSString *)url work: (NSString *)work
{
static qt_QString * _qstring_work = 0L;
static qt_QString * _qstring_url = 0L;
static qt_QString * _qstring_email = 0L;
static qt_QString * _qstring_name = 0L;
	kde_KAboutWidget_setMaintainer((kde_KAboutWidget *)[self qt], (qt_QString *) [name toQString: &_qstring_name], (qt_QString *) [email toQString: &_qstring_email], (qt_QString *) [url toQString: &_qstring_url], (qt_QString *) [work toQString: &_qstring_work]);
	return self;
}

- addContributor: (NSString *)name email: (NSString *)email url: (NSString *)url work: (NSString *)work
{
static qt_QString * _qstring_work = 0L;
static qt_QString * _qstring_url = 0L;
static qt_QString * _qstring_email = 0L;
static qt_QString * _qstring_name = 0L;
	kde_KAboutWidget_addContributor((kde_KAboutWidget *)[self qt], (qt_QString *) [name toQString: &_qstring_name], (qt_QString *) [email toQString: &_qstring_email], (qt_QString *) [url toQString: &_qstring_url], (qt_QString *) [work toQString: &_qstring_work]);
	return self;
}

- setVersion: (NSString *)name
{
static qt_QString * _qstring_name = 0L;
	kde_KAboutWidget_setVersion((kde_KAboutWidget *)[self qt], (qt_QString *) [name toQString: &_qstring_name]);
	return self;
}

- sendEmailSlot: (NSString *)name email: (NSString *)email
{
static qt_QString * _qstring_email = 0L;
static qt_QString * _qstring_name = 0L;
	kde_KAboutWidget_sendEmailSlot((kde_KAboutWidget *)[self qt], (qt_QString *) [name toQString: &_qstring_name], (qt_QString *) [email toQString: &_qstring_email]);
	return self;
}

- openURLSlot: (NSString *)url
{
static qt_QString * _qstring_url = 0L;
	kde_KAboutWidget_openURLSlot((kde_KAboutWidget *)[self qt], (qt_QString *) [url toQString: &_qstring_url]);
	return self;
}

@end
