/***************************************************************************
                            QIconViewItem.h -  description
                             -------------------
    begin                : Wed Nov 21 12:08:37 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 12:08:37 2001, 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.                       *
 *                                                                         *
 ***************************************************************************/

#ifndef QICONVIEWITEM_H
#define QICONVIEWITEM_H

#include <Foundation/NSObject.h>
#include <Foundation/NSString.h>
#include <qtobjc/Qt.h>

@class QIconView;
@class QPixmap;
@class QPoint;
@class QRect;
@class QSize;
@class QMimeSource;
@class QPainter;
@class QColorGroup;
@class QPicture;

@interface QIconViewItem : Qt 
- initWithIconView: (QIconView*)parent;
- initWithIconView: (QIconView*)parent after: (QIconViewItem*)after;
- initWithIconView: (QIconView*)parent text: (NSString *)text;
- initWithIconView: (QIconView*)parent after: (QIconViewItem*)after text: (NSString *)text;
- initWithIconView: (QIconView*)parent text: (NSString *)text icon: (QPixmap *)icon;
- initWithIconView: (QIconView*)parent after: (QIconViewItem*)after text: (NSString *)text icon: (QPixmap *)icon;
- initWithIconView: (QIconView*)parent text: (NSString *)text picture: (QPicture *)picture;
- initWithIconView: (QIconView*)parent after: (QIconViewItem*)after text: (NSString *)text picture: (QPicture *)picture;
- (void) dealloc;
- setRenameEnabled: (BOOL)allow;
- setDragEnabled: (BOOL)allow;
- setDropEnabled: (BOOL)allow;
- (NSString *) text;
- (QPixmap*) pixmap;
- (QPicture*) picture;
- (NSString *) key;
- (BOOL) renameEnabled;
- (BOOL) dragEnabled;
- (BOOL) dropEnabled;
- (QIconView*) iconView;
- (QIconViewItem*) prevItem;
- (QIconViewItem*) nextItem;
- (int) index;
- setSelected: (BOOL)s cb: (BOOL)cb;
- setSelected: (BOOL)s;
- setSelectable: (BOOL)s;
- (BOOL) isSelected;
- (BOOL) isSelectable;
- repaint;
- (BOOL) move: (int)x y: (int)y;
- moveBy: (int)dx dy: (int)dy;
- (BOOL) move: (QPoint*)pnt;
- moveBy: (QPoint*)pnt;
- (QRect*) rect;
- (int) x;
- (int) y;
- (int) width;
- (int) height;
- (QSize*) size;
- (QPoint*) pos;
- (QRect*) textRect: (BOOL)relative;
- (QRect*) textRect;
- (QRect*) pixmapRect: (BOOL)relative;
- (QRect*) pixmapRect;
- (BOOL) contains: (QPoint*)pnt;
- (BOOL) intersects: (QRect*)r;
- (BOOL) acceptDrop: (QMimeSource*)mime;
- rename;
- (int) compare: (QIconViewItem*)i;
- setText: (NSString *)text;
- setPixmap: (QPixmap *)icon;
- setPicture: (QPicture *)icon;
- setText: (NSString *)text recalc: (BOOL)recalc redraw: (BOOL)redraw;
- setText: (NSString *)text recalc: (BOOL)recalc ;
- setPixmap: (QPixmap *)icon recalc: (BOOL)recalc redraw: (BOOL)redraw;
- setPixmap: (QPixmap *)icon recalc: (BOOL)recalc ;
- setKey: (NSString *)k;
- (int) rtti;
- removeRenameBox;
- calcRect: (NSString *)text_;
- calcRect;
- paintItem: (QPainter *)p cg: (QColorGroup *)cg;
- paintFocus: (QPainter *)p cg: (QColorGroup *)cg;
- dragEntered;
- dragLeft;
- setItemRect: (QRect*)r;
- setTextRect: (QRect*)r;
- setPixmapRect: (QRect*)r;
- calcTmpText;
@end

#endif
