/***************************************************************************
                            KCharSelectTable.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_KCharSelectTable.h>
#include <kdeobjc/KDESupport.h>
#include <kdeobjc/KCharSelectTable.h>

@implementation  KCharSelectTable


- initWithWidget: (QWidget *)parent name: (NSString *)name _font: (NSString *)_font _chr: (unichar *)_chr _tableNum: (int)_tableNum
{
static qt_QString * _qstring__font = 0L;
	if ([self qt] == 0L) {
		[self setQt: kde_new_KCharSelectTable((qt_QWidget *) [parent qt], (char*) [name cString], (qt_QString *) [_font toQString: &_qstring__font], (qt_QChar*)_chr, (int)_tableNum)];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

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

//- resizeEvent: (QResizeEvent*)arg1
//{
//	kde_KCharSelectTable_resizeEvent((kde_KCharSelectTable *)[self qt], (qt_QResizeEvent*) [arg1 qt]);
//	return self;
//}

- setFont: (NSString *)_font
{
static qt_QString * _qstring__font = 0L;
	kde_KCharSelectTable_setFont((kde_KCharSelectTable *)[self qt], (qt_QString *) [_font toQString: &_qstring__font]);
	return self;
}

- setChar: (unichar *)_chr
{
	kde_KCharSelectTable_setChar((kde_KCharSelectTable *)[self qt], (qt_QChar*)_chr);
	return self;
}

- setTableNum: (int)_tableNum
{
	kde_KCharSelectTable_setTableNum((kde_KCharSelectTable *)[self qt], (int)_tableNum);
	return self;
}

- (unichar*) chr
{
	return (unichar*) kde_KCharSelectTable_chr((kde_KCharSelectTable *)[self qt]);
}

//- paintCell: (class QPainter*)p row: (int)row col: (int)col
//{
//	kde_KCharSelectTable_paintCell((kde_KCharSelectTable *)[self qt], (class QPainter*) p, (int)row, (int)col);
//	return self;
//}

- gotoLeft
{
	kde_KCharSelectTable_gotoLeft((kde_KCharSelectTable *)[self qt]);
	return self;
}

- gotoRight
{
	kde_KCharSelectTable_gotoRight((kde_KCharSelectTable *)[self qt]);
	return self;
}

- gotoUp
{
	kde_KCharSelectTable_gotoUp((kde_KCharSelectTable *)[self qt]);
	return self;
}

- gotoDown
{
	kde_KCharSelectTable_gotoDown((kde_KCharSelectTable *)[self qt]);
	return self;
}

@end
