/***************************************************************************
                            QIconView.java -  description
                             -------------------
    begin                : Wed Nov 21 17:05:56 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 17:05:56 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program 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 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

package org.kde.qt;

import java.util.*;
import java.lang.Error;

/**
 See {@link QIconViewSignals} for signals emitted by QIconView.

 See {@link QIconViewEventHandling} for event handlers to override in subclasses of QIconView.

*/
public class QIconView extends QScrollView  {
	protected QIconView(Class dummy){super((Class) null);}

	private native void newQIconView( QWidget parent, String name, int f);
	public QIconView( QWidget parent, String name, int f) {
		super((Class) null);
		newQIconView( parent, name, f);
	}
	public QIconView( QWidget parent, String name) {
		this( parent, name, 0);
	}
	private native void newQIconView();
	public QIconView() {
		super((Class) null);
		newQIconView();
	}
	protected native void finalize() throws InternalError;
	public native void insertItem( QIconViewItem item, QIconViewItem after);
	public native void insertItem( QIconViewItem item);
	public native void takeItem( QIconViewItem item);
	public native int index( QIconViewItem item);
	public native QIconViewItem firstItem();
	public native QIconViewItem lastItem();
	public native QIconViewItem currentItem();
	public native void setCurrentItem( QIconViewItem item);
	public native void setSelected( QIconViewItem item, boolean s, boolean cb);
	public native void setSelected( QIconViewItem item, boolean s);
	public native int count();
	public native void showEvent( QShowEvent arg1);
	public native void setSelectionMode( int m);
	public native int selectionMode();
	public native QIconViewItem findItem( QPoint pos);
	public native QIconViewItem findItem( String text, int compare);
	public native QIconViewItem findItem( String text);
	public native void selectAll( boolean select);
	public native void clearSelection();
	public native void invertSelection();
	public native void repaintItem( QIconViewItem item);
	public native void ensureItemVisible( QIconViewItem item);
	public native QIconViewItem findFirstVisibleItem( QRect r);
	public native QIconViewItem findLastVisibleItem( QRect r);
	public native void clear();
	public native void setGridX( int rx);
	public native void setGridY( int ry);
	public native int gridX();
	public native int gridY();
	public native void setSpacing( int sp);
	public native int spacing();
	public native void setItemTextPos( int pos);
	public native int itemTextPos();
	public native void setItemTextBackground( QBrush b);
	public native QBrush itemTextBackground();
	public native void setArrangement( int am);
	public native int arrangement();
	public native void setResizeMode( int am);
	public native int resizeMode();
	public native void setMaxItemWidth( int w);
	public native int maxItemWidth();
	public native void setMaxItemTextLength( int w);
	public native int maxItemTextLength();
	public native void setAutoArrange( boolean b);
	public native boolean autoArrange();
	public native void setShowToolTips( boolean b);
	public native boolean showToolTips();
	public native void setSorting( boolean sort, boolean ascending);
	public native void setSorting( boolean sort);
	public native boolean sorting();
	public native boolean sortDirection();
	public native void setItemsMovable( boolean b);
	public native boolean itemsMovable();
	public native void setWordWrapIconText( boolean b);
	public native boolean wordWrapIconText();
	public native boolean eventFilter( QObject o, QEvent arg1);
	public native QSize minimumSizeHint();
	public native QSize sizeHint();
	public native void sort( boolean ascending);
	public native void sort();
	public native void setFont( QFont arg1);
	public native void setPalette( QPalette arg1);
	public native boolean isRenaming();
	public native void arrangeItemsInGrid( QSize grid, boolean update);
	public native void arrangeItemsInGrid( QSize grid);
	public native void arrangeItemsInGrid( boolean update);
	public native void arrangeItemsInGrid();
	public native void setContentsPos( int x, int y);
	public native void updateContents();
	protected native void drawContents( QPainter p, int cx, int cy, int cw, int ch);
	protected native void drawRubber( QPainter p);
	protected native QDragObject dragObject();
	protected native void startDrag();
	protected native void insertInGrid( QIconViewItem item);
	protected native void drawBackground( QPainter p, QRect r);
	protected native void emitSelectionChanged( QIconViewItem i);
	protected native void emitSelectionChanged();
	protected native void emitRenamed( QIconViewItem item);
	protected native QIconViewItem makeRowLayout( QIconViewItem begin, int y, boolean changed);
	public native void styleChange( QStyle arg1);
	protected native void windowActivationChange( boolean arg1);
	protected native void doAutoScroll();
	protected native void adjustItems();
	protected native void slotUpdate();
	public static final int Single = 0;
	public static final int Multi = 0;
	public static final int Extended = 1;
	public static final int NoSelection = 2;
	public static final int LeftToRight = 0;
	public static final int TopToBottom = 0;
	public static final int Fixed = 0;
	public static final int Adjust = 0;
	public static final int Bottom = 0;
	public static final int Right = 0;
}
