/***************************************************************************
                            kde_KPalette.cpp -  description
                             -------------------
    begin                : Wed Feb  6 15:12:26 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Feb  6 15:12:26 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.                       *
 *                                                                         *
 ***************************************************************************/

extern "C" {
#include "kde_KPalette.h"
}

#include <kpalette.h>

class KPaletteBridge : public KPalette
{
public:
	KPaletteBridge(const QString& name) : KPalette(name) {}
	KPaletteBridge(const KPalette& arg1) : KPalette(arg1) {}
	~KPaletteBridge() {}
};

kde_KPalette * kde_new_KPalette(qt_QString * name){
	return (kde_KPalette *) new KPaletteBridge((QString&)* (QString*)name);
}
kde_KPalette * kde_new_KPalette1(kde_KPalette* arg1){
	return (kde_KPalette *) new KPaletteBridge((KPalette&)* (KPalette*)arg1);
}
void kde_del_KPalette( kde_KPalette* p ){
	delete (KPaletteBridge*) p;
}
int kde_KPalette_save( kde_KPalette* instPointer){
	return (int) ((KPaletteBridge*)instPointer)->save();
}
qt_QString * kde_KPalette_description( kde_KPalette* instPointer){
	return (qt_QString *)new QString(((KPaletteBridge*)instPointer)->description());
}
void kde_KPalette_setDescription( kde_KPalette* instPointer,qt_QString * desc){
	((KPaletteBridge*)instPointer)->setDescription((QString&)* (QString*)desc);
	return;
}
qt_QString * kde_KPalette_name( kde_KPalette* instPointer){
	return (qt_QString *)new QString(((KPaletteBridge*)instPointer)->name());
}
void kde_KPalette_setName( kde_KPalette* instPointer,qt_QString * name){
	((KPaletteBridge*)instPointer)->setName((QString&)* (QString*)name);
	return;
}
int kde_KPalette_editable( kde_KPalette* instPointer){
	return (int) ((KPaletteBridge*)instPointer)->editable();
}
void kde_KPalette_setEditable( kde_KPalette* instPointer,int editable){
	((KPaletteBridge*)instPointer)->setEditable((KPalette::Editable)editable);
	return;
}
int kde_KPalette_nrColors( kde_KPalette* instPointer){
	return (int) ((KPaletteBridge*)instPointer)->nrColors();
}
qt_QColor * kde_KPalette_color( kde_KPalette* instPointer,int index){
	return (qt_QColor *)new QColor(((KPaletteBridge*)instPointer)->color((int)index));
}
int kde_KPalette_findColor( kde_KPalette* instPointer,qt_QColor * color){
	return (int) ((KPaletteBridge*)instPointer)->findColor((QColor&)* (QColor*)color);
}
qt_QString * kde_KPalette_colorName( kde_KPalette* instPointer,int index){
	return (qt_QString *)new QString(((KPaletteBridge*)instPointer)->colorName((int)index));
}
qt_QString * kde_KPalette_colorName1( kde_KPalette* instPointer,qt_QColor * color){
	return (qt_QString *)new QString(((KPaletteBridge*)instPointer)->colorName((QColor&)* (QColor*)color));
}
int kde_KPalette_addColor( kde_KPalette* instPointer,qt_QColor * newColor, qt_QString * newColorName){
	return (int) ((KPaletteBridge*)instPointer)->addColor((QColor&)* (QColor*)newColor, (QString&)* (QString*)newColorName);
}
int kde_KPalette_changeColor( kde_KPalette* instPointer,int index, qt_QColor * newColor, qt_QString * newColorName){
	return (int) ((KPaletteBridge*)instPointer)->changeColor((int)index, (QColor&)* (QColor*)newColor, (QString&)* (QString*)newColorName);
}
int kde_KPalette_changeColor1( kde_KPalette* instPointer,qt_QColor * oldColor, qt_QColor * newColor, qt_QString * newColorName){
	return (int) ((KPaletteBridge*)instPointer)->changeColor((QColor&)* (QColor*)oldColor, (QColor&)* (QColor*)newColor, (QString&)* (QString*)newColorName);
}
qt_QStringList* kde_KPalette_getPaletteList( ){
	return (qt_QStringList*)new QStringList(KPaletteBridge::getPaletteList());
}
