/***************************************************************************
                            KAboutContributor.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_KAboutContributor.h>
#include <kdeobjc/KDESupport.h>
#include <kdeobjc/KAboutContributor.h>
#include <qtobjc/QFont.h>


@implementation  KAboutContributor


- initWithWidget: (QWidget *)parent name: (NSString *)name username: (NSString *)username email: (NSString *)email url: (NSString *)url work: (NSString *)work showHeader: (BOOL)showHeader showFrame: (BOOL)showFrame showBold: (BOOL)showBold
{
static qt_QString * _qstring_work = 0L;
static qt_QString * _qstring_url = 0L;
static qt_QString * _qstring_email = 0L;
static qt_QString * _qstring_username = 0L;
	if ([self qt] == 0L) {
		[self setQt: kde_new_KAboutContributor((qt_QWidget *) [parent qt], (char*) [name cString], (qt_QString *) [username toQString: &_qstring_username], (qt_QString *) [email toQString: &_qstring_email], (qt_QString *) [url toQString: &_qstring_url], (qt_QString *) [work toQString: &_qstring_work], (int)showHeader, (int)showFrame, (int)showBold)];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

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

- setName: (NSString *)text header: (NSString *)header update: (BOOL)update
{
static qt_QString * _qstring_header = 0L;
static qt_QString * _qstring_text = 0L;
	kde_KAboutContributor_setName((kde_KAboutContributor *)[self qt], (qt_QString *) [text toQString: &_qstring_text], (qt_QString *) [header toQString: &_qstring_header], (int)update);
	return self;
}

- setName: (NSString *)text 
{
static qt_QString * _qstring_text = 0L;
	kde_KAboutContributor_setName((kde_KAboutContributor *)[self qt], (qt_QString *) [text toQString: &_qstring_text], qt_QString_null(), 1);
	return self;
}

- setEmail: (NSString *)text header: (NSString *)header update: (BOOL)update
{
static qt_QString * _qstring_header = 0L;
static qt_QString * _qstring_text = 0L;
	kde_KAboutContributor_setEmail((kde_KAboutContributor *)[self qt], (qt_QString *) [text toQString: &_qstring_text], (qt_QString *) [header toQString: &_qstring_header], (int)update);
	return self;
}

- setEmail: (NSString *)text 
{
static qt_QString * _qstring_text = 0L;
	kde_KAboutContributor_setEmail((kde_KAboutContributor *)[self qt], (qt_QString *) [text toQString: &_qstring_text], qt_QString_null(), 1);
	return self;
}

- setURL: (NSString *)text header: (NSString *)header update: (BOOL)update
{
static qt_QString * _qstring_header = 0L;
static qt_QString * _qstring_text = 0L;
	kde_KAboutContributor_setURL((kde_KAboutContributor *)[self qt], (qt_QString *) [text toQString: &_qstring_text], (qt_QString *) [header toQString: &_qstring_header], (int)update);
	return self;
}

- setURL: (NSString *)text 
{
static qt_QString * _qstring_text = 0L;
	kde_KAboutContributor_setURL((kde_KAboutContributor *)[self qt], (qt_QString *) [text toQString: &_qstring_text], qt_QString_null(), 1);
	return self;
}

- setWork: (NSString *)text header: (NSString *)header update: (BOOL)update
{
static qt_QString * _qstring_header = 0L;
static qt_QString * _qstring_text = 0L;
	kde_KAboutContributor_setWork((kde_KAboutContributor *)[self qt], (qt_QString *) [text toQString: &_qstring_text], (qt_QString *) [header toQString: &_qstring_header], (int)update);
	return self;
}

- setWork: (NSString *)text 
{
static qt_QString * _qstring_text = 0L;
	kde_KAboutContributor_setWork((kde_KAboutContributor *)[self qt], (qt_QString *) [text toQString: &_qstring_text], qt_QString_null(), 1);
	return self;
}

- (NSString *) getName
{
static qt_QString * _qstring = 0L;
	_qstring = kde_KAboutContributor_getName((kde_KAboutContributor *)[self qt]);
	return [NSString fromQString: _qstring];
}

- (NSString *) getEmail
{
static qt_QString * _qstring = 0L;
	_qstring = kde_KAboutContributor_getEmail((kde_KAboutContributor *)[self qt]);
	return [NSString fromQString: _qstring];
}

- (NSString *) getURL
{
static qt_QString * _qstring = 0L;
	_qstring = kde_KAboutContributor_getURL((kde_KAboutContributor *)[self qt]);
	return [NSString fromQString: _qstring];
}

- (NSString *) getWork
{
static qt_QString * _qstring = 0L;
	_qstring = kde_KAboutContributor_getWork((kde_KAboutContributor *)[self qt]);
	return [NSString fromQString: _qstring];
}

- (QSize*) sizeHint
{
	return (QSize*) [QtSupport objectForQtKey: kde_KAboutContributor_sizeHint((kde_KAboutContributor *)[self qt]) withClass: [QSize class] allocatedInObjcWorld: YES];
}

- fontChange: (QFont *)oldFont
{
	kde_KAboutContributor_fontChange((kde_KAboutContributor *)[self qt], (qt_QFont *) [oldFont qt]);
	return self;
}

- urlClickedSlot: (NSString *)arg1
{
static qt_QString * _qstring_arg1 = 0L;
	kde_KAboutContributor_urlClickedSlot((kde_KAboutContributor *)[self qt], (qt_QString *) [arg1 toQString: &_qstring_arg1]);
	return self;
}

- emailClickedSlot: (NSString *)emailaddress
{
static qt_QString * _qstring_emailaddress = 0L;
	kde_KAboutContributor_emailClickedSlot((kde_KAboutContributor *)[self qt], (qt_QString *) [emailaddress toQString: &_qstring_emailaddress]);
	return self;
}

@end
