// C++ interface header file.
//
// Generated by SIP 3.7 (build 102) on Fri Jul 25 00:26:04 2003
//
// Copyright (c) 2003
// 	Riverbank Computing Limited <info@riverbankcomputing.co.uk>
// 
// This file is part of PyQt.
// 
// This copy of PyQt is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the Free
// Software Foundation; either version 2, or (at your option) any later
// version.
// 
// PyQt is supplied in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
// FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
// details.
// 
// You should have received a copy of the GNU General Public License along with
// PyQt; see the file LICENSE.  If not, write to the Free Software Foundation,
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

#ifndef _qtQLayout_h
#define	_qtQLayout_h

#line 260 "sip/qlayout.sip"
#include <qabstractlayout.h>
#line 30 "sipqtQLayout.h"

#include "sipqtQObject.h"
#include "sipqtQLayoutItem.h"
#include "sipqtQWidget.h"
#include "sipqtQMenuBar.h"
#include "sipqtQRect.h"
#include "sipqtQSize.h"
#include "sipqtQLayoutIterator.h"
#include "sipqtQEvent.h"
#include "sipqtQChildEvent.h"


extern SIP_IMPORT sipLazyAttrDef sipClassAttrTab_QLayout;

extern SIP_IMPORT const void *sipCast_QLayout Py_PROTO((const void *,PyObject *));
extern SIP_IMPORT PyObject *sipNew_QLayout Py_PROTO((PyObject *,PyObject *));


class SIP_IMPORT sipQLayout : public QLayout
{
public:
	sipQLayout(QWidget *,int,int,const char *);
	sipQLayout(QLayout *,int,const char *);
	sipQLayout(int,const char *);
	~sipQLayout();
	void setAlignment(int);
	QSpacerItem * spacerItem();
	QLayout * layout();
	QLayoutIterator iterator();
	QWidget * widget();
	void invalidate();
	int heightForWidth(int) const;
	bool hasHeightForWidth() const;
	bool isEmpty() const;
	QRect geometry() const;
	void setGeometry(const QRect&);
	QSizePolicy::ExpandData expanding() const;
	QSize maximumSize() const;
	QSize minimumSize() const;
	QSize sizeHint() const;
	void customEvent(QCustomEvent *);
	void childEvent(QChildEvent *);
	void timerEvent(QTimerEvent *);
	QVariant property(const char *) const;
	bool setProperty(const char *,const QVariant&);
	void removeChild(QObject *);
	void insertChild(QObject *);
	void setName(const char *);
	bool eventFilter(QObject *,QEvent *);
	bool event(QEvent *);
	void addItem(QLayoutItem *);
	static void sipVH_addItem(const sipMethodCache *,sipThisType *,QLayoutItem *);
	void setAutoAdd(bool);
	static void sipVH_setAutoAdd(const sipMethodCache *,sipThisType *,bool);
	void setMenuBar(QMenuBar *);
	static void sipVH_setMenuBar(const sipMethodCache *,sipThisType *,QMenuBar *);
	void setSpacing(int);
	static void sipVH_setSpacing(const sipMethodCache *,sipThisType *,int);
	void setMargin(int);
	static void sipVH_setMargin(const sipMethodCache *,sipThisType *,int);

	// There is a public member function for every protected member
	// function visible from this class.

	const QObject * sipProtect_sender();
	void sipProtect_timerEvent(QTimerEvent *);
	void sipProtect_customEvent(QCustomEvent *);
	bool sipProtect_eventFilter(QObject *,QEvent *);
	void sipProtect_childEvent(QChildEvent *);
	void sipProtect_addChildLayout(QLayout *);
	void sipProtect_deleteAllItems();
	void sipProtect_setSupportsMargin(bool);
	QRect sipProtect_alignmentRect(const QRect&);

	// There is a public member function for every Qt signal that can be
	// emitted by this object.  This function is called by Python to emit
	// the signal.

	int sipEmit_destroyed(PyObject *sipArgs);

	sipThisType *sipPyThis;

private:
	sipQLayout(const sipQLayout &);
	sipQLayout &operator = (const sipQLayout &);

	sipMethodCache sipPyMethods[30];
};

extern SIP_IMPORT QLayout *sipForceConvertTo_QLayout Py_PROTO((PyObject *,int *));

#endif
