//Auto-generated by kalyptus. DO NOT EDIT. package org.kde.koala; import org.kde.qt.Qt; import org.kde.qt.TQMetaObject; import org.kde.qt.QtSupport; import org.kde.qt.TQPoint; import org.kde.qt.TQKeyEvent; import org.kde.qt.TQWidget; import org.kde.qt.TQResizeEvent; import org.kde.qt.TQFrame; /** Frame with popup menu behavior. @author Tim Gilman, Mirko Boehm @version $Id$ @short Frame with popup menu behavior. */ public class KPopupFrame extends TQFrame { protected KPopupFrame(Class dummy){super((Class) null);} public native TQMetaObject metaObject(); public native String className(); /** The contructor. Creates a dialog without buttons. @short The contructor. */ public KPopupFrame(TQWidget parent, String name) { super((Class) null); newKPopupFrame(parent,name); } private native void newKPopupFrame(TQWidget parent, String name); public KPopupFrame(TQWidget parent) { super((Class) null); newKPopupFrame(parent); } private native void newKPopupFrame(TQWidget 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(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. r 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(); }