/***************************************************************************
                            KStdGuiItem.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_KStdGuiItem.h>
#include <kdec/kde_KGuiItem.h>
#include <kdeobjc/KDESupport.h>
#include <kdeobjc/KStdGuiItem.h>
#include <kdeobjc/KGuiItem.h>

@implementation  KStdGuiItem

- (void *) qt
{
	return _qt;
}

- setQt: (void *) qt
{
	_qt = qt;
	return self;
}

- (BOOL) allocatedInObjcWorld
{
	return _allocatedInObjcWorld;
}

- setAllocatedInObjcWorld: (BOOL) yn
{
	_allocatedInObjcWorld = yn;
	return self;
}


+ (KGuiItem*) guiItem: (int)ui_enum
{
	return (KGuiItem*) [QtSupport objectForQtKey: kde_KStdGuiItem_guiItem((int)ui_enum) withClass: [KGuiItem class] allocatedInObjcWorld: YES];
}

+ (NSString *) stdItem: (int)ui_enum
{
static qt_QString * _qstring = 0L;
	_qstring = kde_KStdGuiItem_stdItem((int)ui_enum);
	return [NSString fromQString: _qstring];
}

+ (KGuiItem*) ok
{
	return (KGuiItem*) [QtSupport objectForQtKey: kde_KStdGuiItem_ok() withClass: [KGuiItem class] allocatedInObjcWorld: YES];
}

+ (KGuiItem*) cancel
{
	return (KGuiItem*) [QtSupport objectForQtKey: kde_KStdGuiItem_cancel() withClass: [KGuiItem class] allocatedInObjcWorld: YES];
}

+ (KGuiItem*) yes
{
	return (KGuiItem*) [QtSupport objectForQtKey: kde_KStdGuiItem_yes() withClass: [KGuiItem class] allocatedInObjcWorld: YES];
}

+ (KGuiItem*) no
{
	return (KGuiItem*) [QtSupport objectForQtKey: kde_KStdGuiItem_no() withClass: [KGuiItem class] allocatedInObjcWorld: YES];
}

+ (KGuiItem*) discard
{
	return (KGuiItem*) [QtSupport objectForQtKey: kde_KStdGuiItem_discard() withClass: [KGuiItem class] allocatedInObjcWorld: YES];
}

+ (KGuiItem*) save
{
	return (KGuiItem*) [QtSupport objectForQtKey: kde_KStdGuiItem_save() withClass: [KGuiItem class] allocatedInObjcWorld: YES];
}

+ (KGuiItem*) help
{
	return (KGuiItem*) [QtSupport objectForQtKey: kde_KStdGuiItem_help() withClass: [KGuiItem class] allocatedInObjcWorld: YES];
}

+ (KGuiItem*) dontSave
{
	return (KGuiItem*) [QtSupport objectForQtKey: kde_KStdGuiItem_dontSave() withClass: [KGuiItem class] allocatedInObjcWorld: YES];
}

+ (KGuiItem*) saveAs
{
	return (KGuiItem*) [QtSupport objectForQtKey: kde_KStdGuiItem_saveAs() withClass: [KGuiItem class] allocatedInObjcWorld: YES];
}

+ (KGuiItem*) apply
{
	return (KGuiItem*) [QtSupport objectForQtKey: kde_KStdGuiItem_apply() withClass: [KGuiItem class] allocatedInObjcWorld: YES];
}

+ (KGuiItem*) clear
{
	return (KGuiItem*) [QtSupport objectForQtKey: kde_KStdGuiItem_clear() withClass: [KGuiItem class] allocatedInObjcWorld: YES];
}

+ (KGuiItem*) defaults
{
	return (KGuiItem*) [QtSupport objectForQtKey: kde_KStdGuiItem_defaults() withClass: [KGuiItem class] allocatedInObjcWorld: YES];
}

+ (KGuiItem*) close
{
	return (KGuiItem*) [QtSupport objectForQtKey: kde_KStdGuiItem_close() withClass: [KGuiItem class] allocatedInObjcWorld: YES];
}

+ (KGuiItem*) back: (int)useBidi
{
	return (KGuiItem*) [QtSupport objectForQtKey: kde_KStdGuiItem_back((int)useBidi) withClass: [KGuiItem class] allocatedInObjcWorld: YES];
}

+ (KGuiItem*) back
{
	return (KGuiItem*) [QtSupport objectForQtKey: kde_KStdGuiItem_back([KStdGuiItem IgnoreRTL]) withClass: [KGuiItem class] allocatedInObjcWorld: YES];
}

+ (KGuiItem*) forward: (int)useBidi
{
	return (KGuiItem*) [QtSupport objectForQtKey: kde_KStdGuiItem_forward((int)useBidi) withClass: [KGuiItem class] allocatedInObjcWorld: YES];
}

+ (KGuiItem*) forward
{
	return (KGuiItem*) [QtSupport objectForQtKey: kde_KStdGuiItem_forward([KStdGuiItem IgnoreRTL]) withClass: [KGuiItem class] allocatedInObjcWorld: YES];
}

+ (int) UseRTL
{
	return (int) KSTDGUIITEM_UseRTL;
}

+ (int) IgnoreRTL
{
	return (int) KSTDGUIITEM_IgnoreRTL;
}

+ (int) Ok
{
	return (int) KSTDGUIITEM_Ok;
}

+ (int) Cancel
{
	return (int) KSTDGUIITEM_Cancel;
}

+ (int) Yes
{
	return (int) KSTDGUIITEM_Yes;
}

+ (int) No
{
	return (int) KSTDGUIITEM_No;
}

+ (int) Discard
{
	return (int) KSTDGUIITEM_Discard;
}

+ (int) Save
{
	return (int) KSTDGUIITEM_Save;
}

+ (int) DontSave
{
	return (int) KSTDGUIITEM_DontSave;
}

+ (int) SaveAs
{
	return (int) KSTDGUIITEM_SaveAs;
}

+ (int) Apply
{
	return (int) KSTDGUIITEM_Apply;
}

+ (int) Clear
{
	return (int) KSTDGUIITEM_Clear;
}

+ (int) Help
{
	return (int) KSTDGUIITEM_Help;
}

+ (int) Defaults
{
	return (int) KSTDGUIITEM_Defaults;
}

+ (int) Close
{
	return (int) KSTDGUIITEM_Close;
}

+ (int) Back
{
	return (int) KSTDGUIITEM_Back;
}

+ (int) Forward
{
	return (int) KSTDGUIITEM_Forward;
}

@end
