/***************************************************************************
                            qt_QComboTableItem.cpp -  description
                             -------------------
    begin                : Tue Nov 20 20:51:20 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Nov 20 20:51:20 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.                       *
 *                                                                         *
 ***************************************************************************/

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

#include <qtable.h>

class QComboTableItemBridge : public QComboTableItem
{
public:
	QComboTableItemBridge(QTable* table, const QStringList& list, bool editable) : QComboTableItem(table, list, editable) {}
};

qt_QComboTableItem * qt_new_QComboTableItem(qt_QTable* table, qt_QStringList* list, int editable){
	return (qt_QComboTableItem *) new QComboTableItemBridge((QTable*)table, (QStringList&)* (QStringList*)list, (bool)editable);
}
qt_QWidget * qt_QComboTableItem_createEditor( qt_QComboTableItem* instPointer){
	return (qt_QWidget *) ((QComboTableItemBridge*)instPointer)->createEditor();
}
void qt_QComboTableItem_setContentFromEditor( qt_QComboTableItem* instPointer,qt_QWidget * w){
	((QComboTableItemBridge*)instPointer)->setContentFromEditor((QWidget*)w);
	return;
}
void qt_QComboTableItem_paint( qt_QComboTableItem* instPointer,qt_QPainter * p, qt_QColorGroup * cg, qt_QRect* cr, int selected){
	((QComboTableItemBridge*)instPointer)->paint((QPainter*)p, (QColorGroup&)* (QColorGroup*)cg, (QRect&)* (QRect*)cr, (bool)selected);
	return;
}
void qt_QComboTableItem_setCurrentItem( qt_QComboTableItem* instPointer,int i){
	((QComboTableItemBridge*)instPointer)->setCurrentItem((int)i);
	return;
}
void qt_QComboTableItem_setCurrentItem1( qt_QComboTableItem* instPointer,qt_QString * i){
	((QComboTableItemBridge*)instPointer)->setCurrentItem((QString&)* (QString*)i);
	return;
}
int qt_QComboTableItem_currentItem( qt_QComboTableItem* instPointer){
	return (int) ((QComboTableItemBridge*)instPointer)->currentItem();
}
qt_QString * qt_QComboTableItem_currentText( qt_QComboTableItem* instPointer){
	return (qt_QString *)new QString(((QComboTableItemBridge*)instPointer)->currentText());
}
int qt_QComboTableItem_count( qt_QComboTableItem* instPointer){
	return (int) ((QComboTableItemBridge*)instPointer)->count();
}
qt_QString * qt_QComboTableItem_text( qt_QComboTableItem* instPointer,int i){
	return (qt_QString *)new QString(((QComboTableItemBridge*)instPointer)->text((int)i));
}
void qt_QComboTableItem_setEditable( qt_QComboTableItem* instPointer,int b){
	((QComboTableItemBridge*)instPointer)->setEditable((bool)b);
	return;
}
int qt_QComboTableItem_isEditable( qt_QComboTableItem* instPointer){
	return (int) ((QComboTableItemBridge*)instPointer)->isEditable();
}
void qt_QComboTableItem_setStringList( qt_QComboTableItem* instPointer,qt_QStringList* l){
	((QComboTableItemBridge*)instPointer)->setStringList((QStringList&)* (QStringList*)l);
	return;
}
int qt_QComboTableItem_rtti( qt_QComboTableItem* instPointer){
	return (int) ((QComboTableItemBridge*)instPointer)->rtti();
}
