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

import org.trinitydesktop.qt.Qt;
import org.trinitydesktop.qt.TQMetaObject;
import org.trinitydesktop.qt.QtSupport;
import org.trinitydesktop.qt.TQPoint;
import org.trinitydesktop.qt.TQKeyEvent;
import org.trinitydesktop.qt.TQWidget;
import org.trinitydesktop.qt.TQResizeEvent;
import org.trinitydesktop.qt.TQFrame;

/**

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

		@version $Id$

		@short    Frame with popup menu behavior.

*/
public class TDEPopupFrame extends TQFrame  {
	protected TDEPopupFrame(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**
		 The contructor. Creates a dialog without buttons.
		   		@short    The contructor.
	*/
	public TDEPopupFrame(TQWidget parent, String name) {
		super((Class) null);
		newTDEPopupFrame(parent,name);
	}
	private native void newTDEPopupFrame(TQWidget parent, String name);
	public TDEPopupFrame(TQWidget parent) {
		super((Class) null);
		newTDEPopupFrame(parent);
	}
	private native void newTDEPopupFrame(TQWidget parent);
	public TDEPopupFrame() {
		super((Class) null);
		newTDEPopupFrame();
	}
	private native void newTDEPopupFrame();
	/**
		 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(TQWidget m);
	/**
		 The resize event. Simply resizes the main widget to the whole
		 widgets client size.
		   		@short    The resize event.
	*/
	public native void resizeEvent(TQResizeEvent arg1);
	/**
		 Open the popup window at position pos.
		   		@short    Open the popup window at position pos.
	*/
	public native void popup(TQPoint pos);
	/**
		 Execute the popup window.
		   		@short    Execute the popup window.
	*/
	public native int exec(TQPoint 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 TQWidget
		   		@short    Hides the widget.
	*/
	public native void hide();
	/**
		 Catch key press events.
		   		@short    Catch key press events.
	*/
	protected native void keyPressEvent(TQKeyEvent 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();
}
