/***************************************************************************
                            QListView.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 QListViewSignals} for signals emitted by QListView.

 See {@link QListViewEventHandling} for event handlers to override in subclasses of QListView.

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

	private native void newQListView( QWidget parent, String name, int f);
	public QListView( QWidget parent, String name, int f) {
		super((Class) null);
		newQListView( parent, name, f);
	}
	public QListView( QWidget parent, String name) {
		this( parent, name, 0);
	}
	public QListView( QWidget parent) {
		this( parent, null, 0);
	}
	private native void newQListView();
	public QListView() {
		super((Class) null);
		newQListView();
	}
	protected native void finalize() throws InternalError;
	public native int treeStepSize();
	public native void setTreeStepSize( int arg1);
	public native void insertItem( QListViewItem arg1);
	public native void takeItem( QListViewItem arg1);
	public native void removeItem( QListViewItem item);
	public native QHeader header();
	public native int addColumn( String label, int size);
	public native int addColumn( String label);
	public native int addColumn( QIconSet iconset, String label, int size);
	public native int addColumn( QIconSet iconset, String label);
	public native void removeColumn( int index);
	public native void setColumnText( int column, String label);
	public native void setColumnText( int column, QIconSet iconset, String label);
	public native String columnText( int column);
	public native void setColumnWidth( int column, int width);
	public native int columnWidth( int column);
	public native void setColumnWidthMode( int column, int arg1);
	public native int columnWidthMode( int column);
	public native int columns();
	public native void setColumnAlignment( int arg1, int arg2);
	public native int columnAlignment( int arg1);
	public native void show();
	public native QListViewItem itemAt( QPoint screenPos);
	public native QRect itemRect( QListViewItem arg1);
	public native int itemPos( QListViewItem arg1);
	public native void ensureItemVisible( QListViewItem arg1);
	public native void repaintItem( QListViewItem arg1);
	public native void setMultiSelection( boolean enable);
	public native boolean isMultiSelection();
	public native void setSelectionMode( int mode);
	public native int selectionMode();
	public native void clearSelection();
	public native void setSelected( QListViewItem arg1, boolean arg2);
	public native boolean isSelected( QListViewItem arg1);
	public native QListViewItem selectedItem();
	public native void setOpen( QListViewItem arg1, boolean arg2);
	public native boolean isOpen( QListViewItem arg1);
	public native void setCurrentItem( QListViewItem arg1);
	public native QListViewItem currentItem();
	public native QListViewItem firstChild();
	public native QListViewItem lastItem();
	public native int childCount();
	public native ArrayList itemList();
	public native void setAllColumnsShowFocus( boolean arg1);
	public native boolean allColumnsShowFocus();
	public native void setItemMargin( int arg1);
	public native int itemMargin();
	public native void setRootIsDecorated( boolean arg1);
	public native boolean rootIsDecorated();
	public native void setSorting( int column, boolean increasing);
	public native void setSorting( int column);
	public native void sort();
	public native void setFont( QFont arg1);
	public native void setPalette( QPalette arg1);
	public native boolean eventFilter( QObject o, QEvent arg1);
	public native QSize sizeHint();
	public native QSize minimumSizeHint();
	public native void setShowSortIndicator( boolean show);
	public native boolean showSortIndicator();
	public native void setShowToolTips( boolean b);
	public native boolean showToolTips();
	public native void setResizeMode( int m);
	public native int resizeMode();
	public native QListViewItem findItem( String text, int column, int compare);
	public native QListViewItem findItem( String text, int column);
	public native void setDefaultRenameAction( int a);
	public native int defaultRenameAction();
	public native boolean isRenaming();
	public native void clear();
	public native void invertSelection();
	public native void selectAll( boolean select);
	public native void triggerUpdate();
	public native void setContentsPos( int x, int y);
	protected native QDragObject dragObject();
	protected native void startDrag();
	protected native void drawContentsOffset( QPainter arg1, int ox, int oy, int cx, int cy, int cw, int ch);
	protected native void paintEmptyArea( QPainter arg1, QRect arg2);
	public native void styleChange( QStyle arg1);
	protected native void windowActivationChange( boolean arg1);
	public native void updateContents();
	protected native void doAutoScroll();
	public static final int Manual = 0;
	public static final int Maximum = 1;
	public static final int Single = 0;
	public static final int Multi = 1;
	public static final int Extended = 2;
	public static final int NoSelection = 3;
	public static final int NoColumn = 0;
	public static final int AllColumns = 1;
	public static final int LastColumn = 2;
	public static final int Accept = 0;
	public static final int Reject = 1;
}
