/***************************************************************************
                            QColorDialog.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_QColorDialog.h>
#include <qtobjc/QColorDialog.h>

@implementation  QColorDialog


+ (QColor*) getColor: (QColor *)init parent: (QWidget *)parent name: (NSString *)name
{
	return (QColor*) [QtSupport objectForQtKey: qt_QColorDialog_getColor((qt_QColor *) [init qt], (qt_QWidget *) [parent qt], (char*) [name cString]) withClass: [QColor class] allocatedInObjcWorld: YES];
}

+ (QColor*) getColor
{
	return (QColor*) [QtSupport objectForQtKey: qt_QColorDialog_getColor((qt_QColor *) [[Qt white] qt], 0, 0) withClass: [QColor class] allocatedInObjcWorld: YES];
}

+ (unsigned int) getRgba: (unsigned int)arg1 ok: (int*)ok parent: (QWidget *)parent name: (NSString *)name
{
	return (unsigned int) qt_QColorDialog_getRgba((unsigned int)arg1, (int*)ok, (qt_QWidget *) [parent qt], (char*) [name cString]);
}

+ (unsigned int) getRgba: (unsigned int)arg1 
{
	return (unsigned int) qt_QColorDialog_getRgba((unsigned int)arg1, 0, 0, 0);
}

+ (int) customCount
{
	return (int) qt_QColorDialog_customCount();
}

+ (unsigned int) customColor: (int)arg1
{
	return (unsigned int) qt_QColorDialog_customColor((int)arg1);
}

+ setCustomColor: (int)arg1 unsigned: (unsigned int)arg2
{
	qt_QColorDialog_setCustomColor((int)arg1, (unsigned int)arg2);
	return self;
}

@end
