/***************************************************************************
                            KToolBarSeparator.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_KToolBarSeparator.h>
#include <kdeobjc/KDESupport.h>
#include <kdeobjc/KToolBarSeparator.h>
#include <qtobjc/QStyle.h>
#include <qtobjc/QToolBar.h>


@implementation  KToolBarSeparator


- initWithInt: (int)arg1 l: (BOOL)l parent: (QToolBar*)parent name: (NSString *)name
{
	if ([self qt] == 0L) {
		[self setQt: kde_new_KToolBarSeparator((int)arg1, (int)l, (qt_QToolBar*) [parent qt], (char*) [name cString])];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- initWithInt: (int)arg1 l: (BOOL)l parent: (QToolBar*)parent 
{
	if ([self qt] == 0L) {
		[self setQt: kde_new_KToolBarSeparator((int)arg1, (int)l, (qt_QToolBar*) [parent qt], 0)];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

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

- (int) orientation
{
	return (int) kde_KToolBarSeparator_orientation((kde_KToolBarSeparator *)[self qt]);
}

- (QSizePolicy*) sizePolicy
{
	return (QSizePolicy*) [QtSupport objectForQtKey: kde_KToolBarSeparator_sizePolicy((kde_KToolBarSeparator *)[self qt]) withClass: [QSizePolicy class] allocatedInObjcWorld: YES];
}

- (BOOL) showLine
{
	return (BOOL) kde_KToolBarSeparator_showLine((kde_KToolBarSeparator *)[self qt]);
}

- setOrientation: (int)arg1
{
	kde_KToolBarSeparator_setOrientation((kde_KToolBarSeparator *)[self qt], (int)arg1);
	return self;
}

- styleChange: (QStyle*)arg1
{
	kde_KToolBarSeparator_styleChange((kde_KToolBarSeparator *)[self qt], (qt_QStyle*) [arg1 qt]);
	return self;
}

@end
