// 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 _qtQCheckListItem_h
#define	_qtQCheckListItem_h

#line 582 "sip/qlistview.sip"
#include <qlistview.h>
#line 30 "sipqtQCheckListItem.h"

#include "sipqtQListViewItem.h"
#include "sipqtQString.h"
#include "sipqtQListView.h"
#include "sipqtQPixmap.h"
#include "sipqtQPainter.h"
#include "sipqtQColorGroup.h"
#include "sipqtQRect.h"
#include "sipqtQFontMetrics.h"


extern SIP_IMPORT sipLazyAttrDef sipClassAttrTab_QCheckListItem;

extern SIP_IMPORT const void *sipCast_QCheckListItem Py_PROTO((const void *,PyObject *));
extern SIP_IMPORT PyObject *sipNew_QCheckListItem Py_PROTO((PyObject *,PyObject *));


class SIP_IMPORT sipQCheckListItem : public QCheckListItem
{
public:
	sipQCheckListItem(QCheckListItem *,const QString&,QCheckListItem::Type);
	sipQCheckListItem(QCheckListItem *,QListViewItem *,const QString&,QCheckListItem::Type);
	sipQCheckListItem(QListViewItem *,const QString&,QCheckListItem::Type);
	sipQCheckListItem(QListViewItem *,QListViewItem *,const QString&,QCheckListItem::Type);
	sipQCheckListItem(QListView *,const QString&,QCheckListItem::Type);
	sipQCheckListItem(QListView *,QListViewItem *,const QString&,QCheckListItem::Type);
	sipQCheckListItem(QListViewItem *,const QString&,const QPixmap&);
	sipQCheckListItem(QListView *,const QString&,const QPixmap&);
	sipQCheckListItem(const QCheckListItem&);
	~sipQCheckListItem();
	void cancelRename(int);
	void okRename(int);
	void dragLeft();
	void dragEntered();
	void dropped(QDropEvent *);
	void activate();
	void setHeight(int);
	void enforceSortOrder() const;
	void setMultiLinesEnabled(bool);
	int rtti() const;
	void setEnabled(bool);
	void startRename(int);
	void setRenameEnabled(int,bool);
	bool acceptDrop(const QMimeSource *) const;
	void setDropEnabled(bool);
	void setDragEnabled(bool);
	void sort();
	void setExpandable(bool);
	void setSelectable(bool);
	void paintBranches(QPainter *,const QColorGroup&,int,int,int);
	void paintCell(QPainter *,const QColorGroup&,int,int,int);
	void setSelected(bool);
	void setup();
	void setOpen(bool);
	void sortChildItems(int,bool);
	int compare(QListViewItem *,int,bool) const;
	QString key(int,bool) const;
	const QPixmap * pixmap(int) const;
	void setPixmap(int,const QPixmap&);
	QString text(int) const;
	void setText(int,const QString&);
	int width(const QFontMetrics&,const QListView *,int) const;
	void invalidateHeight();
	void takeItem(QListViewItem *);
	void insertItem(QListViewItem *);
	void stateChange(bool);
	static void sipVH_stateChange(const sipMethodCache *,sipThisType *,bool);
	void setOn(bool);
	static void sipVH_setOn(const sipMethodCache *,sipThisType *,bool);
	void paintFocus(QPainter *,const QColorGroup&,const QRect&);

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

	void sipProtect_enforceSortOrder();
	void sipProtect_setHeight(int);
	bool sipProtect_activatedPos(QPoint&);
	void sipProtect_dropped(QDropEvent *);
	void sipProtect_dragEntered();
	void sipProtect_dragLeft();
	void sipProtect_okRename(int);
	void sipProtect_cancelRename(int);
	void sipProtect_ignoreDoubleClick();
	void sipProtect_activate();
	void sipProtect_turnOffChild();
	void sipProtect_stateChange(bool);

	sipThisType *sipPyThis;

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

	sipMethodCache sipPyMethods[38];
};

extern SIP_IMPORT QCheckListItem *sipForceConvertTo_QCheckListItem Py_PROTO((PyObject *,int *));

#endif
