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

 See {@link QListBoxEventHandling} for event handlers to override in subclasses of QListBox.

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

	private native void newQListBox( QWidget parent, String name, int f);
	public QListBox( QWidget parent, String name, int f) {
		super((Class) null);
		newQListBox( parent, name, f);
	}
	public QListBox( QWidget parent, String name) {
		this(parent, name, 0);
	}
	public QListBox( QWidget parent) {
		this(parent, null, 0);
	}
	private native void newQListBox();
	public QListBox() {
		super((Class) null);
		newQListBox();
	}
	protected native void finalize() throws InternalError;
	public native void setFont( QFont arg1);
	public native int count();
	public native void insertStringList( String[] arg1, int index);
	public native void insertStringList( String[] arg1);
	public native void insertStrList( String[] arg1, int index);
	public native void insertStrList( String[] arg1);
//	public native void insertStrList( String[] arg1, int index);
//	public native void insertStrList( String[] arg1);
	public native void insertStrList( String arg1, int numStrings, int index);
	public native void insertStrList( String arg1);
	public native void insertItem( QListBoxItem arg1, int index);
	public native void insertItem( QListBoxItem arg1);
	public native void insertItem( QListBoxItem arg1, QListBoxItem after);
	public native void insertItem( String text, int index);
	public native void insertItem( String text);
	public native void insertItem( QPixmap pixmap, int index);
	public native void insertItem( QPixmap pixmap);
	public native void insertItem( QPixmap pixmap, String text, int index);
	public native void insertItem( QPixmap pixmap, String text);
	public native void removeItem( int index);
	public native String text( int index);
	public native QPixmap pixmap( int index);
	public native void changeItem( QListBoxItem arg1, int index);
	public native void changeItem( String text, int index);
	public native void changeItem( QPixmap pixmap, int index);
	public native void changeItem( QPixmap pixmap, String text, int index);
	public native void takeItem( QListBoxItem arg1);
	public native int numItemsVisible();
	public native int currentItem();
	public native String currentText();
	public native void setCurrentItem( int index);
	public native void setCurrentItem( QListBoxItem arg1);
	public native void centerCurrentItem();
	public native int topItem();
	public native void setTopItem( int index);
	public native void setBottomItem( int index);
	public native long maxItemWidth();
	public native void setSelectionMode( int arg1);
	public native int selectionMode();
	public native void setMultiSelection( boolean multi);
	public native boolean isMultiSelection();
	public native void setSelected( QListBoxItem arg1, boolean arg2);
	public native void setSelected( int arg1, boolean arg2);
	public native boolean isSelected( int arg1);
	public native boolean isSelected( QListBoxItem arg1);
	public native QSize sizeHint();
	public native QSize minimumSizeHint();
	public native QListBoxItem item( int index);
	public native int index( QListBoxItem arg1);
	public native QListBoxItem findItem( String text, int compare);
	public native QListBoxItem findItem( String text);
	public native void triggerUpdate( boolean doLayout);
	public native boolean itemVisible( int index);
	public native boolean itemVisible( QListBoxItem arg1);
	public native void setColumnMode( int arg1);
	public native void setNumColumns( int arg1);
	public native void setRowMode( int arg1);
	public native void setNumRows( int arg1);
	public native int columnMode();
	public native int rowMode();
	public native int numColumns();
	public native int numRows();
	public native boolean variableWidth();
	public native void setVariableWidth( boolean arg1);
	public native boolean variableHeight();
	public native void setVariableHeight( boolean arg1);
	public native void viewportPaintEvent( QPaintEvent arg1);
	public native boolean dragSelect();
	public native void setDragSelect( boolean arg1);
	public native boolean autoScroll();
	public native void setAutoScroll( boolean arg1);
	public native boolean autoScrollBar();
	public native void setAutoScrollBar( boolean enable);
	public native boolean scrollBar();
	public native void setScrollBar( boolean enable);
	public native boolean autoBottomScrollBar();
	public native void setAutoBottomScrollBar( boolean enable);
	public native boolean bottomScrollBar();
	public native void setBottomScrollBar( boolean enable);
	public native boolean smoothScrolling();
	public native void setSmoothScrolling( boolean arg1);
	public native boolean autoUpdate();
	public native void setAutoUpdate( boolean arg1);
	public native void setFixedVisibleLines( int lines);
	public native int inSort( QListBoxItem arg1);
	public native int inSort( String text);
	public native int cellHeight( int i);
	public native int cellHeight();
	public native int cellWidth();
	public native int cellWidth( int i);
	public native int numCols();
	public native int itemHeight( int index);
	public native int itemHeight();
	public native QListBoxItem itemAt( QPoint arg1);
	public native QRect itemRect( QListBoxItem item);
	public native QListBoxItem firstItem();
	public native void sort( boolean ascending);
	public native void sort();
	public native void clear();
	public native void ensureCurrentVisible();
	public native void clearSelection();
	public native void selectAll( boolean select);
	public native void invertSelection();
	public native boolean eventFilter( QObject o, QEvent e);
	protected native void updateItem( int index);
	protected native void updateItem( QListBoxItem arg1);
	protected native void updateCellWidth();
	protected native int totalWidth();
	protected native int totalHeight();
	protected native void paintCell( QPainter arg1, int row, int col);
	protected native void toggleCurrentItem();
	protected native boolean isRubberSelecting();
	protected native void doLayout();
	protected native void windowActivationChange( boolean arg1);
	protected native boolean itemYPos( int index, int[] yPos);
	protected native int findItem( int yPos);
	protected native void clearInputString();
	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 FixedNumber = 0;
	public static final int FitToWidth = 1;
	public static final int FitToHeight = FitToWidth;
	public static final int Variable = 2;
}
