//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.QMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.QPoint;
import org.kde.qt.QKeyEvent;
import org.kde.qt.QWidget;
import org.kde.qt.QResizeEvent;
import org.kde.qt.QFrame;

/**

 Frame with popup menu behavior.
		@author Tim Gilman, Mirko Boehm

		@version $Id$
 
		@short    Frame with popup menu behavior.

*/
public class KPopupFrame extends QFrame  {
	protected KPopupFrame(Class dummy){super((Class) null);}
	public native QMetaObject metaObject();
	public native String className();
	/**	
		 The contructor. Creates a dialog without buttons.
		   		@short    The contructor.
	*/
	public KPopupFrame(QWidget parent, String name) {
		super((Class) null);
		newKPopupFrame(parent,name);
	}
	private native void newKPopupFrame(QWidget parent, String name);
	public KPopupFrame(QWidget parent) {
		super((Class) null);
		newKPopupFrame(parent);
	}
	private native void newKPopupFrame(QWidget parent);
	public KPopupFrame() {
		super((Class) null);
		newKPopupFrame();
	}
	private native void newKPopupFrame();
	/**	
		 Set the main widget. You cannot set the main widget from the constructor,
		 since it must be a child of the frame itselfes.
		 Be careful: the size is set to the main widgets size. It is up to you to
		 set the main widgets correct size before setting it as the main
		 widget.
		   		@short    Set the main widget.
	*/
	public native void setMainWidget(QWidget m);
	/**	
		 The resize event. Simply resizes the main widget to the whole
		 widgets client size.
		   		@short    The resize event.
	*/
	public native void resizeEvent(QResizeEvent arg1);
	/**	
		 Open the popup window at position pos.
		   		@short    Open the popup window at position pos.
	*/
	public native void popup(QPoint pos);
	/**	
		 Execute the popup window.
		   		@short    Execute the popup window.
	*/
	public native int exec(QPoint p);
	/**	
		 Execute the popup window.
		   		@short    Execute the popup window.
	*/
	public native int exec(int x, int y);
	/**	
		 Close the popup window. This is called from the main widget, usually.
		 <code>r</code> is the result returned from exec().
		   		@short    Close the popup window.
	*/
	public native void close(int r);
	/**	
		 Hides the widget. Reimplemented from QWidget
		   		@short    Hides the widget.
	*/
	public native void hide();
	/**	
		 Catch key press events.
		   		@short    Catch key press events.
	*/
	protected native void keyPressEvent(QKeyEvent e);
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}
