/***************************************************************************
                            QFontDialog.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_QFontDialog.h>
#include <qtobjc/QFontDialog.h>
#include <qtobjc/QFont.h>


@implementation  QFontDialog


+ (QFont*) getFont: (int*)ok def: (QFont *)def parent: (QWidget *)parent name: (NSString *)name
{
	return (QFont*) [QtSupport objectForQtKey: qt_QFontDialog_getFont((int*)ok, (qt_QFont *) [def qt], (qt_QWidget *) [parent qt], (char*) [name cString]) withClass: [QFont class] allocatedInObjcWorld: YES];
}

+ (QFont*) getFont: (int*)ok def: (QFont *)def 
{
	return (QFont*) [QtSupport objectForQtKey: qt_QFontDialog_getFont((int*)ok, (qt_QFont *) [def qt], 0, 0) withClass: [QFont class] allocatedInObjcWorld: YES];
}

+ (QFont*) getFont: (int*)ok parent: (QWidget *)parent name: (NSString *)name
{
	return (QFont*) [QtSupport objectForQtKey: qt_QFontDialog_getFont1((int*)ok, (qt_QWidget *) [parent qt], (char*) [name cString]) withClass: [QFont class] allocatedInObjcWorld: YES];
}

+ (QFont*) getFont: (int*)ok 
{
	return (QFont*) [QtSupport objectForQtKey: qt_QFontDialog_getFont1((int*)ok, 0, 0) withClass: [QFont class] allocatedInObjcWorld: YES];
}

//- (BOOL) eventFilter: (QObject *)arg1 event: (QEvent *)arg2
//{
//	return (BOOL) qt_QFontDialog_eventFilter((qt_QFontDialog *)[self qt], (qt_QObject *) [arg1 qt], (qt_QEvent *) [arg2 qt]);
//}

//- (QListBox*) familyListBox
//{
//	return (QListBox*) [QtSupport objectForQtKey: qt_QFontDialog_familyListBox((qt_QFontDialog *)[self qt]) withClass: [QListBox class] allocatedInObjcWorld: YES];
//}

//- updateFamilies
//{
//	qt_QFontDialog_updateFamilies((qt_QFontDialog *)[self qt]);
//	return self;
//}

//- (QListBox*) styleListBox
//{
//	return (QListBox*) [QtSupport objectForQtKey: qt_QFontDialog_styleListBox((qt_QFontDialog *)[self qt]) withClass: [QListBox class] allocatedInObjcWorld: YES];
//}

//- updateStyles
//{
//	qt_QFontDialog_updateStyles((qt_QFontDialog *)[self qt]);
//	return self;
//}

//- (QListBox*) sizeListBox
//{
//	return (QListBox*) [QtSupport objectForQtKey: qt_QFontDialog_sizeListBox((qt_QFontDialog *)[self qt]) withClass: [QListBox class] allocatedInObjcWorld: YES];
//}

//- updateSizes
//{
//	qt_QFontDialog_updateSizes((qt_QFontDialog *)[self qt]);
//	return self;
//}

//- (QComboBox*) scriptCombo
//{
//	return (QComboBox*) [QtSupport objectForQtKey: qt_QFontDialog_scriptCombo((qt_QFontDialog *)[self qt]) withClass: [QComboBox class] allocatedInObjcWorld: YES];
//}

//- updateScripts
//{
//	qt_QFontDialog_updateScripts((qt_QFontDialog *)[self qt]);
//	return self;
//}

//- (NSString *) family
//{
//static qt_QString * _qstring = 0L;
//	_qstring = qt_QFontDialog_family((qt_QFontDialog *)[self qt]);
//	return [NSString fromQString: _qstring];
//}

//- (NSString *) script
//{
//static qt_QString * _qstring = 0L;
//	_qstring = qt_QFontDialog_script((qt_QFontDialog *)[self qt]);
//	return [NSString fromQString: _qstring];
//}

//- (NSString *) style
//{
//static qt_QString * _qstring = 0L;
//	_qstring = qt_QFontDialog_style((qt_QFontDialog *)[self qt]);
//	return [NSString fromQString: _qstring];
//}

//- (NSString *) size
//{
//static qt_QString * _qstring = 0L;
//	_qstring = qt_QFontDialog_size((qt_QFontDialog *)[self qt]);
//	return [NSString fromQString: _qstring];
//}

//- sizeChanged: (NSString *)arg1
//{
//static qt_QString * _qstring_arg1 = 0L;
//	qt_QFontDialog_sizeChanged((qt_QFontDialog *)[self qt], (qt_QString *) [arg1 toQString: &_qstring_arg1]);
//	return self;
//}

@end
