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

 See {@link QMenuBarEventHandling} for event handlers to override in subclasses of QMenuBar.

*/
public class QMenuBar extends QFrame implements  QMenuDataInterface {
	protected QMenuBar(Class dummy){super((Class) null);}

	private native void newQMenuBar( QWidget parent, String name);
	public QMenuBar( QWidget parent, String name) {
		super((Class) null);
		newQMenuBar( parent, name);
	}
	public QMenuBar( QWidget parent) {
		this( parent, null);
	}
	private native void newQMenuBar();
	public QMenuBar() {
		super((Class) null);
		newQMenuBar();
	}
	protected native void finalize() throws InternalError;
	public native void updateItem( int identifier);
	public native void show();
	public native void hide();
	public native boolean eventFilter( QObject arg1, QEvent arg2);
	public native int heightForWidth( int arg1);
	public native int separator();
	public native void setSeparator( int when);
	public native void setDefaultUp( boolean arg1);
	public native boolean isDefaultUp();
	public native boolean customWhatsThis();
	public native QSize sizeHint();
	public native QSize minimumSize();
	public native QSize minimumSizeHint();
	public native void activateItemAt( int index);
	public static native void initialize();
//	public static native void cleanup();
	protected native void drawContents( QPainter arg1);
	protected native void fontChange( QFont arg1);
	protected native void menuContentsChanged();
	protected native void menuStateChanged();
	protected native void styleChange( QStyle arg1);
	protected native int itemAtPos( QPoint arg1);
	protected native void hidePopups();
	protected native QRect itemRect( int item);
	public static final int Never = 0;
	public static final int InWindowsStyle = 1;

        //
        // From QMenuDataInterface
        //
	public native int count();
	public native int insertItem( String text, QObject receiver, String member, QKeySequence accel, int identifier, int index);
	public native int insertItem( String text, QObject receiver, String member);
	public native int insertItem( QIconSet icon, String text, QObject receiver, String member, QKeySequence accel, int identifier, int index);
	public native int insertItem( QIconSet icon, String text, QObject receiver, String member);
	public native int insertItem( QPixmap pixmap, QObject receiver, String member, QKeySequence accel, int identifier, int index);
	public native int insertItem( QPixmap pixmap, QObject receiver, String member);
	public native int insertItem( QIconSet icon, QPixmap pixmap, QObject receiver, String member, QKeySequence accel, int identifier, int index);
	public native int insertItem( QIconSet icon, QPixmap pixmap, QObject receiver, String member);
	public native int insertItem( String text, int identifier, int index);
	public native int insertItem( String text);
	public native int insertItem( QIconSet icon, String text, int identifier, int index);
	public native int insertItem( QIconSet icon, String text);
	public native int insertItem( String text, QPopupMenu popup, int identifier, int index);
	public native int insertItem( String text, QPopupMenu popup);
	public native int insertItem( QIconSet icon, String text, QPopupMenu popup, int identifier, int index);
	public native int insertItem( QIconSet icon, String text, QPopupMenu popup);
	public native int insertItem( QPixmap pixmap, int identifier, int index);
	public native int insertItem( QPixmap pixmap);
	public native int insertItem( QIconSet icon, QPixmap pixmap, int identifier, int index);
	public native int insertItem( QIconSet icon, QPixmap pixmap);
	public native int insertItem( QPixmap pixmap, QPopupMenu popup, int identifier, int index);
	public native int insertItem( QPixmap pixmap, QPopupMenu popup);
	public native int insertItem( QIconSet icon, QPixmap pixmap, QPopupMenu popup, int identifier, int index);
	public native int insertItem( QIconSet icon, QPixmap pixmap, QPopupMenu popup);
	public native int insertItem( QWidget widget, int identifier, int index);
	public native int insertItem( QWidget widget);
	public native int insertItem( QIconSet icon, QCustomMenuItem custom, int identifier, int index);
	public native int insertItem( QIconSet icon, QCustomMenuItem custom);
	public native int insertItem( QCustomMenuItem custom, int identifier, int index);
	public native int insertItem( QCustomMenuItem custom);
	public native int insertSeparator( int index);
	public native int insertSeparator();
	public native void removeItem( int identifier);
	public native void removeItemAt( int index);
	public native void clear();
	public native QKeySequence accel( int identifier);
	public native void setAccel( QKeySequence key, int identifier);
	public native QIconSet iconSet( int identifier);
	public native String text( int identifier);
	public native QPixmap pixmap( int identifier);
	public native void setWhatsThis( int identifier, String arg1);
	public native String whatsThis( int identifier);
	public native void changeItem( int identifier, String text);
	public native void changeItem( int identifier, QPixmap pixmap);
	public native void changeItem( int identifier, QIconSet icon, String text);
	public native void changeItem( int identifier, QIconSet icon, QPixmap pixmap);
	public native void changeItem( String text, int identifier);
	public native void changeItem( QPixmap pixmap, int identifier);
	public native void changeItem( QIconSet icon, String text, int identifier);
	public native boolean isItemActive( int identifier);
	public native boolean isItemEnabled( int identifier);
	public native void setItemEnabled( int identifier, boolean enable);
	public native boolean isItemChecked( int identifier);
	public native void setItemChecked( int identifier, boolean check);
//	public native void updateItem( int identifier);
	public native int indexOf( int identifier);
	public native int idAt( int index);
	public native void setId( int index, int identifier);
	public native boolean connectItem( int identifier, QObject receiver, String member);
	public native boolean disconnectItem( int identifier, QObject receiver, String member);
	public native boolean setItemParameter( int identifier, int param);
	public native int itemParameter( int identifier);
	public native QMenuItem findItem( int identifier);
	public native QMenuItem findItem( int identifier, QMenuDataInterface parent);
	public native QMenuItem findPopup( QPopupMenu arg1, int[] index);
	public native QMenuItem findPopup( QPopupMenu arg1);
//	public native void activateItemAt( int index);
//	protected native void menuContentsChanged();
//	protected native void menuStateChanged();
	protected native void menuInsPopup( QPopupMenu arg1);
	protected native void menuDelPopup( QPopupMenu arg1);
}
