summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KPopupFrame.java
blob: 981649b61d2ecdc0a17ca7742cf459f8ab7fcd88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
//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.
		 <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();
}