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

 See {@link QHeaderEventHandling} for event handlers to override in subclasses of QHeader.

*/
public class QHeader extends QWidget  {
	protected QHeader(Class dummy){super((Class) null);}

	private native void newQHeader( QWidget parent, String name);
	public QHeader( QWidget parent, String name) {
		super((Class) null);
		newQHeader( parent, name);
	}
	private native void newQHeader();
	public QHeader() {
		super((Class) null);
		newQHeader();
	}
	private native void newQHeader( int arg1, QWidget parent, String name);
	public QHeader( int arg1, QWidget parent, String name) {
		super((Class) null);
		newQHeader( arg1, parent, name);
	}
	private native void newQHeader( int arg1);
	public QHeader( int arg1) {
		super((Class) null);
		newQHeader( arg1);
	}
	protected native void finalize() throws InternalError;
	public native int addLabel( String arg1, int size);
	public native int addLabel( String arg1);
	public native int addLabel( QIconSet arg1, String arg2, int size);
	public native int addLabel( QIconSet arg1, String arg2);
	public native void removeLabel( int section);
	public native void setLabel( int arg1, String arg2, int size);
	public native void setLabel( int arg1, String arg2);
	public native void setLabel( int arg1, QIconSet arg2, String arg3, int size);
	public native void setLabel( int arg1, QIconSet arg2, String arg3);
	public native String label( int section);
	public native QIconSet iconSet( int section);
	public native void setOrientation( int arg1);
	public native int orientation();
	public native void setTracking( boolean enable);
	public native boolean tracking();
	public native void setClickEnabled( boolean arg1, int section);
	public native void setClickEnabled( boolean arg1);
	public native void setResizeEnabled( boolean arg1, int section);
	public native void setResizeEnabled( boolean arg1);
	public native void setMovingEnabled( boolean arg1);
	public native void setStretchEnabled( boolean b, int section);
	public native void setStretchEnabled( boolean b);
	public native boolean isClickEnabled( int section);
	public native boolean isClickEnabled();
	public native boolean isResizeEnabled( int section);
	public native boolean isResizeEnabled();
	public native boolean isMovingEnabled();
	public native boolean isStretchEnabled();
	public native boolean isStretchEnabled( int section);
	public native void resizeSection( int section, int s);
	public native int sectionSize( int section);
	public native int sectionPos( int section);
	public native int sectionAt( int pos);
	public native int count();
	public native int headerWidth();
	public native QRect sectionRect( int section);
	public native void setCellSize( int arg1, int arg2);
	public native int cellSize( int i);
	public native int cellPos( int arg1);
	public native int cellAt( int pos);
	public native int offset();
	public native QSize sizeHint();
	public native int mapToSection( int index);
	public native int mapToIndex( int section);
	public native int mapToLogical( int arg1);
	public native int mapToActual( int arg1);
	public native void moveSection( int section, int toIndex);
	public native void moveCell( int arg1, int arg2);
	public native void setSortIndicator( int section, boolean increasing);
	public native void setSortIndicator( int section);
	public native void adjustHeaderSize();
	public native void setUpdatesEnabled( boolean enable);
	public native void setOffset( int pos);
	protected native QRect sRect( int index);
	protected native void paintSection( QPainter p, int index, QRect fr);
	protected native void paintSectionLabel( QPainter p, int index, QRect fr);
}
