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

@implementation  KSpellDlg


- initWithWidget: (QWidget *)parent name: (NSString *)name _progressbar: (BOOL)_progressbar _modal: (BOOL)_modal
{
	if ([self qt] == 0L) {
		[self setQt: kde_new_KSpellDlg((qt_QWidget *) [parent qt], (char*) [name cString], (int)_progressbar, (int)_modal)];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- initWithWidget: (QWidget *)parent name: (NSString *)name 
{
	if ([self qt] == 0L) {
		[self setQt: kde_new_KSpellDlg((qt_QWidget *) [parent qt], (char*) [name cString], 0, 0)];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- (NSString *) replacement
{
static qt_QString * _qstring = 0L;
	_qstring = kde_KSpellDlg_replacement((kde_KSpellDlg *)[self qt]);
	return [NSString fromQString: _qstring];
}

- init: (NSString *)_word _sugg: (NSArray *)_sugg
{
static qt_QStringList * _qlist__sugg = 0L;
static qt_QString * _qstring__word = 0L;
	kde_KSpellDlg_init((kde_KSpellDlg *)[self qt], (qt_QString *) [_word toQString: &_qstring__word], (qt_QStringList*) [_sugg toQStringList: (void *)&_qlist__sugg]);
	return self;
}

- standby
{
	kde_KSpellDlg_standby((kde_KSpellDlg *)[self qt]);
	return self;
}

- slotProgress: (unsigned int)p
{
	kde_KSpellDlg_slotProgress((kde_KSpellDlg *)[self qt], (unsigned int)p);
	return self;
}

- done: (int)i
{
	kde_KSpellDlg_done((kde_KSpellDlg *)[self qt], (int)i);
	return self;
}

- ignore
{
	kde_KSpellDlg_ignore((kde_KSpellDlg *)[self qt]);
	return self;
}

- add
{
	kde_KSpellDlg_add((kde_KSpellDlg *)[self qt]);
	return self;
}

- ignoreAll
{
	kde_KSpellDlg_ignoreAll((kde_KSpellDlg *)[self qt]);
	return self;
}

- cancel
{
	kde_KSpellDlg_cancel((kde_KSpellDlg *)[self qt]);
	return self;
}

- replace
{
	kde_KSpellDlg_replace((kde_KSpellDlg *)[self qt]);
	return self;
}

- replaceAll
{
	kde_KSpellDlg_replaceAll((kde_KSpellDlg *)[self qt]);
	return self;
}

- stop
{
	kde_KSpellDlg_stop((kde_KSpellDlg *)[self qt]);
	return self;
}

- textChanged: (NSString *)arg1
{
static qt_QString * _qstring_arg1 = 0L;
	kde_KSpellDlg_textChanged((kde_KSpellDlg *)[self qt], (qt_QString *) [arg1 toQString: &_qstring_arg1]);
	return self;
}

- selected: (int)i
{
	kde_KSpellDlg_selected((kde_KSpellDlg *)[self qt], (int)i);
	return self;
}

- highlighted: (int)i
{
	kde_KSpellDlg_highlighted((kde_KSpellDlg *)[self qt], (int)i);
	return self;
}

@end
