/***************************************************************************
                            QHeader.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 QHEADER_H
#define QHEADER_H

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

@class QIconSet;

@class QContextMenuEvent; 
@class QIMEvent; 
@class QTabletEvent; 

@interface QHeader : QWidget 
- initWithWidget: (QWidget *)parent name: (NSString *)name;
- init;
- initWithInt: (int)arg1 parent: (QWidget *)parent name: (NSString *)name;
- initWithInt: (int)arg1 ;
- (void) dealloc;
- (int) addLabel: (NSString *)arg1 size: (int)size;
- (int) addLabel: (NSString *)arg1 ;
- (int) addLabel: (QIconSet*)arg1 string: (NSString *)arg2 size: (int)size;
- (int) addLabel: (QIconSet*)arg1 string: (NSString *)arg2 ;
- removeLabel: (int)section;
- setLabel: (int)arg1 string: (NSString *)arg2 size: (int)size;
- setLabel: (int)arg1 string: (NSString *)arg2 ;
- setLabel: (int)arg1 iconset: (QIconSet*)arg2 string: (NSString *)arg3 size: (int)size;
- setLabel: (int)arg1 iconset: (QIconSet*)arg2 string: (NSString *)arg3 ;
- (NSString *) label: (int)section;
- (QIconSet*) iconSet: (int)section;
- setOrientation: (int)arg1;
- (int) orientation;
- setTracking: (BOOL)enable;
- (BOOL) tracking;
- setClickEnabled: (BOOL)arg1 section: (int)section;
- setClickEnabled: (BOOL)arg1 ;
- setResizeEnabled: (BOOL)arg1 section: (int)section;
- setResizeEnabled: (BOOL)arg1 ;
- setMovingEnabled: (BOOL)arg1;
- setStretchEnabled: (BOOL)b section: (int)section;
- setStretchEnabled: (BOOL)b;
- (BOOL) isClickEnabled: (int)section;
- (BOOL) isClickEnabled;
- (BOOL) isResizeEnabled: (int)section;
- (BOOL) isResizeEnabled;
- (BOOL) isMovingEnabled;
- (BOOL) isStretchEnabled;
- (BOOL) isStretchEnabled: (int)section;
- resizeSection: (int)section s: (int)s;
- (int) sectionSize: (int)section;
- (int) sectionPos: (int)section;
- (int) sectionAt: (int)pos;
- (int) count;
- (int) headerWidth;
- (QRect*) sectionRect: (int)section;
- setCellSize: (int)arg1 int: (int)arg2;
- (int) cellSize: (int)i;
- (int) cellPos: (int)arg1;
- (int) cellAt: (int)pos;
- (int) offset;
- (QSize*) sizeHint;
- (int) mapToSection: (int)index;
- (int) mapToIndex: (int)section;
- (int) mapToLogical: (int)arg1;
- (int) mapToActual: (int)arg1;
- moveSection: (int)section toIndex: (int)toIndex;
- moveCell: (int)arg1 int: (int)arg2;
- setSortIndicator: (int)section increasing: (BOOL)increasing;
- setSortIndicator: (int)section ;
- adjustHeaderSize;
- setUpdatesEnabled: (BOOL)enable;
- setOffset: (int)pos;
- (QRect*) sRect: (int)index;
- paintSection: (QPainter *)p index: (int)index fr: (QRect*)fr;
- paintSectionLabel: (QPainter *)p index: (int)index fr: (QRect*)fr;
@end

/** Override these methods in subclasses of QHeader to customise event handling behaviour */
@protocol QHeaderEventHandling
- keyPressEvent:(QKeyEvent*) arg1;
- keyReleaseEvent:(QKeyEvent*) arg1;
- focusOutEvent:(QFocusEvent*) arg1;
- childEvent:(QChildEvent*) arg1;
- dragMoveEvent:(QDragMoveEvent*) arg1;
- leaveEvent:(QEvent*) arg1;
- tabletEvent:(QTabletEvent*) arg1;
- showEvent:(QShowEvent*) e;
- contextMenuEvent:(QContextMenuEvent*) arg1;
- mousePressEvent:(QMouseEvent*) arg1;
- imComposeEvent:(QIMEvent*) arg1;
- customEvent:(QCustomEvent*) arg1;
- mouseReleaseEvent:(QMouseEvent*) arg1;
- mouseDoubleClickEvent:(QMouseEvent*) arg1;
- dragLeaveEvent:(QDragLeaveEvent*) arg1;
- enterEvent:(QEvent*) arg1;
- focusInEvent:(QFocusEvent*) arg1;
- imEndEvent:(QIMEvent*) arg1;
- dropEvent:(QDropEvent*) arg1;
- dragEnterEvent:(QDragEnterEvent*) arg1;
- mouseMoveEvent:(QMouseEvent*) arg1;
- moveEvent:(QMoveEvent*) arg1;
- wheelEvent:(QWheelEvent*) arg1;
- hideEvent:(QHideEvent*) arg1;
- imStartEvent:(QIMEvent*) arg1;
- closeEvent:(QCloseEvent*) arg1;
- paintEvent:(QPaintEvent*) arg1;
- timerEvent:(QTimerEvent*) arg1;
- resizeEvent:(QResizeEvent*) e;
@end


#endif
