/***************************************************************************
                            KDialogBase.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_KDialogBase.h>
#include <kdeobjc/KDESupport.h>
#include <kdeobjc/KDialogBase.h>
#include <kdeobjc/KGuiItem.h>

#include <kdeobjc/KStdGuiItem.h>
#include <qtobjc/QPixmap.h>
#include <qtobjc/QSize.h>


@implementation  KDialogBase


- initWithWidget: (QWidget *)parent name: (NSString *)name modal: (BOOL)modal caption: (NSString *)caption buttonMask: (int)buttonMask defaultButton: (int)defaultButton separator: (BOOL)separator user1: (KGuiItem*)user1 user2: (KGuiItem*)user2 user3: (KGuiItem*)user3
{
static qt_QString * _qstring_caption = 0L;
	if ([self qt] == 0L) {
		[self setQt: kde_new_KDialogBase((qt_QWidget *) [parent qt], (char*) [name cString], (int)modal, (qt_QString *) [caption toQString: &_qstring_caption], (int)buttonMask, (int)defaultButton, (int)separator, (kde_KGuiItem*) [user1 qt], (kde_KGuiItem*) [user2 qt], (kde_KGuiItem*) [user3 qt])];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- init
{
	if ([self qt] == 0L) {
		[self setQt: kde_new_KDialogBase(0, 0, 1, qt_QString_null(), [KDialogBase Ok]|[KDialogBase Apply]|[KDialogBase Cancel], [KDialogBase Ok], 0, 0, 0, 0)];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- initWithInt: (int)dialogFace caption: (NSString *)caption buttonMask: (int)buttonMask defaultButton: (int)defaultButton parent: (QWidget *)parent name: (NSString *)name modal: (BOOL)modal separator: (BOOL)separator user1: (KGuiItem*)user1 user2: (KGuiItem*)user2 user3: (KGuiItem*)user3
{
static qt_QString * _qstring_caption = 0L;
	if ([self qt] == 0L) {
		[self setQt: kde_new_KDialogBase1((int)dialogFace, (qt_QString *) [caption toQString: &_qstring_caption], (int)buttonMask, (int)defaultButton, (qt_QWidget *) [parent qt], (char*) [name cString], (int)modal, (int)separator, (kde_KGuiItem*) [user1 qt], (kde_KGuiItem*) [user2 qt], (kde_KGuiItem*) [user3 qt])];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- initWithInt: (int)dialogFace caption: (NSString *)caption buttonMask: (int)buttonMask defaultButton: (int)defaultButton
{
static qt_QString * _qstring_caption = 0L;
	if ([self qt] == 0L) {
		[self setQt: kde_new_KDialogBase1((int)dialogFace, (qt_QString *) [caption toQString: &_qstring_caption], (int)buttonMask, (int)defaultButton, 0, 0, 1, 0, 0, 0, 0)];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- initWithText: (NSString *)caption buttonMask: (int)buttonMask defaultButton: (int)defaultButton escapeButton: (int)escapeButton parent: (QWidget *)parent name: (NSString *)name modal: (BOOL)modal separator: (BOOL)separator yes: (KGuiItem*)yes no: (KGuiItem*)no cancel: (KGuiItem*)cancel
{
static qt_QString * _qstring_caption = 0L;
	if ([self qt] == 0L) {
		[self setQt: kde_new_KDialogBase2((qt_QString *) [caption toQString: &_qstring_caption], (int)buttonMask, (int)defaultButton, (int)escapeButton, (qt_QWidget *) [parent qt], (char*) [name cString], (int)modal, (int)separator, (kde_KGuiItem*) [yes qt], (kde_KGuiItem*) [no qt], (kde_KGuiItem*) [cancel qt])];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- initWithText: (NSString *)caption 
{
static qt_QString * _qstring_caption = 0L;
	if ([self qt] == 0L) {
		[self setQt: kde_new_KDialogBase2((qt_QString *) [caption toQString: &_qstring_caption], [KDialogBase Yes]|[KDialogBase No]|[KDialogBase Cancel], [KDialogBase Yes], [KDialogBase Cancel], 0, 0, 1, 0, [KStdGuiItem yes], [KStdGuiItem no], [KStdGuiItem cancel])];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- (void) dealloc
{
	if ([self qt] != 0L) {
		if ([self allocatedInObjcWorld] && [self parentWidget: YES] == nil) {
			kde_del_KDialogBase((kde_KDialogBase *)[self qt]);
		}
		[QtSupport removeQtKey: [self qt]];
		[self setQt: 0L];
	}
	[super dealloc];
}

- delayedDestruct
{
	kde_KDialogBase_delayedDestruct((kde_KDialogBase *)[self qt]);
	return self;
}

- setButtonBoxOrientation: (int)orientation
{
	kde_KDialogBase_setButtonBoxOrientation((kde_KDialogBase *)[self qt], (int)orientation);
	return self;
}

- setEscapeButton: (int)identifier
{
	kde_KDialogBase_setEscapeButton((kde_KDialogBase *)[self qt], (int)identifier);
	return self;
}

- adjustSize
{
	kde_KDialogBase_adjustSize((kde_KDialogBase *)[self qt]);
	return self;
}

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

- (QSize*) minimumSizeHint
{
	return (QSize*) [QtSupport objectForQtKey: kde_KDialogBase_minimumSizeHint((kde_KDialogBase *)[self qt]) withClass: [QSize class] allocatedInObjcWorld: YES];
}

- (QFrame*) plainPage
{
	return (QFrame*) [QtSupport objectForQtKey: kde_KDialogBase_plainPage((kde_KDialogBase *)[self qt]) withClass: [QFrame class] allocatedInObjcWorld: YES];
}

- (QFrame*) addPage: (NSString *)item header: (NSString *)header pixmap: (QPixmap *)pixmap
{
static qt_QString * _qstring_header = 0L;
static qt_QString * _qstring_item = 0L;
	return (QFrame*) [QtSupport objectForQtKey: kde_KDialogBase_addPage((kde_KDialogBase *)[self qt], (qt_QString *) [item toQString: &_qstring_item], (qt_QString *) [header toQString: &_qstring_header], (qt_QPixmap *) [pixmap qt]) withClass: [QFrame class] allocatedInObjcWorld: YES];
}

- (QFrame*) addPage: (NSString *)item 
{
static qt_QString * _qstring_item = 0L;
	return (QFrame*) [QtSupport objectForQtKey: kde_KDialogBase_addPage((kde_KDialogBase *)[self qt], (qt_QString *) [item toQString: &_qstring_item], qt_QString_null(), 0) withClass: [QFrame class] allocatedInObjcWorld: YES];
}

- (QFrame*) addPageForItems: (NSArray *)items header: (NSString *)header pixmap: (QPixmap *)pixmap
{
static qt_QString * _qstring_header = 0L;
static qt_QStringList * _qlist_items = 0L;
	return (QFrame*) [QtSupport objectForQtKey: kde_KDialogBase_addPage1((kde_KDialogBase *)[self qt], (qt_QStringList*) [items toQStringList: (void *)&_qlist_items], (qt_QString *) [header toQString: &_qstring_header], (qt_QPixmap *) [pixmap qt]) withClass: [QFrame class] allocatedInObjcWorld: YES];
}

- (QFrame*) addPageForItems: (NSArray *)items
{
static qt_QStringList * _qlist_items = 0L;
	return (QFrame*) [QtSupport objectForQtKey: kde_KDialogBase_addPage1((kde_KDialogBase *)[self qt], (qt_QStringList*) [items toQStringList: (void *)&_qlist_items], qt_QString_null(), 0) withClass: [QFrame class] allocatedInObjcWorld: YES];
}

- (QVBox*) addVBoxPage: (NSString *)itemName header: (NSString *)header pixmap: (QPixmap *)pixmap
{
static qt_QString * _qstring_header = 0L;
static qt_QString * _qstring_itemName = 0L;
	return (QVBox*) [QtSupport objectForQtKey: kde_KDialogBase_addVBoxPage((kde_KDialogBase *)[self qt], (qt_QString *) [itemName toQString: &_qstring_itemName], (qt_QString *) [header toQString: &_qstring_header], (qt_QPixmap *) [pixmap qt]) withClass: [QVBox class] allocatedInObjcWorld: YES];
}

- (QVBox*) addVBoxPage: (NSString *)itemName 
{
static qt_QString * _qstring_itemName = 0L;
	return (QVBox*) [QtSupport objectForQtKey: kde_KDialogBase_addVBoxPage((kde_KDialogBase *)[self qt], (qt_QString *) [itemName toQString: &_qstring_itemName], qt_QString_null(), 0) withClass: [QVBox class] allocatedInObjcWorld: YES];
}

- (QVBox*) addVBoxPageForItems: (NSArray *)items header: (NSString *)header pixmap: (QPixmap *)pixmap
{
static qt_QString * _qstring_header = 0L;
static qt_QStringList * _qlist_items = 0L;
	return (QVBox*) [QtSupport objectForQtKey: kde_KDialogBase_addVBoxPage1((kde_KDialogBase *)[self qt], (qt_QStringList*) [items toQStringList: (void *)&_qlist_items], (qt_QString *) [header toQString: &_qstring_header], (qt_QPixmap *) [pixmap qt]) withClass: [QVBox class] allocatedInObjcWorld: YES];
}

- (QVBox*) addVBoxPageForItems: (NSArray *)items
{
static qt_QStringList * _qlist_items = 0L;
	return (QVBox*) [QtSupport objectForQtKey: kde_KDialogBase_addVBoxPage1((kde_KDialogBase *)[self qt], (qt_QStringList*) [items toQStringList: (void *)&_qlist_items], qt_QString_null(), 0) withClass: [QVBox class] allocatedInObjcWorld: YES];
}

- (QHBox*) addHBoxPage: (NSString *)itemName header: (NSString *)header pixmap: (QPixmap *)pixmap
{
static qt_QString * _qstring_header = 0L;
static qt_QString * _qstring_itemName = 0L;
	return (QHBox*) [QtSupport objectForQtKey: kde_KDialogBase_addHBoxPage((kde_KDialogBase *)[self qt], (qt_QString *) [itemName toQString: &_qstring_itemName], (qt_QString *) [header toQString: &_qstring_header], (qt_QPixmap *) [pixmap qt]) withClass: [QHBox class] allocatedInObjcWorld: YES];
}

- (QHBox*) addHBoxPage: (NSString *)itemName
{
static qt_QString * _qstring_itemName = 0L;
	return (QHBox*) [QtSupport objectForQtKey: kde_KDialogBase_addHBoxPage((kde_KDialogBase *)[self qt], (qt_QString *) [itemName toQString: &_qstring_itemName], qt_QString_null(), 0) withClass: [QHBox class] allocatedInObjcWorld: YES];
}

- (QHBox*) addHBoxPageForItems: (NSArray *)items header: (NSString *)header pixmap: (QPixmap *)pixmap
{
static qt_QString * _qstring_header = 0L;
static qt_QStringList * _qlist_items = 0L;
	return (QHBox*) [QtSupport objectForQtKey: kde_KDialogBase_addHBoxPage1((kde_KDialogBase *)[self qt], (qt_QStringList*) [items toQStringList: (void *)&_qlist_items], (qt_QString *) [header toQString: &_qstring_header], (qt_QPixmap *) [pixmap qt]) withClass: [QHBox class] allocatedInObjcWorld: YES];
}

- (QHBox*) addHBoxPageForItems: (NSArray *)items
{
static qt_QStringList * _qlist_items = 0L;
	return (QHBox*) [QtSupport objectForQtKey: kde_KDialogBase_addHBoxPage1((kde_KDialogBase *)[self qt], (qt_QStringList*) [items toQStringList: (void *)&_qlist_items], qt_QString_null(), 0) withClass: [QHBox class] allocatedInObjcWorld: YES];
}

- (QGrid*) addGridPage: (int)n dir: (int)dir itemName: (NSString *)itemName header: (NSString *)header pixmap: (QPixmap *)pixmap
{
static qt_QString * _qstring_header = 0L;
static qt_QString * _qstring_itemName = 0L;
	return (QGrid*) [QtSupport objectForQtKey: kde_KDialogBase_addGridPage((kde_KDialogBase *)[self qt], (int)n, (int)dir, (qt_QString *) [itemName toQString: &_qstring_itemName], (qt_QString *) [header toQString: &_qstring_header], (qt_QPixmap *) [pixmap qt]) withClass: [QGrid class] allocatedInObjcWorld: YES];
}

- (QGrid*) addGridPage: (int)n dir: (int)dir itemName: (NSString *)itemName 
{
static qt_QString * _qstring_itemName = 0L;
	return (QGrid*) [QtSupport objectForQtKey: kde_KDialogBase_addGridPage((kde_KDialogBase *)[self qt], (int)n, (int)dir, (qt_QString *) [itemName toQString: &_qstring_itemName], qt_QString_null(), 0) withClass: [QGrid class] allocatedInObjcWorld: YES];
}

- (QGrid*) addGridPage: (int)n dir: (int)dir items: (NSArray *)items header: (NSString *)header pixmap: (QPixmap *)pixmap
{
static qt_QString * _qstring_header = 0L;
static qt_QStringList * _qlist_items = 0L;
	return (QGrid*) [QtSupport objectForQtKey: kde_KDialogBase_addGridPage1((kde_KDialogBase *)[self qt], (int)n, (int)dir, (qt_QStringList*) [items toQStringList: (void *)&_qlist_items], (qt_QString *) [header toQString: &_qstring_header], (qt_QPixmap *) [pixmap qt]) withClass: [QGrid class] allocatedInObjcWorld: YES];
}

- (QGrid*) addGridPage: (int)n dir: (int)dir items: (NSArray *)items 
{
static qt_QStringList * _qlist_items = 0L;
	return (QGrid*) [QtSupport objectForQtKey: kde_KDialogBase_addGridPage1((kde_KDialogBase *)[self qt], (int)n, (int)dir, (qt_QStringList*) [items toQStringList: (void *)&_qlist_items], qt_QString_null(), 0) withClass: [QGrid class] allocatedInObjcWorld: YES];
}

- setFolderIcon: (NSArray *)path pixmap: (QPixmap *)pixmap
{
static qt_QStringList * _qlist_path = 0L;
	kde_KDialogBase_setFolderIcon((kde_KDialogBase *)[self qt], (qt_QStringList*) [path toQStringList: (void *)&_qlist_path], (qt_QPixmap *) [pixmap qt]);
	return self;
}

- (QFrame*) makeMainWidget
{
	return (QFrame*) [QtSupport objectForQtKey: kde_KDialogBase_makeMainWidget((kde_KDialogBase *)[self qt]) withClass: [QFrame class] allocatedInObjcWorld: YES];
}

- (QVBox*) makeVBoxMainWidget
{
	return (QVBox*) [QtSupport objectForQtKey: kde_KDialogBase_makeVBoxMainWidget((kde_KDialogBase *)[self qt]) withClass: [QVBox class] allocatedInObjcWorld: YES];
}

- (QHBox*) makeHBoxMainWidget
{
	return (QHBox*) [QtSupport objectForQtKey: kde_KDialogBase_makeHBoxMainWidget((kde_KDialogBase *)[self qt]) withClass: [QHBox class] allocatedInObjcWorld: YES];
}

- (QGrid*) makeGridMainWidget: (int)n dir: (int)dir
{
	return (QGrid*) [QtSupport objectForQtKey: kde_KDialogBase_makeGridMainWidget((kde_KDialogBase *)[self qt], (int)n, (int)dir) withClass: [QGrid class] allocatedInObjcWorld: YES];
}

- enableButtonSeparator: (BOOL)state
{
	kde_KDialogBase_enableButtonSeparator((kde_KDialogBase *)[self qt], (int)state);
	return self;
}

- showButton: (int)identifier state: (BOOL)state
{
	kde_KDialogBase_showButton((kde_KDialogBase *)[self qt], (int)identifier, (int)state);
	return self;
}

- showButtonOK: (BOOL)state
{
	kde_KDialogBase_showButtonOK((kde_KDialogBase *)[self qt], (int)state);
	return self;
}

- showButtonApply: (BOOL)state
{
	kde_KDialogBase_showButtonApply((kde_KDialogBase *)[self qt], (int)state);
	return self;
}

- showButtonCancel: (BOOL)state
{
	kde_KDialogBase_showButtonCancel((kde_KDialogBase *)[self qt], (int)state);
	return self;
}

- (BOOL) showPage: (int)index
{
	return (BOOL) kde_KDialogBase_showPage((kde_KDialogBase *)[self qt], (int)index);
}

- (int) activePageIndex
{
	return (int) kde_KDialogBase_activePageIndex((kde_KDialogBase *)[self qt]);
}

- (int) pageIndex: (QWidget *)widget
{
	return (int) kde_KDialogBase_pageIndex((kde_KDialogBase *)[self qt], (qt_QWidget *) [widget qt]);
}

- setMainWidget: (QWidget *)widget
{
	kde_KDialogBase_setMainWidget((kde_KDialogBase *)[self qt], (qt_QWidget *) [widget qt]);
	return self;
}

- (QWidget*) mainWidget
{
	return (QWidget*) [QtSupport objectForQtKey: kde_KDialogBase_mainWidget((kde_KDialogBase *)[self qt]) withClass: [QWidget class] allocatedInObjcWorld: YES];
}

- disableResize
{
	kde_KDialogBase_disableResize((kde_KDialogBase *)[self qt]);
	return self;
}

- setInitialSize: (QSize *)s noResize: (BOOL)noResize
{
	kde_KDialogBase_setInitialSize((kde_KDialogBase *)[self qt], (qt_QSize *) [s qt], (int)noResize);
	return self;
}

- setInitialSize: (QSize *)s 
{
	kde_KDialogBase_setInitialSize((kde_KDialogBase *)[self qt], (qt_QSize *) [s qt], 0);
	return self;
}

- incInitialSize: (QSize *)s noResize: (BOOL)noResize
{
	kde_KDialogBase_incInitialSize((kde_KDialogBase *)[self qt], (qt_QSize *) [s qt], (int)noResize);
	return self;
}

- incInitialSize: (QSize *)s 
{
	kde_KDialogBase_incInitialSize((kde_KDialogBase *)[self qt], (qt_QSize *) [s qt], 0);
	return self;
}

- setButtonOKText: (NSString *)text tooltip: (NSString *)tooltip quickhelp: (NSString *)quickhelp
{
static qt_QString * _qstring_quickhelp = 0L;
static qt_QString * _qstring_tooltip = 0L;
static qt_QString * _qstring_text = 0L;
	kde_KDialogBase_setButtonOKText((kde_KDialogBase *)[self qt], (qt_QString *) [text toQString: &_qstring_text], (qt_QString *) [tooltip toQString: &_qstring_tooltip], (qt_QString *) [quickhelp toQString: &_qstring_quickhelp]);
	return self;
}

- setButtonOKText
{
	kde_KDialogBase_setButtonOKText((kde_KDialogBase *)[self qt], qt_QString_null(), qt_QString_null(), qt_QString_null());
	return self;
}

- setButtonApplyText: (NSString *)text tooltip: (NSString *)tooltip quickhelp: (NSString *)quickhelp
{
static qt_QString * _qstring_quickhelp = 0L;
static qt_QString * _qstring_tooltip = 0L;
static qt_QString * _qstring_text = 0L;
	kde_KDialogBase_setButtonApplyText((kde_KDialogBase *)[self qt], (qt_QString *) [text toQString: &_qstring_text], (qt_QString *) [tooltip toQString: &_qstring_tooltip], (qt_QString *) [quickhelp toQString: &_qstring_quickhelp]);
	return self;
}

- setButtonApplyText
{
	kde_KDialogBase_setButtonApplyText((kde_KDialogBase *)[self qt], qt_QString_null(), qt_QString_null(), qt_QString_null());
	return self;
}

- setButtonCancelText: (NSString *)text tooltip: (NSString *)tooltip quickhelp: (NSString *)quickhelp
{
static qt_QString * _qstring_quickhelp = 0L;
static qt_QString * _qstring_tooltip = 0L;
static qt_QString * _qstring_text = 0L;
	kde_KDialogBase_setButtonCancelText((kde_KDialogBase *)[self qt], (qt_QString *) [text toQString: &_qstring_text], (qt_QString *) [tooltip toQString: &_qstring_tooltip], (qt_QString *) [quickhelp toQString: &_qstring_quickhelp]);
	return self;
}

- setButtonCancelText
{
	kde_KDialogBase_setButtonCancelText((kde_KDialogBase *)[self qt], qt_QString_null(), qt_QString_null(), qt_QString_null());
	return self;
}

- setButtonText: (int)identifier text: (NSString *)text
{
static qt_QString * _qstring_text = 0L;
	kde_KDialogBase_setButtonText((kde_KDialogBase *)[self qt], (int)identifier, (qt_QString *) [text toQString: &_qstring_text]);
	return self;
}

- setButtonTip: (int)identifier text: (NSString *)text
{
static qt_QString * _qstring_text = 0L;
	kde_KDialogBase_setButtonTip((kde_KDialogBase *)[self qt], (int)identifier, (qt_QString *) [text toQString: &_qstring_text]);
	return self;
}

- setButtonWhatsThis: (int)identifier text: (NSString *)text
{
static qt_QString * _qstring_text = 0L;
	kde_KDialogBase_setButtonWhatsThis((kde_KDialogBase *)[self qt], (int)identifier, (qt_QString *) [text toQString: &_qstring_text]);
	return self;
}

- setTreeListAutoResize: (BOOL)state
{
	kde_KDialogBase_setTreeListAutoResize((kde_KDialogBase *)[self qt], (int)state);
	return self;
}

- setShowIconsInTreeList: (BOOL)state
{
	kde_KDialogBase_setShowIconsInTreeList((kde_KDialogBase *)[self qt], (int)state);
	return self;
}

- setRootIsDecorated: (BOOL)state
{
	kde_KDialogBase_setRootIsDecorated((kde_KDialogBase *)[self qt], (int)state);
	return self;
}

- setIconListAllVisible: (BOOL)state
{
	kde_KDialogBase_setIconListAllVisible((kde_KDialogBase *)[self qt], (int)state);
	return self;
}

- showTile: (BOOL)state
{
	kde_KDialogBase_showTile((kde_KDialogBase *)[self qt], (int)state);
	return self;
}

- getBorderWidths: (int)ulx uly: (int)uly lrx: (int)lrx lry: (int)lry
{
	kde_KDialogBase_getBorderWidths((kde_KDialogBase *)[self qt], (int)ulx, (int)uly, (int)lrx, (int)lry);
	return self;
}

- (QRect*) getContentsRect
{
	return (QRect*) [QtSupport objectForQtKey: kde_KDialogBase_getContentsRect((kde_KDialogBase *)[self qt]) withClass: [QRect class] allocatedInObjcWorld: YES];
}

- (QSize*) calculateSize: (int)w h: (int)h
{
	return (QSize*) [QtSupport objectForQtKey: kde_KDialogBase_calculateSize((kde_KDialogBase *)[self qt], (int)w, (int)h) withClass: [QSize class] allocatedInObjcWorld: YES];
}

- (NSString *) helpLinkText
{
static qt_QString * _qstring = 0L;
	_qstring = kde_KDialogBase_helpLinkText((kde_KDialogBase *)[self qt]);
	return [NSString fromQString: _qstring];
}

- (QPushButton*) actionButton: (int)identifier
{
	return (QPushButton*) [QtSupport objectForQtKey: kde_KDialogBase_actionButton((kde_KDialogBase *)[self qt], (int)identifier) withClass: [QPushButton class] allocatedInObjcWorld: YES];
}

- enableButton: (int)identifier state: (BOOL)state
{
	kde_KDialogBase_enableButton((kde_KDialogBase *)[self qt], (int)identifier, (int)state);
	return self;
}

- enableButtonOK: (BOOL)state
{
	kde_KDialogBase_enableButtonOK((kde_KDialogBase *)[self qt], (int)state);
	return self;
}

- enableButtonApply: (BOOL)state
{
	kde_KDialogBase_enableButtonApply((kde_KDialogBase *)[self qt], (int)state);
	return self;
}

- enableButtonCancel: (BOOL)state
{
	kde_KDialogBase_enableButtonCancel((kde_KDialogBase *)[self qt], (int)state);
	return self;
}

- enableLinkedHelp: (BOOL)state
{
	kde_KDialogBase_enableLinkedHelp((kde_KDialogBase *)[self qt], (int)state);
	return self;
}

- setHelpLinkText: (NSString *)text
{
static qt_QString * _qstring_text = 0L;
	kde_KDialogBase_setHelpLinkText((kde_KDialogBase *)[self qt], (qt_QString *) [text toQString: &_qstring_text]);
	return self;
}

- setHelp: (NSString *)anchor appname: (NSString *)appname
{
static qt_QString * _qstring_appname = 0L;
static qt_QString * _qstring_anchor = 0L;
	kde_KDialogBase_setHelp((kde_KDialogBase *)[self qt], (qt_QString *) [anchor toQString: &_qstring_anchor], (qt_QString *) [appname toQString: &_qstring_appname]);
	return self;
}

- setHelp: (NSString *)anchor 
{
static qt_QString * _qstring_anchor = 0L;
	kde_KDialogBase_setHelp((kde_KDialogBase *)[self qt], (qt_QString *) [anchor toQString: &_qstring_anchor], qt_QString_null());
	return self;
}

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

- setDetails: (BOOL)showDetails
{
	kde_KDialogBase_setDetails((kde_KDialogBase *)[self qt], (int)showDetails);
	return self;
}

- setDetailsWidget: (QWidget *)detailsWidget
{
	kde_KDialogBase_setDetailsWidget((kde_KDialogBase *)[self qt], (qt_QWidget *) [detailsWidget qt]);
	return self;
}

- updateBackground
{
	kde_KDialogBase_updateBackground((kde_KDialogBase *)[self qt]);
	return self;
}

+ (BOOL) haveBackgroundTile
{
	return (BOOL) kde_KDialogBase_haveBackgroundTile();
}

+ (QPixmap*) backgroundTile
{
	return (QPixmap*) [QtSupport objectForQtKey: kde_KDialogBase_backgroundTile() withClass: [QPixmap class] allocatedInObjcWorld: YES];
}

+ (QPixmap*) getBackgroundTile
{
	return (QPixmap*) [QtSupport objectForQtKey: kde_KDialogBase_getBackgroundTile() withClass: [QPixmap class] allocatedInObjcWorld: YES];
}

+ setBackgroundTile: (QPixmap *)pix
{
	kde_KDialogBase_setBackgroundTile((qt_QPixmap *) [pix qt]);
	return self;
}

- slotHelp
{
	kde_KDialogBase_slotHelp((kde_KDialogBase *)[self qt]);
	return self;
}

- slotDefault
{
	kde_KDialogBase_slotDefault((kde_KDialogBase *)[self qt]);
	return self;
}

- slotDetails
{
	kde_KDialogBase_slotDetails((kde_KDialogBase *)[self qt]);
	return self;
}

- slotUser3
{
	kde_KDialogBase_slotUser3((kde_KDialogBase *)[self qt]);
	return self;
}

- slotUser2
{
	kde_KDialogBase_slotUser2((kde_KDialogBase *)[self qt]);
	return self;
}

- slotUser1
{
	kde_KDialogBase_slotUser1((kde_KDialogBase *)[self qt]);
	return self;
}

- slotOk
{
	kde_KDialogBase_slotOk((kde_KDialogBase *)[self qt]);
	return self;
}

- slotApply
{
	kde_KDialogBase_slotApply((kde_KDialogBase *)[self qt]);
	return self;
}

- slotTry
{
	kde_KDialogBase_slotTry((kde_KDialogBase *)[self qt]);
	return self;
}

- slotYes
{
	kde_KDialogBase_slotYes((kde_KDialogBase *)[self qt]);
	return self;
}

- slotNo
{
	kde_KDialogBase_slotNo((kde_KDialogBase *)[self qt]);
	return self;
}

- slotCancel
{
	kde_KDialogBase_slotCancel((kde_KDialogBase *)[self qt]);
	return self;
}

- slotClose
{
	kde_KDialogBase_slotClose((kde_KDialogBase *)[self qt]);
	return self;
}

- applyPressed
{
	kde_KDialogBase_applyPressed((kde_KDialogBase *)[self qt]);
	return self;
}

- updateGeometry
{
	kde_KDialogBase_updateGeometry((kde_KDialogBase *)[self qt]);
	return self;
}

- slotDelayedDestruct
{
	kde_KDialogBase_slotDelayedDestruct((kde_KDialogBase *)[self qt]);
	return self;
}

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

+ (int) Default
{
	return (int) KDIALOGBASE_Default;
}

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

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

+ (int) Try
{
	return (int) KDIALOGBASE_Try;
}

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

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

+ (int) User1
{
	return (int) KDIALOGBASE_User1;
}

+ (int) User2
{
	return (int) KDIALOGBASE_User2;
}

+ (int) User3
{
	return (int) KDIALOGBASE_User3;
}

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

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

+ (int) Details
{
	return (int) KDIALOGBASE_Details;
}

+ (int) Filler
{
	return (int) KDIALOGBASE_Filler;
}

+ (int) Stretch
{
	return (int) KDIALOGBASE_Stretch;
}

+ (int) ActionStyle0
{
	return (int) KDIALOGBASE_ActionStyle0;
}

+ (int) ActionStyle1
{
	return (int) KDIALOGBASE_ActionStyle1;
}

+ (int) ActionStyle2
{
	return (int) KDIALOGBASE_ActionStyle2;
}

+ (int) ActionStyle3
{
	return (int) KDIALOGBASE_ActionStyle3;
}

+ (int) ActionStyle4
{
	return (int) KDIALOGBASE_ActionStyle4;
}

+ (int) ActionStyleMAX
{
	return (int) KDIALOGBASE_ActionStyleMAX;
}

+ (int) TreeList
{
	return (int) KDIALOGBASE_TreeList;
}

+ (int) Tabbed
{
	return (int) KDIALOGBASE_Tabbed;
}

+ (int) Plain
{
	return (int) KDIALOGBASE_Plain;
}

+ (int) Swallow
{
	return (int) KDIALOGBASE_Swallow;
}

+ (int) IconList
{
	return (int) KDIALOGBASE_IconList;
}

@end
